.support-chat-layout{display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr);gap:18px;align-items:stretch;min-height:580px;height:min(76vh,850px)}.chat-inbox,.chat-room{margin:0;min-width:0;overflow:hidden;border-radius:14px}.chat-inbox{display:flex;flex-direction:column;padding:0;background:#fff}.chat-inbox-heading{display:flex;justify-content:space-between;align-items:center;padding:20px 18px 4px;gap:10px}.chat-inbox-heading h2{font-size:20px}.chat-inbox-heading>span{font-size:13px;color:var(--muted)}.chat-search{padding:0 18px;margin:12px 0;font-size:12px}.chat-search input{margin-top:5px;font-size:14px}.chat-filters{padding:0 18px;display:flex;gap:8px}.chat-filters label{font-size:12px;flex:1;min-width:0;margin:0}.chat-filters select{font-size:12px;padding:8px 5px;margin-top:4px}.chat-connection{padding:8px 16px;color:var(--muted);font-size:12px;min-height:34px;flex-shrink:0}#chat-conversation-list{overflow:auto;flex:1}.chat-thread{display:block;width:100%;padding:16px 18px;text-align:left;border-radius:0;background:#fff;color:var(--ink);border-top:1px solid var(--line);font-size:14px}.chat-thread:hover{background:#f8f6fc;filter:none}.chat-thread.selected{background:#eee7fa;border-left:4px solid var(--purple);padding-left:14px}.chat-thread>div{display:flex;gap:12px;align-items:center;justify-content:space-between}.chat-thread>b{display:block;font-size:13px;font-weight:600;margin-top:5px}.chat-thread p{font-size:13px;line-height:1.5;font-weight:400;margin:6px 0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}.chat-thread small{display:block;color:var(--muted);font-size:11px;font-weight:400;margin-top:5px}.chat-count{display:inline-grid;place-items:center;background:var(--purple);color:white;border-radius:15px;min-width:23px;padding:2px 6px;font-size:11px}.chat-room{padding:0;display:flex;flex-direction:column;position:relative;background:#f8f7fc}.chat-room .chat-room-header{position:static;display:flex;align-items:flex-start;gap:12px;padding:18px 20px;flex-shrink:0;background:white}.chat-room-header h2{font-size:19px;overflow-wrap:anywhere}.chat-room-header p{font-size:12px;color:var(--muted);margin-top:5px}.chat-room-header .badge{font-size:11px;margin-top:8px}.chat-room-header>button{font-size:12px;margin-left:auto;white-space:normal;max-width:150px}.chat-room-header>div{flex:1;min-width:0}.chat-messages{flex:1;overflow:auto;padding:20px;min-height:160px;display:flex;flex-direction:column;gap:12px;overscroll-behavior:contain}.chat-message{align-self:flex-start;max-width:min(88%,620px);background:white;border:1px solid #e3dfed;border-radius:14px 14px 14px 3px;padding:12px 14px;box-shadow:0 2px 4px #20143505}.chat-message.mine{align-self:flex-end;background:#eee5fc;border-color:#ded0f3;border-radius:14px 14px 3px 14px}.chat-message strong{font-size:11px;color:#655083}.chat-message p{font-size:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0}.chat-message small{display:block;font-size:10px;text-align:right;color:var(--muted)}.chat-composer{background:white;border-top:1px solid var(--line);padding:14px 18px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end;flex-shrink:0}.chat-composer textarea{min-height:64px;max-height:180px;resize:vertical;font-size:14px;margin:0}.chat-composer button{height:44px;min-width:80px}.chat-composer small{grid-column:1/-1;font-size:11px}.chat-welcome{margin:auto;padding:35px;max-width:520px;text-align:center}.chat-welcome h2{margin-bottom:14px}.chat-welcome p{color:var(--muted);line-height:1.7}.chat-empty{padding:25px 18px;color:var(--muted);font-size:14px}.chat-older{align-self:center;font-size:12px;padding:8px 12px;flex-shrink:0}.chat-bottom{position:absolute;bottom:150px;right:20px;box-shadow:0 3px 14px #25163322;font-size:12px;z-index:2}.chat-mobile-back{display:none}.chat-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.chat-unread-badge{background:#8c5ada!important;color:white!important}#support-chat-new textarea{min-height:120px}
@media(max-width:1100px){.support-chat-layout{grid-template-columns:minmax(230px,285px) minmax(0,1fr);gap:12px}.chat-room .chat-room-header{padding:14px}.chat-message{max-width:94%}.chat-messages{padding:14px}}
@media(max-width:760px){.support-chat-layout{grid-template-columns:1fr;height:72vh;min-height:480px}.support-chat-layout .chat-room{display:none}.support-chat-layout.chat-has-room .chat-inbox{display:none}.support-chat-layout.chat-has-room .chat-room{display:flex}.chat-room .chat-room-header{flex-wrap:wrap}.chat-room-header .chat-mobile-back{display:block;margin:0;max-width:none;flex-basis:100%;width:max-content;text-align:left;font-size:12px;padding:6px 0;background:transparent;color:var(--purple)}.chat-room-header>button[data-chat-status]{max-width:120px}.chat-room-header h2{font-size:17px}.chat-composer{padding:10px;gap:7px}.chat-composer button{min-width:65px;padding:10px}.chat-message{max-width:94%}.chat-welcome{padding:24px}}
