
#csWrap .cs-status{font-size:10px;line-height:1;color:#FFE7B0;border:1px solid rgba(255,231,176,.45);background:rgba(255,255,255,.08);border-radius:8px;padding:3px 6px;white-space:nowrap;margin-left:2px}
#csWrap .cs-chat{position:relative}
#csWrap .cs-msgs{min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:12px 12px 8px}
#csWrap .msg{align-items:flex-start;margin-bottom:12px;gap:8px}
#csWrap .msg .mi{min-width:0;max-width:calc(100% - 38px);display:flex;flex-direction:column;gap:4px}
#csWrap .msg.them .mi{align-items:flex-start}
#csWrap .msg.me .mi{align-items:flex-end}
#csWrap .msg .bub{max-width:100%;width:auto;display:inline-block;padding:8px 11px;border-radius:10px;font-size:14px;line-height:1.55;word-break:break-word;overflow-wrap:anywhere;white-space:pre-wrap}
#csWrap .msg .bub img{max-width:100%;height:auto;border-radius:6px;display:block}
#csWrap .msg .tm{font-size:11px;line-height:1.3;color:#8b93a1;margin:0 2px;align-self:auto;white-space:nowrap}
#csWrap .msg.me .tm{order:0}
#csWrap .msg.pending .tm{color:#b45309}
#csWrap .msg.failed .tm{color:#b91c1c}
#csWrap .msg.failed .bub{border-color:#fca5a5}#csWrap .msg.unconfirmed .tm{color:#b45309}#csWrap .cs-retry{margin-left:4px;padding:0 4px;border:0;background:none;color:#b91c1c;font-size:11px;font-weight:700;cursor:pointer;text-decoration:underline;line-height:1.3}#csWrap .cs-retry:hover{color:#7f1d1d}
#csWrap .msg .av{width:30px;height:30px;flex:0 0 30px;font-size:6px;overflow:hidden}
#csWrap .msg .av img{width:100%;height:100%;object-fit:cover;border-radius:50%}
#csWrap .cs-newmsg{position:absolute;left:50%;bottom:56px;transform:translateX(-50%);z-index:20;display:none;height:30px;padding:0 12px;border:1px solid #C7A364;border-radius:15px;background:#fff;color:#8F1729;font-size:12px;font-weight:700;box-shadow:0 4px 12px rgba(0,0,0,.12);cursor:pointer}
#csWrap .cs-input{padding-bottom:max(9px,env(safe-area-inset-bottom))}
#csWrap .cs-input textarea{font-size:16px;line-height:1.4}
#csWrap .cs-input textarea::placeholder{font-size:14px}
@media (max-width:800px){
  #csWrap .cs-head{height:52px}
  #csWrap .cs-status{font-size:9px;padding:2px 5px}
  #csWrap .cs-chat{min-height:0}
  #csWrap .cs-msgs{padding:10px 10px 6px}
  #csWrap .msg{margin-bottom:10px}
  #csWrap .msg .mi{max-width:calc(100% - 36px)}
  #csWrap .msg .bub{font-size:14px;padding:8px 10px}
  #csWrap .msg .av{width:28px;height:28px;flex-basis:28px}
  #csWrap .cs-newmsg{bottom:54px;height:29px}
  #csWrap .cs-input{padding:8px 10px max(8px,env(safe-area-inset-bottom));gap:6px}
  #csWrap .cs-input textarea{height:40px;font-size:16px;padding:9px 10px}
  #csWrap .cs-input button{height:40px}
}

/* Layout C: all accents inherit --qh-ink from the original system settings. */
#csWrap{display:flex!important;flex-direction:column;--support-accent:var(--qh-ink,#111827);z-index:2147483000!important;border:1px solid var(--qh-line,#e5e7eb);box-shadow:0 16px 56px #15232b26;border-radius:20px 20px 0 0!important;overflow:hidden;background:#f7f9fa;width:380px!important;height:min(620px,85dvh)!important;max-width:calc(100vw - 24px)!important;bottom:12px!important;top:auto!important;isolation:isolate}
#csWrap.hidden{display:none!important}
#csWrap .cs-head{position:relative;display:grid!important;grid-template-columns:40px 1fr 40px;grid-template-rows:24px 18px;gap:0!important;flex:0 0 76px!important;height:76px!important;padding:18px 10px 8px!important;border-radius:0!important;background:#fff;background:color-mix(in srgb,var(--support-accent) 5%,#fff)!important;color:var(--support-accent)}
#csWrap .cs-head::before{content:'';position:absolute;top:7px;left:calc(50% - 18px);width:36px;height:4px;border-radius:4px;background:#bec8ca}
#csWrap .cs-head .ava,#csWrap .cs-head .sp{display:none!important}
#csWrap .cs-head .nm{grid-area:1/2;text-align:center;font-size:15px!important;color:var(--qh-text,#18282b)!important;line-height:24px;letter-spacing:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#csWrap .cs-head .cs-status{grid-area:2/2;justify-self:center;line-height:18px;font-size:11px;border:0;padding:0;background:none!important;color:var(--support-accent)!important}
#csWrap .cs-status::before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;margin-right:5px;background:currentColor;vertical-align:1px}
#csWrap .cs-back,#csWrap .cs-head .fold{grid-row:1/3;width:40px!important;height:42px!important;padding:0!important;border:0!important;border-radius:8px!important;background:none!important;color:var(--qh-text,#18282b)!important;display:grid;place-items:center;align-self:center;cursor:pointer}
#csWrap .cs-back{grid-column:1}#csWrap .cs-head .fold{grid-column:3}
#csWrap .cs-body{flex:1!important;display:flex;flex-direction:column;min-height:0!important;border-radius:0!important;overflow:hidden}
#csWrap .cs-panel{overflow-y:auto;min-height:0;flex:1}#csWrap .cs-chat{flex:1!important;height:auto!important;max-height:none!important;min-height:0!important;flex-direction:column}
#csWrap .cs-msgs{flex:1!important;min-height:0!important;padding:20px 14px!important;background:#f7f9fa;overscroll-behavior:contain;overflow-anchor:none}
#csWrap .msg{margin-bottom:18px;gap:8px;align-items:flex-start}
#csWrap .msg .av{width:28px;height:28px;background:#e3ecea;background:color-mix(in srgb,var(--support-accent) 13%,#fff);color:var(--support-accent)}
#csWrap .msg .av svg{color:inherit}#csWrap .msg.me .av{display:none}
#csWrap .msg .mi{max-width:calc(100% - 36px);gap:5px;align-items:flex-start;min-width:0}
#csWrap .msg.me .mi{max-width:82%;align-items:flex-end}
#csWrap .msg .bub{--support-bubble-bg:#fff;position:relative;max-width:100%;padding:9px 12px;border-radius:7px!important;border:1px solid transparent;background:var(--support-bubble-bg);color:#171717;font-size:14px;line-height:1.6;box-shadow:none}
#csWrap .msg.me .bub{--support-bubble-bg:#95ec69}
#csWrap .msg .bub::before{content:'';position:absolute;top:12px;right:100%;border:5px solid transparent;border-right:6px solid var(--support-bubble-bg);border-left:0;pointer-events:none}
#csWrap .msg.me .bub::before{right:auto;left:100%;border-right:0;border-left:6px solid var(--support-bubble-bg)}
#csWrap .msg .tm{font-size:10px;line-height:15px;margin:0 3px;color:#7b898f;align-self:auto;order:0}
#csWrap .cs-sys{font-size:11px;margin:0 0 20px;color:#7b898f;background:none}
#csWrap .cs-input{flex:0 0 auto!important;display:flex!important;align-items:center!important;gap:4px!important;padding:10px 8px max(12px,env(safe-area-inset-bottom))!important;background:#fff;border-top:1px solid #e5ebed}
#csWrap .cs-input textarea{order:0;flex:1;min-width:0;height:42px!important;max-height:90px;padding:10px 8px!important;border:1px solid #e2e9ec;border-radius:12px!important;background:#fafcfc;font-size:16px!important;line-height:22px!important;overflow-y:auto!important;box-sizing:border-box}
#csWrap .cs-input textarea:focus{border-color:var(--support-accent);box-shadow:none}
#csWrap .cs-input .cs-ico{height:42px!important;width:36px!important;min-width:36px!important;padding:0!important;border-radius:9px!important;border:0;background:transparent!important;color:var(--qh-text,#26383d)!important;display:grid;place-items:center}
#csWrap #csEmojiBtn{order:1}#csWrap #csImgBtn{order:2}#csWrap #csVoiceBtn{order:3;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
#csWrap #csVoiceBtn[hidden]{display:none!important}#csWrap #csVoiceBtn.is-recording{color:var(--support-accent)!important;background:#eef1ef!important}
#csWrap #csSend{order:4;width:48px;min-width:48px;padding:0 8px;height:38px!important;border-radius:10px!important;background:var(--support-accent)!important;color:#fff;font-size:13px}
#csWrap #csHistory{align-self:center;border:0;background:transparent;color:var(--support-accent);font:inherit;font-size:12px;padding:8px 12px}
#csWrap .cs-emoji{left:8px!important;right:8px!important;bottom:calc(100% + 8px)!important;max-width:none!important;max-height:200px;overflow:auto}
#csWrap button:focus-visible{outline:2px solid var(--support-accent);outline-offset:2px}
.cs-backdrop{position:fixed;inset:0;z-index:2147482999;background:#17252a66;touch-action:none}
.cs-backdrop[hidden],.cs-record-overlay[hidden]{display:none!important}
@media(max-width:800px){
 body.cs-chat-open{overflow:hidden!important}
 body.cs-chat-open #qhRail,body.cs-chat-open #csFab,body.cs-chat-open #navAdBar{visibility:hidden!important;pointer-events:none!important}
 #csWrap{width:var(--support-width,100vw)!important;height:var(--support-height,90dvh)!important;max-height:var(--support-height,90dvh)!important;max-width:none!important;top:var(--support-top,10dvh)!important;bottom:auto!important;left:0!important;right:0!important;margin:0!important;border-left:0;border-right:0;border-bottom:0;border-radius:22px 22px 0 0!important;transform:none!important}
}
.support-voice-bubble{display:inline-flex;align-items:center;justify-content:space-between;gap:20px;min-height:40px;max-width:100%;padding:6px 10px;border:0;border-radius:9px;background:transparent;color:inherit;cursor:pointer;vertical-align:middle}
.support-voice-bubble.voice-short{width:112px}.support-voice-bubble.voice-medium{width:168px}.support-voice-bubble.voice-long{width:220px}
.support-voice-wave{display:flex;align-items:center;gap:3px;height:22px}
.support-voice-wave i{display:block;width:3px;height:7px;background:currentColor;border-radius:2px}
.support-voice-wave i:nth-child(2){height:13px}.support-voice-wave i:nth-child(3){height:20px}
.support-voice-bubble.is-playing .support-voice-wave i{animation:support-voice-wave .8s infinite alternate}
.support-voice-bubble.is-playing .support-voice-wave i:nth-child(2){animation-delay:.15s}.support-voice-bubble.is-playing .support-voice-wave i:nth-child(3){animation-delay:.3s}
.support-voice-bubble audio{display:none!important}
.cs-record-overlay{position:fixed;inset:0;z-index:2147483100;background:#182329b8;color:#fff;touch-action:none;user-select:none;-webkit-user-select:none;display:flex;justify-content:center;font-family:inherit}
.cs-record-main{position:absolute;top:36%;left:50%;transform:translate(-50%,-25%);width:min(280px,80%);text-align:center}
.cs-record-clock{font-size:13px;line-height:24px;margin-bottom:16px;color:#ffffffd9;font-variant-numeric:tabular-nums}
.cs-record-bubble{position:relative;display:grid;place-items:center;height:112px;border-radius:26px;background:var(--qh-ink,#111827);box-shadow:0 10px 35px #0002}
.cs-record-bubble::after{content:'';position:absolute;bottom:-9px;left:calc(50% - 10px);width:20px;height:20px;transform:rotate(45deg);background:inherit;border-radius:3px}
.cs-record-wave{display:flex;align-items:center;justify-content:center;gap:3px;height:64px}
.cs-record-wave i{display:block;width:3px;min-height:6px;border-radius:3px;background:currentColor;transition:height .14s linear;animation:support-record-wave .9s ease-in-out infinite alternate;animation-delay:calc(var(--record-index)*-.045s)}
.cs-record-hint{font-size:17px;line-height:28px;margin-top:24px;color:#fff}
.cs-record-cancel{position:absolute;bottom:calc(10% + env(safe-area-inset-bottom));border-radius:40px;padding:20px 44px;background:#ffffff24;font-size:17px;color:#fff}
.cs-record-overlay.is-cancelling .cs-record-bubble{background:#b53c48}.cs-record-overlay.is-cancelling .cs-record-cancel{background:#b53c48}
.cs-record-overlay.is-ending .cs-record-clock{font-weight:700}
@keyframes support-voice-wave{from{transform:scaleY(.3);opacity:.4}to{transform:scaleY(1);opacity:1}}
@keyframes support-record-wave{from{transform:scaleY(.55)}to{transform:scaleY(1)}}
@media(prefers-reduced-motion:reduce){.support-voice-bubble.is-playing .support-voice-wave i,.cs-record-wave i{animation:none;transition:none}}

#csWrap .cs-newmsg{border-color:var(--support-accent);color:var(--support-accent)}

#csWrap .cs-media-retry{border:0;background:transparent;color:inherit;text-decoration:underline;font:inherit;font-size:12px;padding:6px;cursor:pointer}

#csLiveCall{display:flex;align-items:center;gap:6px 10px;flex-wrap:wrap;padding:8px 12px;border-top:1px solid #8883;font-size:12px}
#csLiveCall[hidden],#csLiveCall button[hidden],#csLiveCall audio{display:none}
#csLiveCall button{padding:6px 10px;border:1px solid var(--support-accent,currentColor);border-radius:7px;background:transparent;color:inherit;font:inherit;cursor:pointer}
