/* Support widget: scoped presentation; chart and payment controls are unaffected. */
.trader-theme .support-chat.support-chat {
  --sc-border:#2b4560; --sc-text:#edf5ff; --sc-muted:#9bb2cb;
  position:fixed!important; left:76px!important; bottom:48px!important;
  width:360px!important; height:470px!important;
  max-width:calc(100vw - 92px)!important; max-height:calc(100dvh - 110px)!important;
  border:1px solid var(--sc-border)!important; border-radius:20px!important;
  background:radial-gradient(ellipse at 25% 0%,#1b3046 0%,#112235 52%,#0c1c2c 100%)!important;
  color:var(--sc-text)!important; box-shadow:0 24px 64px #0008,0 0 0 1px #789bc012,inset 0 1px #ffffff0b!important;
  font-family:Inter,Arial,sans-serif; z-index:130!important; isolation:isolate;
}
.trader-theme .support-chat.support-chat * {box-sizing:border-box;color:var(--sc-text)!important}
.trader-theme .support-chat .support-premium-header {height:76px!important;padding:16px!important;gap:12px!important;border-color:var(--sc-border)!important;background:linear-gradient(115deg,#23384d85,#12223480)!important}
.trader-theme .support-chat .support-premium-header::before {content:"";width:31px;height:34px;flex:0 0 31px;background:#ecf5ff;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 18v-3a11 11 0 0 1 22 0v9a5 5 0 0 1-5 5h-5'/%3E%3Crect x='2' y='14' width='6' height='11' rx='3'/%3E%3Crect x='24' y='14' width='6' height='11' rx='3'/%3E%3Crect x='13' y='27' width='7' height='4' rx='2' fill='black'/%3E%3C/svg%3E") center/contain no-repeat}
.trader-theme .support-chat .support-premium-header .font-bold {font-size:16px!important;line-height:22px!important;font-weight:650!important;letter-spacing:-.25px}
.trader-theme .support-chat .support-premium-header [class*="text-[9px]"] {font-size:11px!important;line-height:17px!important;color:var(--sc-muted)!important;margin-top:3px}
.trader-theme .support-chat .support-premium-header .bg-green {width:7px!important;height:7px!important;background:#0bd37c!important;box-shadow:0 0 8px #0bd37c35;margin-right:5px}
.trader-theme .support-chat .support-premium-header>button {width:32px!important;height:32px!important;border:1px solid #35516c!important;border-radius:10px!important;background:#0b1c2d80!important;font-size:23px!important;font-weight:400!important;flex-shrink:0}
.trader-theme .support-chat .support-conversation-messages {top:76px!important;bottom:88px!important;padding:16px!important;scrollbar-width:thin;scrollbar-color:#35516c transparent;overscroll-behavior:contain}
.trader-theme .support-chat .support-conversation-messages:has(+div[class*="bottom-10"]) {bottom:132px!important}
.trader-theme .support-chat .support-conversation-messages>.grid.h-full {font-size:13px!important;line-height:24px!important;color:var(--sc-muted)!important}
.trader-theme .support-chat .support-conversation-messages>.grid.h-full>div {color:var(--sc-muted)!important;max-width:275px}
.trader-theme .support-chat .support-conversation-messages>.grid.h-full>div::before {content:"";display:block;width:68px;height:68px;margin:0 auto 22px;background:#40617f;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M41 42H24L11 53V42a8 8 0 0 1-8-8V15a9 9 0 0 1 9-9h29a9 9 0 0 1 9 9v18a9 9 0 0 1-9 9Z'/%3E%3Cpath d='M29 49h13l12 9V46a9 9 0 0 0 7-9V24a9 9 0 0 0-5-8'/%3E%3Ccircle cx='16' cy='24' r='2' fill='black'/%3E%3Ccircle cx='27' cy='24' r='2' fill='black'/%3E%3Ccircle cx='38' cy='24' r='2' fill='black'/%3E%3C/svg%3E") center/contain no-repeat}
.trader-theme .support-chat .support-conversation-messages>.grid.h-full>div::first-line {font-size:18px;line-height:32px;color:#edf5ff}
.trader-theme .support-chat [data-support-message-id] {max-width:88%!important;padding:10px 12px!important;font-size:13px!important;line-height:1.55!important;border:1px solid #304c67!important;overflow-wrap:anywhere;border-radius:13px!important}
.trader-theme .support-chat [data-support-message-id].ml-auto {background:#213b54!important;border-bottom-right-radius:4px!important}
.trader-theme .support-chat [data-support-message-id].mr-auto {background:#162c3f!important;border-bottom-left-radius:4px!important}
.trader-theme .support-chat .support-premium-composer {height:88px!important;padding:16px 12px!important;gap:6px!important;border-top:1px solid var(--sc-border)!important;background:#0e1e30!important;isolation:isolate}
.trader-theme .support-chat .support-premium-composer::before {content:"";position:absolute;inset:15px 69px 15px 11px;background:#192e43;border:1px solid #35516d;border-radius:13px;z-index:-1}
.trader-theme .support-chat .support-premium-composer:focus-within::before {border-color:#6794be;box-shadow:0 0 0 2px #649cd216}
.trader-theme .support-chat .support-premium-composer input:not([type=file]) {height:48px!important;min-width:0!important;padding:0 8px!important;font-size:13px!important;color:#edf5ff!important;background:transparent!important;outline:none!important}
.trader-theme .support-chat .support-premium-composer input::placeholder {color:#89a2bc!important;opacity:1}
.trader-theme .support-chat .support-premium-composer button {width:29px!important;height:36px!important;flex:0 0 29px;border-radius:9px!important;background:#102237!important;border:1px solid #27435e!important;display:grid;place-items:center}
.trader-theme .support-chat .support-premium-composer button:hover {background:#29445e!important;border-color:#567b9e!important}
.trader-theme .support-chat .support-premium-composer button.support-send {width:47px!important;height:56px!important;flex-basis:47px;margin-left:6px;border:1px solid #ffa62c!important;border-radius:13px!important;background:linear-gradient(155deg,#674422,#332a23)!important;box-shadow:inset 0 1px #ffc87530!important}
.trader-theme .support-chat .support-send::before {content:"";width:24px;height:24px;background:#ffe0ad;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m22 2-7 20-4-9-9-4 20-7ZM22 2 11 13'/%3E%3C/svg%3E") center/contain no-repeat}
.trader-theme .support-chat .support-premium-composer>button:first-of-type,
.trader-theme .support-chat .support-premium-composer>button:nth-last-child(2) {font-size:0!important}
.trader-theme .support-chat .support-premium-composer>button:first-of-type::before {content:"";width:19px;height:19px;background:#bbd4ed;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 14s1 3 4 3 4-3 4-3M8 9h.01M16 9h.01'/%3E%3C/svg%3E") center/contain no-repeat}
.trader-theme .support-chat .support-premium-composer>button:nth-last-child(2)::before {content:"";width:20px;height:20px;background:#bbd4ed;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m8 13 7-7a3 3 0 0 1 4 4l-9 9a5 5 0 0 1-7-7L13 2a5 5 0 0 1 7 7L10 19M7 14l8-8'/%3E%3C/svg%3E") center/contain no-repeat}
.trader-theme .support-chat button:focus-visible {outline:2px solid #89b7e1!important;outline-offset:2px}
.trader-theme .support-chat .support-react-reply {bottom:88px!important;background:#1d344a!important;border-color:#416080!important}
.trader-theme .support-chat[data-support-replying=true] .support-conversation-messages {bottom:142px!important}
.trader-theme .support-chat>div[class*="bottom-10"] {bottom:88px!important;background:#152b40!important;border-color:#35516d!important}
.trader-theme .support-chat .support-quote,.trader-theme .support-chat .support-message-reply {color:#a9c8e7!important;border-color:#4f7393!important;background:#0b203180!important}
@media(max-width:700px){
 .trader-theme .support-chat.support-chat {left:12px!important;right:12px!important;bottom:calc(76px + env(safe-area-inset-bottom))!important;width:auto!important;max-width:none!important;height:min(470px,calc(100dvh - 150px))!important;max-height:calc(100dvh - 150px)!important;border-radius:18px!important}
 .trader-theme .support-chat .support-premium-composer input:not([type=file]) {font-size:16px!important}
}
@media(max-height:540px){.trader-theme .support-chat.support-chat{height:calc(100dvh - 90px)!important;max-height:calc(100dvh - 90px)!important;bottom:36px!important}.trader-theme .support-chat .support-conversation-messages>.grid.h-full>div::before{width:32px;height:32px;margin-bottom:6px}}

/* Pointer and keyboard window movement; keep controls clickable. */
.trader-theme .support-chat .support-premium-header {cursor:ns-resize;touch-action:none;user-select:none}
.trader-theme .support-chat[data-dragging=true] .support-premium-header {cursor:ns-resize}
.trader-theme .support-chat .support-premium-header button {cursor:pointer;touch-action:manipulation}
.trader-theme .support-chat .support-premium-header:focus-visible {outline:2px solid #6b9ac4;outline-offset:-3px}
.trader-theme .support-chat .support-emoji-picker {position:absolute;z-index:5;left:12px;right:12px;bottom:94px;max-height:calc(100% - 172px);display:flex;flex-direction:column;padding:10px;background:#142a40!important;border:1px solid #42617e;border-radius:14px;box-shadow:0 10px 28px #0006}
.trader-theme .support-chat .support-emoji-tabs {display:flex;gap:3px;flex-shrink:0;overflow-x:auto;padding-bottom:7px;border-bottom:1px solid #35516b;scrollbar-width:thin}
.trader-theme .support-chat .support-emoji-picker button {display:grid;place-items:center;border:0!important;background:transparent!important;border-radius:7px;cursor:pointer;flex-shrink:0;font-family:'Segoe UI Emoji','Apple Color Emoji','Noto Color Emoji',sans-serif!important;color:inherit!important;text-indent:0!important;line-height:1!important}
.trader-theme .support-chat .support-emoji-tabs button {width:35px;height:34px;font-size:22px!important}
.trader-theme .support-chat .support-emoji-tabs button[aria-selected=true] {background:#35526c!important;box-shadow:inset 0 -2px #ffb34f}
.trader-theme .support-chat .support-emoji-caption {font-size:11px!important;color:#9bb8d4!important;padding:8px 3px 6px}
.trader-theme .support-chat .support-emoji-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(34px,1fr));gap:2px;overflow:auto;min-height:0;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#52718c transparent}
.trader-theme .support-chat .support-emoji-grid button {height:36px;min-width:32px;font-size:24px!important}
.trader-theme .support-chat .support-emoji-picker button:hover {background:#2a4862!important}
.trader-theme .support-chat .support-emoji-toggle[aria-expanded=true] {background:#35526c!important;border-color:#729cbe!important}
