.ts-support-fab{position:fixed;right:22px;bottom:22px;z-index:9900;border:1px solid #d7e1ec;background:#f3f7fc;color:#141a22;border-radius:999px;padding:13px 18px;box-shadow:0 16px 34px #0007;cursor:pointer;font:700 13px system-ui,sans-serif;display:flex;gap:8px;align-items:center}
.ts-support-fab.new-message{box-shadow:0 0 0 4px #1aa1784f,0 16px 34px #0007}.ts-support-indicator{width:8px;height:8px;border-radius:50%;background:#10b981}
.ts-support-panel{position:fixed;right:20px;bottom:18px;width:min(1050px,calc(100vw - 40px));height:min(780px,calc(100dvh - 40px));z-index:9901;background:#10151d;color:#f4f6f9;border:1px solid #343f51;border-radius:18px;box-shadow:0 28px 100px #000c;display:flex;flex-direction:column;overflow:hidden;font:14px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}
.ts-support-panel[hidden],.ts-support-fab[hidden],.ts-attachment-preview[hidden],.ts-composer[hidden],.ts-emoji-menu[hidden]{display:none!important}
.ts-support-panel button,.ts-support-panel input,.ts-support-panel textarea{font:inherit}.ts-support-panel button{cursor:pointer}
.ts-header{display:flex;align-items:center;justify-content:space-between;min-height:76px;padding:14px 22px;gap:16px;background:#161d28;border-bottom:1px solid #2b3544}
.ts-header h2{margin:0;color:#fff;font-size:19px;font-weight:750;letter-spacing:-.4px}.ts-header small{font-size:12px;color:#8492a6}
.ts-header-tools{display:flex;align-items:center;gap:10px}
.ts-enable-push{border:1px solid #536275;background:#283548;color:#f4f7fb;padding:9px 14px;border-radius:9px;font-size:12px!important;font-weight:650}
.ts-close{border:none;background:#202a38;color:#ecf1f6;font-size:25px!important;line-height:1;width:37px;height:37px;border-radius:10px}
.ts-layout{flex:1;display:grid;grid-template-columns:minmax(255px,33%) minmax(0,1fr);min-height:0}
.ts-left{display:flex;flex-direction:column;background:#141b25;border-right:1px solid #2a3646;min-width:0;min-height:0}
.ts-left-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:19px 17px 10px}
.ts-left-head strong{font-size:16px}.ts-connection{font-size:10px;color:#a7b2c2}.ts-connection.live{color:#35dbad}
.ts-search{margin:4px 13px 13px;background:#202b3a!important;border:1px solid #38475a!important;border-radius:10px!important;padding:12px 13px!important;color:#fff!important;outline:none;width:calc(100% - 26px)!important}
.ts-search:focus,.ts-text:focus{border-color:#6c9fd5!important}.ts-search::placeholder,.ts-text::placeholder{color:#8190a4}
.ts-threads{flex:1;overflow:auto;padding:0 7px 12px}.ts-thread{width:100%;display:flex;gap:12px;align-items:center;background:transparent!important;color:#f0f3f8!important;border:1px solid transparent!important;padding:14px 10px!important;border-radius:12px!important;text-align:left}
.ts-thread:hover{background:#1d2735!important}.ts-thread.active{background:#25384d!important;border-color:#3a5269!important}
.ts-thread-avatar,.ts-peer-avatar{flex:none;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#3d5871;color:#e9f5ff;font-weight:850;font-size:17px}
.ts-thread-info{min-width:0;flex:1}.ts-thread-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.ts-thread-info strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ts-thread-top time{font-size:10px;color:#9aa8ba}
.ts-thread-preview{display:block;color:#a3b1c2;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}
.ts-workspace-label{display:block;font-size:10px;color:#8a9aad;margin-top:2px}.ts-muted{padding:14px;color:#9aa8ba}
.ts-right{display:flex;flex-direction:column;min-width:0;min-height:0;background:#0d131c}
.ts-peer-head{display:flex;align-items:center;gap:12px;min-height:77px;padding:12px 21px;border-bottom:1px solid #273345;background:#131d29}
.ts-peer-avatar{width:40px;height:40px}.ts-peer-names{display:flex;flex-direction:column;min-width:0}.ts-peer{font-size:15px}.ts-peer-sub{font-size:12px;color:#9aa9ba;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ts-messages{flex:1;min-height:0;overflow:auto;padding:22px;display:flex;flex-direction:column;gap:10px;background-image:radial-gradient(#738ba110 1px,transparent 1px);background-size:19px 19px}
.ts-chat-empty{margin:auto;text-align:center;color:#91a3b7;padding:30px}
.ts-bubble{padding:10px 13px;max-width:min(84%,480px);background:#263242;border:1px solid #3a4656;border-radius:14px 14px 14px 4px;align-self:flex-start;white-space:pre-wrap;overflow-wrap:anywhere}
.ts-bubble.mine{align-self:flex-end;color:#edfff9;background:#135b4c;border-color:#207364;border-radius:14px 14px 4px 14px}
.ts-bubble-sender{font-weight:700;font-size:11px;color:#b0d6ea;display:block}.ts-bubble.mine .ts-bubble-sender{color:#a1f3d2}
.ts-bubble-text{font-size:14px;line-height:1.55;margin:3px 0 7px;color:inherit}.ts-bubble-time{display:block;text-align:right;opacity:.66;font-size:10px}
.ts-image-link{display:block}.ts-image-link img{display:block;max-width:100%;max-height:310px;object-fit:contain;border-radius:8px;margin-top:6px}
.ts-composer{position:relative;flex:none;padding:12px 18px;background:#17212d;border-top:1px solid #324153}
.ts-text{display:block;width:100%;min-height:64px;max-height:130px;resize:vertical;background:#0f1823!important;color:#f3f7fc!important;border:1px solid #425469!important;border-radius:12px!important;outline:none;padding:12px 14px!important;box-sizing:border-box}
.ts-composer-actions{display:flex;align-items:center;gap:7px;margin-top:9px;position:relative}
.ts-icon-button{border:0!important;background:#243246!important;color:#e4eefa!important;border-radius:9px!important;min-width:38px;height:36px;padding:6px!important;font-size:18px!important}
.ts-send{border:0!important;background:#2baf87!important;color:#071a15!important;border-radius:9px!important;padding:9px 18px!important;font-weight:750!important}
.ts-send:disabled{opacity:.5!important;cursor:wait}.ts-action-spacer{flex:1}
.ts-emoji-menu{position:absolute;bottom:46px;left:0;width:264px;padding:9px;display:grid;grid-template-columns:repeat(6,1fr);gap:4px;background:#263243;border:1px solid #4b6077;border-radius:12px;box-shadow:0 12px 38px #0009;z-index:2}
.ts-emoji-menu button{background:transparent!important;border:0!important;border-radius:6px!important;font-size:20px!important;padding:5px!important}.ts-emoji-menu button:hover{background:#41516a!important}
.ts-attachment-preview{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#223c48;border:1px solid #486977;border-radius:8px;padding:7px 11px;margin-bottom:8px;font-size:12px;overflow:hidden}
.ts-attachment-preview span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ts-attachment-preview button{border:0!important;background:none!important;color:#fff!important;font-size:20px!important;padding:0 4px!important}
.ts-feedback{min-height:14px;color:#8fe2bb;font-size:11px;margin-top:2px}.ts-feedback.error{color:#ffb3b3}
@media(max-width:720px){.ts-support-panel{right:0;bottom:0;width:100vw;height:100dvh;border-radius:0}.ts-layout{grid-template-columns:minmax(115px,34%) minmax(0,1fr)}.ts-header{min-height:64px;padding:10px 12px}.ts-header h2{font-size:15px}.ts-enable-push{font-size:10px!important;padding:6px 9px}.ts-left-head{display:block;padding:12px 9px}.ts-connection{display:block}.ts-search{font-size:12px!important}.ts-thread{padding:9px 5px!important;gap:6px}.ts-thread-avatar{width:30px;height:30px;font-size:13px}.ts-thread-info strong{font-size:11px}.ts-thread-preview,.ts-workspace-label,.ts-thread-top time{font-size:10px}.ts-peer-head{padding:10px}.ts-messages{padding:12px}.ts-bubble{max-width:96%}.ts-composer{padding:9px}.ts-text{min-height:55px}.ts-peer-sub{font-size:10px}}

/* Support Desk v2 — incorporates the tidy composition of the original TaskEsc chat. */
.ts-support-panel{background:#0b0e13;border-color:#252c34;color:#e8edf3;box-shadow:0 22px 65px #0009;max-width:100%;font-size:12px}
.ts-support-panel .ts-header{background:#0e131a;border-color:#242d39;min-height:67px;padding:11px 17px}
.ts-support-panel .ts-header h2{font-size:15px;letter-spacing:-.22px}
.ts-support-panel .ts-header small{color:#8796a6;font-size:10px}
.ts-support-panel .ts-enable-push{min-height:35px;color:#dae8f5;background:#192637;border-color:#36495b;font-size:11px!important}
.ts-support-panel .ts-close{font-size:22px!important;background:#19232e}
.ts-support-panel .ts-layout{grid-template-columns:minmax(245px,305px) minmax(0,1fr);min-height:0}
.ts-support-panel .ts-left{background:#0e1319;border-color:#242e39}
.ts-support-panel .ts-left-head{padding:15px 13px 9px}
.ts-support-panel .ts-left-head strong{font-size:13px}
.ts-support-panel .ts-search{margin:2px 11px 11px;width:calc(100% - 22px)!important;height:38px;padding:9px 12px!important;border:1px solid #313b47!important;border-radius:9px!important;background:#151e29!important;color:#f0f3f6!important;font-size:11px!important}
.ts-support-panel .ts-search:focus{border-color:#7393ac!important}
.ts-support-panel .ts-threads{padding:2px 7px 12px}
.ts-support-panel .ts-thread{padding:10px 8px!important;min-height:64px;border-radius:10px!important;gap:10px}
.ts-support-panel .ts-thread:hover{background:#17202b!important}
.ts-support-panel .ts-thread.active{background:#1c2a37!important;border-color:#293e50!important}
.ts-support-panel .ts-thread-avatar{width:38px;height:38px;font-size:13px;background:#15222e;border:1px solid #3a4858;color:#b7d8ee;border-radius:11px}
.ts-support-panel .ts-thread-top strong{font-size:12px}
.ts-support-panel .ts-thread-preview{color:#8698aa;font-size:11px}
.ts-support-panel .ts-workspace-label{color:#647e92;font-size:10px}
.ts-support-panel .ts-right{background:#0b1117}
.ts-support-panel .ts-peer-head{background:#111a24;border-color:#283340;min-height:66px;padding:10px 17px}
.ts-support-panel .ts-peer-avatar{width:38px;height:38px;border-radius:11px;background:#203648;border:1px solid #3a4d61;font-size:13px}
.ts-support-panel .ts-peer{font-size:13px}.ts-support-panel .ts-peer-sub{font-size:10px}
.ts-support-panel .ts-messages{padding:20px;gap:9px;background-image:none;background-color:#0b1117}
.ts-support-panel .ts-bubble{max-width:min(79%,600px);padding:10px 13px;border-radius:13px 13px 13px 3px;border-color:#2b3d4d;background:#1a2734;box-shadow:0 2px 4px #0002}
.ts-support-panel .ts-bubble.mine{background:#163a35;border-color:#305c4b;border-radius:13px 13px 3px 13px}
.ts-support-panel .ts-bubble-text{margin:3px 0 5px;font-size:12px;line-height:1.6}
.ts-support-panel .ts-bubble-sender{font-size:10px;color:#9ac4d9}
.ts-support-panel .ts-bubble.mine .ts-bubble-sender{color:#8ddab7}
.ts-support-panel .ts-bubble-time{font-size:9px}
.ts-support-panel .ts-composer{padding:12px 16px 10px;background:#111a24;border-color:#273543}
.ts-support-panel .ts-text{border-radius:10px!important;background:#0d141c!important;border-color:#354657!important;min-height:56px;font-size:12px!important;max-height:115px}
.ts-support-panel .ts-icon-button{height:35px;width:35px;border-radius:9px!important;background:#1b2c3a!important;color:#bed5e8!important}
.ts-support-panel .ts-send{min-height:35px!important;background:#d8e5ef!important;color:#102333!important;border-radius:9px!important;font-size:11px!important;padding:8px 16px!important}
.ts-support-panel .ts-send:hover{background:#edf5fb!important}
.ts-support-panel .ts-feedback{font-size:10px}
.ts-support-panel.ts-inline{position:relative;right:auto;bottom:auto;width:100%;height:calc(100dvh - 180px);max-height:880px;min-height:530px;box-shadow:none;margin:0;border:1px solid #273541;border-radius:12px;z-index:1}
.ts-support-panel.ts-inline .ts-layout{grid-template-columns:minmax(260px,30%) minmax(0,1fr)}
.ts-support-panel.ts-inline .ts-header{border-top-left-radius:12px;border-top-right-radius:12px}
.ts-support-panel.ts-inline[hidden]{display:none!important}
.ts-support-panel .ts-mobile-back{display:none;align-items:center;justify-content:center;border:1px solid #344555;background:#1c2b3a;color:#e4f3ff;width:34px;height:34px;min-width:34px;border-radius:8px;padding:0;font-size:21px}
.master-page .ts-support-fab{display:none!important}
@media(max-width:720px){
.ts-support-panel:not(.ts-inline){position:fixed;inset:0;width:100vw;max-width:100vw;height:100dvh;max-height:none;border:0;border-radius:0;z-index:9901}
.ts-support-panel.ts-inline{width:100%;min-height:0;height:calc(100dvh - 163px);max-height:none;border-radius:11px}
.ts-support-panel .ts-header{min-height:58px;padding:8px 10px;gap:8px}
.ts-support-panel .ts-header h2{font-size:13px}
.ts-support-panel .ts-header small{font-size:9px}
.ts-support-panel .ts-enable-push{min-height:30px;padding:5px 8px;border-radius:8px;font-size:9px!important}
.ts-support-panel .ts-close{width:31px;height:31px}
.ts-support-panel .ts-layout,.ts-support-panel.ts-inline .ts-layout{position:relative;display:block;min-height:0;flex:1}
.ts-support-panel .ts-left,.ts-support-panel .ts-right{position:absolute;inset:0;min-height:0;height:100%;width:100%;border:0}
.ts-support-panel .ts-left{display:flex}
.ts-support-panel .ts-right{display:none}
.ts-support-panel.ts-conversation-active .ts-left{display:none}
.ts-support-panel.ts-conversation-active .ts-right{display:flex}
.ts-support-panel .ts-mobile-back{display:flex}
.ts-support-panel .ts-left-head{padding:13px 12px 9px;display:flex}
.ts-support-panel .ts-left-head strong{font-size:13px}
.ts-support-panel .ts-connection{font-size:9px}
.ts-support-panel .ts-search{font-size:12px!important;height:42px;margin-inline:10px;width:calc(100% - 20px)!important}
.ts-support-panel .ts-thread{min-height:72px;padding:12px 10px!important}
.ts-support-panel .ts-thread-avatar{height:41px;width:41px}
.ts-support-panel .ts-thread-top strong{font-size:12px}
.ts-support-panel .ts-thread-preview{font-size:11px}
.ts-support-panel .ts-peer-head{min-height:58px;padding:8px 11px;gap:8px}
.ts-support-panel .ts-peer{font-size:12px}
.ts-support-panel .ts-messages{padding:12px 10px;gap:10px}
.ts-support-panel .ts-bubble{max-width:88%;padding:9px 11px}
.ts-support-panel .ts-bubble-text{font-size:12px}
.ts-support-panel .ts-composer{padding:8px 10px max(8px,env(safe-area-inset-bottom))}
.ts-support-panel .ts-text{min-height:44px;max-height:90px;font-size:12px!important}
.ts-support-panel .ts-send{padding:7px 12px!important}
.ts-support-panel .ts-emoji-menu{width:min(260px,calc(100vw - 48px))}
}
@media(max-width:400px){
.ts-support-panel .ts-header h2{font-size:12px}
.ts-support-panel .ts-header-tools{gap:5px}
.ts-support-panel .ts-enable-push{padding:5px!important;max-width:135px;line-height:1.2}
.ts-support-panel .ts-peer-sub{max-width:200px}
}

/* WhatsApp-inspired support popup, aligned with TaskEsc's compact dark UI. */
.ts-master-overlay{position:fixed;inset:0;z-index:9899;background:rgba(0,0,0,.67);backdrop-filter:blur(3px)}
.ts-master-overlay[hidden]{display:none!important}
.ts-support-panel.ts-master-popup{
 position:fixed;left:50%;top:50%;right:auto;bottom:auto;
 transform:translate(-50%,-50%);width:min(1280px,calc(100vw - 52px));
 height:min(860px,calc(100dvh - 56px));max-height:none;min-height:420px;
 z-index:9901;border:1px solid #323a43;border-radius:9px;
 box-shadow:0 30px 100px rgba(0,0,0,.72);background:#0e141b;
}
.ts-support-panel .ts-header{
 background:#20262d;border-bottom:1px solid #313943;border-radius:0;
 padding:12px 18px;min-height:60px;
}
.ts-support-panel .ts-header h2{font-size:14px;font-weight:750}
.ts-support-panel .ts-header small{font-size:10px}
.ts-support-panel .ts-close{border-radius:6px}
.ts-support-panel .ts-enable-push{border-radius:6px}
.ts-support-panel .ts-layout{grid-template-columns:minmax(285px,33%) minmax(0,1fr)}
.ts-support-panel.ts-master-popup .ts-layout{grid-template-columns:minmax(300px,34%) minmax(0,1fr)}
.ts-support-panel .ts-left{background:#111820;border-right-color:#2f3740}
.ts-support-panel .ts-left-head{padding:16px 17px 10px}
.ts-support-panel .ts-left-head strong{font-size:14px}
.ts-support-panel .ts-search{height:40px;border-radius:7px!important;background:#1b252e!important;border-color:#303b47!important;font-size:12px!important}
.ts-support-panel .ts-threads{padding:5px 9px 16px;gap:1px}
.ts-support-panel .ts-thread{min-height:70px;border-radius:7px!important;padding:12px 10px!important}
.ts-support-panel .ts-thread.active{background:#24303b!important;border-color:#40505c!important}
.ts-support-panel .ts-thread-avatar{border-radius:50%;width:42px;height:42px;flex:0 0 42px;background:#335063;border:0;color:#e1f1fa;font-size:15px}
.ts-support-panel .ts-thread-top strong{font-size:12px}
.ts-support-panel .ts-thread-preview{font-size:11px;color:#96a4b2}
.ts-support-panel .ts-peer-head{background:#20262e;min-height:61px;padding:10px 16px;border-bottom-color:#343b45}
.ts-support-panel .ts-peer-avatar{border-radius:50%;width:39px;height:39px;background:#344b5d;border:0}
.ts-support-panel .ts-peer{font-size:13px}
.ts-support-panel .ts-right{background:#11171d}
.ts-support-panel .ts-messages{
 background-color:#11171d;
 background-image:repeating-linear-gradient(30deg,transparent 0 62px,rgba(255,255,255,.014) 63px 64px),repeating-linear-gradient(-30deg,transparent 0 92px,rgba(255,255,255,.012) 93px 94px);
 padding:24px clamp(14px,3vw,50px);gap:8px;
}
.ts-support-panel .ts-bubble{background:#252c34;border-color:#313a44;color:#e8eef5;max-width:min(76%,600px);border-radius:8px 8px 8px 2px;padding:8px 11px}
.ts-support-panel .ts-bubble.mine{background:#16463e;border-color:#1f5b50;color:#effff9;border-radius:8px 8px 2px 8px}
.ts-support-panel .ts-bubble-text{font-size:12px;line-height:1.45;margin:3px 0}
.ts-support-panel .ts-bubble-sender{font-size:10px;color:#a6d3e5}
.ts-support-panel .ts-bubble-time{font-size:9px;color:#bfd2dc;margin-top:4px}
.ts-support-panel .ts-composer{background:#20262e;padding:11px 15px;border-top:1px solid #303943}
.ts-support-panel .ts-text{border-color:#3a4653!important;background:#131b23!important;border-radius:7px!important;min-height:51px;max-height:105px;padding:11px 13px!important}
.ts-support-panel .ts-icon-button{background:#2e3945!important;border-radius:6px!important;min-height:36px}
.ts-support-panel .ts-send{border-radius:6px!important;background:#297f69!important;color:#fff!important;font-size:12px!important}
.ts-support-panel .ts-send:hover{background:#32947b!important}
.ts-support-panel .ts-attachment-preview{border-radius:6px}
.ts-support-panel .ts-emoji-menu{border-radius:7px}
@media(max-width:720px){
 .ts-support-panel.ts-master-popup,.ts-support-panel:not(.ts-inline){
  position:fixed;inset:0;top:0;left:0;right:0;bottom:0;transform:none;
  width:100vw;height:100dvh;min-height:0;max-height:none;border:0;border-radius:0;
 }
 .ts-support-panel .ts-layout,.ts-support-panel.ts-master-popup .ts-layout{display:block;position:relative;flex:1;min-height:0}
 .ts-support-panel .ts-left,.ts-support-panel .ts-right{position:absolute;inset:0;width:100%;height:100%;border:0}
 .ts-support-panel .ts-left{display:flex}.ts-support-panel .ts-right{display:none}
 .ts-support-panel.ts-conversation-active .ts-left{display:none}
 .ts-support-panel.ts-conversation-active .ts-right{display:flex}
 .ts-support-panel .ts-header{padding:9px 12px;min-height:56px}
 .ts-support-panel .ts-left-head{padding:13px 13px 9px}
 .ts-support-panel .ts-thread{min-height:73px}
 .ts-support-panel .ts-messages{padding:13px 12px}
 .ts-support-panel .ts-bubble{max-width:88%}
 .ts-support-panel .ts-peer-head{min-height:58px}
 .ts-support-panel .ts-composer{padding:8px 10px max(9px,env(safe-area-inset-bottom))}
 .ts-support-panel .ts-text{min-height:43px;max-height:100px}
 .ts-support-panel .ts-mobile-back{display:flex}
}

/* Master support dock — small WhatsApp-like popup, not a fullscreen page. */
.master-page .ts-support-fab{
 display:flex!important;position:fixed;right:22px;bottom:20px;z-index:9903;
 width:58px;height:58px;justify-content:center;align-items:center;
 font-size:25px!important;border-radius:14px;border:1px solid #386b68;
 background:#168874;color:white;padding:0;box-shadow:0 12px 34px #0009;
}
.master-page .ts-support-fab .ts-support-indicator{
 position:absolute;top:-9px;right:-8px;border:2px solid #10151b;
 display:flex;align-items:center;justify-content:center;min-width:25px;height:25px;
 padding:0 5px;border-radius:999px;background:#ef554e;color:white;font-size:11px;font-weight:800;
 box-sizing:border-box;
}
.master-page .ts-support-fab .ts-support-indicator[hidden]{display:none!important}
.ts-support-panel.ts-master-popup{
 position:fixed;transform:none;left:auto;top:auto;
 right:21px;bottom:88px;width:min(850px,calc(100vw - 40px));
 height:min(660px,calc(100dvh - 115px));min-height:370px;
 max-height:calc(100dvh - 115px);
 z-index:9902;border-radius:10px;box-shadow:0 14px 70px #000b;
}
.ts-support-panel.ts-master-popup .ts-layout{grid-template-columns:minmax(235px,35%) minmax(0,1fr)}
.ts-support-panel.ts-master-popup .ts-header{min-height:52px;padding:8px 13px}
.ts-support-panel.ts-master-popup .ts-left-head{padding:11px 12px 8px}
.ts-support-panel.ts-master-popup .ts-messages{padding:15px 20px}
.ts-support-panel.ts-master-popup .ts-composer{padding:9px 12px}
@media(max-width:720px){
 .master-page .ts-support-fab{width:52px;height:52px;bottom:14px;right:12px;border-radius:12px}
 .ts-support-panel.ts-master-popup{position:fixed;left:8px;right:8px;top:auto;bottom:75px;
   width:calc(100vw - 16px);height:min(710px,calc(100dvh - 87px));max-height:calc(100dvh - 87px);
   min-height:0;border:1px solid #303d49;border-radius:10px;transform:none}
 .ts-support-panel.ts-master-popup .ts-layout{display:block;position:relative;min-height:0;flex:1}
 .ts-support-panel.ts-master-popup .ts-left,.ts-support-panel.ts-master-popup .ts-right{position:absolute;inset:0;width:100%;height:100%}
 .ts-support-panel.ts-master-popup .ts-left{display:flex}
 .ts-support-panel.ts-master-popup .ts-right{display:none}
 .ts-support-panel.ts-master-popup.ts-conversation-active .ts-left{display:none}
 .ts-support-panel.ts-master-popup.ts-conversation-active .ts-right{display:flex}
 .ts-support-panel.ts-master-popup .ts-messages{padding:13px 11px}
}

/* Small-radius vector FAB; numeric unread badge remains round for legibility. */
.ts-support-fab .ts-support-icon{display:block;width:23px;height:23px;flex-shrink:0}
.master-page .ts-support-fab{border-radius:7px!important;width:52px;height:52px;background:#188879}
.master-page .ts-support-panel.ts-master-popup{border-radius:6px}
.master-page .ts-support-panel .ts-thread,.master-page .ts-support-panel .ts-search,
.master-page .ts-support-panel .ts-text,.master-page .ts-support-panel .ts-bubble,
.master-page .ts-support-panel .ts-send,.master-page .ts-support-panel .ts-icon-button{border-radius:5px!important}
@media(max-width:720px){.master-page .ts-support-fab{width:49px;height:49px;right:12px;bottom:12px;border-radius:6px!important}}

/* Wide message bubbles: preserve natural short messages, use space for long ones. */
.ts-support-panel .ts-bubble{max-width:min(92%,790px);min-width:min(145px,48%);width:max-content;overflow-wrap:anywhere}
.ts-support-panel .ts-bubble-text{white-space:pre-wrap;overflow-wrap:anywhere}
.ts-support-panel.ts-master-popup .ts-bubble{max-width:94%;min-width:min(175px,45%)}
@media(max-width:720px){
 .ts-support-panel .ts-bubble,.ts-support-panel.ts-master-popup .ts-bubble{max-width:94%;min-width:min(135px,42%)}
}

/* Support chat v4: 30% smaller than 1180×780 desktop, compact readable bubbles. */
.ts-support-panel,.ts-support-panel.ts-master-popup{
 --chat-bg:#0a1016;--chat-border:#283846;
 --chat-primary:#8db7d1;--chat-sent:#214d57;
}
.ts-support-panel.ts-master-popup{
 width:min(826px,calc(100vw - 32px))!important;
 height:min(546px,calc(100dvh - 105px))!important;
 max-width:calc(100vw - 32px)!important;
 max-height:calc(100dvh - 105px)!important;
 min-height:0!important;
 right:16px!important;bottom:82px!important;
 left:auto!important;top:auto!important;
 transform:none!important;
}
.ts-support-panel.ts-master-popup .ts-layout{
 grid-template-columns:minmax(225px,32%) minmax(0,1fr)!important;
}
.ts-support-panel .ts-left{background:#101820;border-right:1px solid var(--chat-border)}
.ts-support-panel .ts-right{background:#0a1016}
.ts-support-panel .ts-header{background:#111b24;border-bottom:1px solid var(--chat-border)}
.ts-support-panel .ts-search{background:#182532!important;border:1px solid #344b60!important}
.ts-support-panel .ts-thread{border-radius:7px!important}
.ts-support-panel .ts-thread.active{background:#233747!important;border-color:#42627a!important}
.ts-support-panel .ts-thread-preview{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ts-support-panel .ts-peer-head{background:#15212c;border-bottom:1px solid var(--chat-border)}
.ts-support-panel .ts-messages{
 background-color:var(--chat-bg);
 background-image:radial-gradient(circle at center,#344b5820 1px,transparent 1px);
 background-size:23px 23px;
 padding:13px clamp(10px,2vw,20px)!important;
 gap:6px!important;
}
.ts-support-panel .ts-bubble,.ts-support-panel.ts-master-popup .ts-bubble{
 display:block;width:max-content;
 min-width:0!important;max-width:min(88%,600px)!important;
 background:#1f2d38;border:1px solid #344654;
 border-radius:8px 8px 8px 2px!important;
 padding:6px 10px!important;margin:0;
 white-space:normal;overflow-wrap:anywhere;line-height:1.35;
}
.ts-support-panel .ts-bubble.mine{
 background:var(--chat-sent);border-color:#397481;
 border-radius:8px 8px 2px 8px!important;
}
.ts-support-panel .ts-bubble-meta{
 display:flex;align-items:center;justify-content:space-between;
 gap:10px;min-width:150px;max-width:100%;
 margin-bottom:3px;line-height:1.15;
}
.ts-support-panel .ts-bubble-sender{
 display:block;font-size:10px!important;line-height:1.15;margin:0;
}
.ts-support-panel .ts-bubble-time{
 display:block;text-align:right;white-space:nowrap;
 font-size:9px!important;line-height:1.15;
 opacity:.77;margin:0;flex-shrink:0;
}
.ts-support-panel .ts-bubble-text{
 font-size:12px!important;line-height:1.35!important;
 margin:0!important;white-space:pre-wrap;
}
.ts-support-panel .ts-bubble img{max-height:200px}
.ts-support-panel .ts-composer{
 margin-top:auto;background:#15212c;border-top:1px solid var(--chat-border);
 padding:8px 12px!important;
}
.ts-support-panel .ts-text{
 background:#0e1820!important;border:1px solid #3a4b5c!important;
 border-radius:7px!important;min-height:39px!important;
 max-height:85px!important;
}
.ts-support-panel .ts-composer-actions{margin-top:5px!important}
.ts-support-panel .ts-send{background:#357c91!important;border-color:#4389a0!important;color:#fff!important}
.ts-support-panel .ts-send:hover{background:#4596ad!important}
@media(max-width:720px){
 .ts-support-panel.ts-master-popup{
  left:8px!important;right:8px!important;top:auto!important;bottom:73px!important;
  width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;
  height:min(546px,calc(100dvh - 86px))!important;
  max-height:calc(100dvh - 86px)!important;
 }
 .ts-support-panel.ts-master-popup .ts-layout{
  display:block!important;position:relative!important;flex:1;min-height:0;
 }
 .ts-support-panel .ts-messages{padding:10px!important}
 .ts-support-panel .ts-bubble,.ts-support-panel.ts-master-popup .ts-bubble{
  max-width:95%!important;padding:6px 8px!important;
 }
 .ts-support-panel .ts-bubble-meta{min-width:0;flex-wrap:wrap;gap:4px 8px}
}

/* Support desk width reduced a further 20%: 826 -> 661px on desktop. */
.ts-support-panel.ts-master-popup{
 width:min(661px,calc(100vw - 32px))!important;
 max-width:calc(100vw - 32px)!important;
}
.ts-support-panel.ts-master-popup .ts-layout{
 grid-template-columns:minmax(185px,33%) minmax(0,1fr)!important;
}
.ts-support-panel .ts-avatar-photo{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
@media(max-width:720px){
 .ts-support-panel.ts-master-popup{width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important}
 .ts-support-panel.ts-master-popup .ts-layout{display:block!important}
}
