.support-launch{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:7px 10px;margin-left:auto;border:1px solid rgba(255,255,255,.36);border-radius:12px;color:#fff;background:rgba(255,255,255,.14);font:600 12px/1.2 'Raleway',sans-serif;cursor:pointer;flex-shrink:0}
.support-launch:not(.hidden)+.admin-btn{margin-left:6px}
.support-launch i{font-size:18px;line-height:1;display:flex;align-items:center}
.support-launch-count{min-width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;background:#eae8ff;color:#393f9e;font:700 11px/1 'Golos Text',sans-serif}
.support-launch-count[hidden]{display:none}
.support-overlay{position:fixed;left:0;right:0;top:0;height:100dvh;z-index:10020;background:rgba(35,31,66,.45);display:flex;align-items:center;justify-content:center;padding:24px;font-family:'Raleway',sans-serif;color:#303047}
.support-overlay[hidden]{display:none}
.support-overlay *{box-sizing:border-box}
.support-shell{width:min(1120px,100%);height:min(800px,100%);background:#fff;border-radius:20px;box-shadow:0 14px 60px rgba(35,31,66,.25);display:flex;flex-direction:column;overflow:hidden;min-height:0}
.support-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto;padding:18px 24px;color:#fff;background:linear-gradient(135deg,#393f9e,#563e8c)}
.support-header h2{margin:0;font-size:22px;font-weight:700;line-height:1.25}
.support-header p{margin:5px 0 0;font-size:13px;color:#e4e2f3;line-height:1.4}
.support-close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;height:40px;padding:0;border:0;border-radius:11px;background:rgba(255,255,255,.16);color:#fff;font-size:22px;cursor:pointer}
.support-close i,.support-back i,.support-refresh i{display:flex;align-items:center;justify-content:center;line-height:1}
.support-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(250px,32%) minmax(0,1fr)}
.support-status-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;flex-shrink:0;min-height:60px;padding:8px 14px;background:#f7f5fc;border-bottom:1px solid #e7e5f0;font:500 11px/16px 'Golos Text',sans-serif;color:#726b83}
.support-status-detail{min-width:0}.support-status-detail span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:16px}
.support-push-settings{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:5px 10px;margin-left:auto;background:#fff;color:#393f9e;border:1px solid #dcd7ed;border-radius:8px;font:600 11px/1.3 'Raleway',sans-serif;cursor:pointer}
.support-push-settings:focus{outline:none}.support-push-settings:focus-visible{outline:2px solid #9893d9;outline-offset:2px}
.support-sidebar{display:flex;flex-direction:column;min-height:0;border-right:1px solid #e7e5f0;background:#faf9fc;min-width:0}
.support-filters{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:14px;flex-shrink:0}
.support-filters button{display:flex;align-items:center;justify-content:center;min-height:38px;padding:7px;border:1px solid #dedbeb;border-radius:9px;background:#fff;color:#625c76;font:600 12px/1.2 'Raleway',sans-serif;cursor:pointer}
.support-filters button[aria-pressed="true"]{background:#393f9e;border-color:#393f9e;color:#fff}
.support-list-status{font-size:12px;line-height:1.5;color:#a43e3e;padding:0 14px;overflow-wrap:anywhere}
.support-list-status:not(:empty){padding-bottom:12px}
.support-thread-list{flex:1;min-height:0;overflow-y:auto;padding:0 12px 12px}
.support-thread{display:block;position:relative;width:100%;text-align:left;background:#fff;border:1px solid #e0dcea;border-radius:12px;padding:14px 12px;margin-bottom:10px;font:inherit;cursor:pointer;color:#303047;box-shadow:0 2px 5px rgba(48,48,71,.03)}
.support-thread:hover{background:#f1eff8}
.support-thread.is-selected{background:#eeecfa;border-color:#817ac0;box-shadow:inset 3px 0 #393f9e}
.support-thread-row{display:flex;justify-content:space-between;align-items:center;gap:8px;min-width:0}
.support-thread-row strong{font-size:14px;line-height:1.4;overflow-wrap:anywhere;min-width:0}
.support-channel{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border:1px solid transparent;border-radius:6px;padding:3px 5px;background:#f2f0f8;color:#69627b;font:600 10px/1.2 'Golos Text',sans-serif}
.support-channel--vk{background:#e8f0ff;border-color:#c5d9fc;color:#155ac3}
.support-channel--telegram{background:#e2f5f9;border-color:#b9e2ec;color:#096b83}
.support-thread-excerpt{display:block;font-size:12px;line-height:1.5;color:#726d82;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:6px;padding-right:14px}
.support-thread-meta{font-size:10px;color:#8a8499;margin-top:8px;line-height:1.4}
.support-unread{position:absolute;right:12px;top:43px;background:#393f9e;color:#fff;min-width:17px;height:17px;padding:0 4px;display:flex;align-items:center;justify-content:center;border-radius:9px;font:600 10px/1 'Golos Text',sans-serif}
.support-conversation{display:flex;flex-direction:column;min-width:0;min-height:0;background:#fff}
.support-thread-header{display:flex;align-items:center;gap:10px;min-height:58px;padding:10px 18px;border-bottom:1px solid #eeecf4;flex-shrink:0}
.support-thread-title{font-size:15px;line-height:1.4;font-weight:700;color:#393f9e;min-width:0;overflow-wrap:anywhere;flex:1}
.support-refresh,.support-back{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;height:36px;padding:0;border:1px solid #e1deee;border-radius:9px;background:#fff;color:#625597;font-size:18px;cursor:pointer}
.support-back{display:none}
.support-messages{flex:1;min-height:60px;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:12px;overscroll-behavior:contain;background:#fdfcfe}
.support-message{max-width:88%;align-self:flex-start;border-radius:14px 14px 14px 4px;padding:12px 14px;background:#eaf4fb;flex-shrink:0;min-width:90px}
.support-message-admin{align-self:flex-end;background:#e9defb;border-radius:14px 14px 4px 14px}
.support-message-bot{align-self:flex-end;max-width:88%;background:#f3f2f6;border:1px solid #e6e3ed;border-radius:14px 14px 4px 14px}
.support-message-text{font-size:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.support-message-meta{font-size:10px;line-height:1.5;color:#81798f;margin:7px 0 0}
.support-delivery-warning{border:1px solid #bd7a58}
.support-delivery-warning .support-message-meta{color:#97582e}
.support-attachment-note{font-size:11px;line-height:1.5;color:#756887;margin:7px 0 0}
.support-attachment{margin-top:9px;min-width:0}
.support-attachment-photo{display:block;max-width:min(300px,100%);height:auto;border-radius:9px}
.support-attachment-button,.support-attachment-download{display:inline-flex;align-items:center;justify-content:center;gap:7px;max-width:100%;min-height:38px;padding:8px 10px;border:1px solid #d0cbe4;border-radius:9px;background:#fff;color:#393f9e;font:600 12px/1.4 'Raleway',sans-serif;text-align:left;text-decoration:none;overflow-wrap:anywhere;cursor:pointer}
.support-attachment-button i{font-size:17px;line-height:1;display:flex;align-items:center;flex-shrink:0}
.support-attachment-button:disabled{opacity:.6;cursor:wait}
.support-attachment-error{font-size:11px;line-height:1.5;color:#a54c38;margin:7px 0 0;overflow-wrap:anywhere}
.support-attachment-download:focus{outline:none}
.support-attachment-download:focus-visible{outline:2px solid #9893d9;outline-offset:2px}
.support-empty{text-align:center;padding:30px 14px;color:#9690a4;font-size:13px;line-height:1.6;margin:auto 0}
.support-compose,.support-preview{flex:0 0 auto;padding:14px 20px 18px;border-top:1px solid #eeecf4;background:#fff;max-height:50%;overflow-y:auto}
.support-compose[hidden],.support-preview[hidden]{display:none}
.support-compose label{display:block;font-size:12px;font-weight:600;color:#696078;margin:0 0 7px}
.support-compose textarea{display:block;resize:vertical;min-height:80px;max-height:180px;width:100%;border:1px solid #d8d4e8;border-radius:11px;padding:10px 12px;background:#fff;color:#303047;font:400 16px/1.5 'Raleway',sans-serif;outline:none;margin:0 0 9px}
.support-compose>.support-primary{margin-left:auto}
.support-primary,.support-edit{display:flex;align-items:center;justify-content:center;gap:6px;min-height:42px;border:1px solid #393f9e;border-radius:10px;padding:10px 16px;background:#393f9e;color:#fff;font:600 13px/1.3 'Raleway',sans-serif;cursor:pointer}
.support-primary:disabled,.support-edit:disabled{opacity:.55;cursor:default}
.support-edit{background:#fff;color:#393f9e;border-color:#d8d4e8}
.support-preview-target{font-size:12px;font-weight:700;color:#393f9e;margin:0 0 9px;overflow-wrap:anywhere}
.support-preview-question{font-size:12px;color:#8a8097;border-left:3px solid #dcd7ee;padding:3px 10px;line-height:1.5;margin:0 0 12px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:90px;overflow-y:auto}
.support-preview-text{font-size:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;background:#f6f4fb;padding:12px;border-radius:10px;margin:0 0 12px}
.support-preview-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px}
.support-unknown-check{font-size:12px;line-height:1.5;color:#7c6576;margin-bottom:12px}
.support-unknown-check[hidden]{display:none}
.support-unknown-check label{display:flex;align-items:center;gap:8px}
.support-unknown-check input{width:17px;height:17px;accent-color:#393f9e;flex-shrink:0}
.support-new-reply{display:flex;align-items:center;justify-content:center;min-height:36px;border:1px solid #d8d4e8;border-radius:9px;padding:7px 12px;background:#fff;color:#393f9e;font:600 12px/1.3 'Raleway',sans-serif;cursor:pointer;margin-top:8px}
.support-new-reply:disabled{opacity:.55;cursor:default}
.support-reply-status,.support-preview-status{font-size:12px;line-height:1.5;color:#7c6576;overflow-wrap:anywhere}
.support-reply-status:not(:empty),.support-preview-status:not(:empty){margin:8px 0 10px}
.support-overlay button:focus,.support-launch:focus{outline:none}
.support-overlay button:focus-visible,.support-launch:focus-visible{outline:2px solid #9893d9;outline-offset:2px}
.support-overlay textarea:focus-visible{outline:2px solid #9893d9;outline-offset:1px}
@media(max-width:900px){
  .support-overlay{padding:12px}
  .support-shell{height:100%;border-radius:16px}
  .support-layout{grid-template-columns:minmax(220px,35%) minmax(0,1fr)}
}
@media(max-width:600px){
  .support-overlay{padding:0}
  .support-shell{width:100%;height:100%;border-radius:0}
  .support-header{padding:14px 16px}
  .support-header h2{font-size:20px}
  .support-header p{font-size:11px}
  .support-layout{display:flex;flex-direction:column}
  .support-sidebar{flex:1;border-right:0}
  .support-conversation{display:none;flex:1}
  .support-has-thread .support-sidebar{display:none}
  .support-has-thread .support-conversation{display:flex}
  .support-filters{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:12px}
  .support-filters button{font-size:11px;padding:6px 3px;min-height:42px}
  .support-back{display:flex}
  .support-messages{padding:14px;gap:10px}
  .support-message{max-width:92%}
  .support-message-text{font-size:14px}
  .support-compose,.support-preview{padding:12px 14px calc(12px + env(safe-area-inset-bottom));max-height:56%}
  .support-compose textarea{min-height:66px;max-height:100px}
  .support-thread-header{padding:9px 12px}
  .support-thread-title{font-size:14px}
  .support-launch-label{display:none}
  .support-launch{padding:6px;min-width:36px}
}
@media(prefers-reduced-motion:reduce){.support-overlay *{scroll-behavior:auto}}
.support-compact .support-header{padding:9px 14px}
.support-compact .support-header p{display:none}
.support-compact .support-thread-header{min-height:46px;padding-top:5px;padding-bottom:5px}
.support-compact .support-compose{padding-top:8px;padding-bottom:8px;max-height:65%}
.support-compact .support-compose textarea{height:50px;min-height:50px;max-height:70px;resize:none;margin-bottom:6px}
.support-compact .support-compose label{margin-bottom:4px}
.support-compact .support-messages{min-height:30px;padding-top:10px;padding-bottom:10px}

.support-overlay.support-embedded{position:relative;inset:auto;z-index:auto;height:100%;width:100%;padding:0;background:transparent;font-family:inherit}
.support-embedded .support-shell{width:100%;height:100%;border:1px solid #e7e5f0;border-radius:14px;box-shadow:none}
.support-embedded .support-header{display:none}
.support-embedded button,.support-embedded textarea{font-family:inherit}

.support-push-overlay{z-index:10030}
.support-push-shell{width:min(520px,100%);height:auto;max-height:100%;overflow:auto}
.support-push-form{padding:22px;font-size:14px;line-height:1.6}
.support-push-form p{margin:12px 0;color:#726b83}
.support-push-toggle{display:flex;align-items:center;gap:10px;font-weight:600}
.support-push-toggle input{width:20px;height:20px;flex-shrink:0;accent-color:#393f9e}
.support-push-result{min-height:24px}
@media(max-width:600px){.support-push-overlay{padding:12px}.support-push-shell{border-radius:16px}.support-push-form{padding:16px}.support-push-form .support-preview-actions{flex-wrap:wrap}}

.support-attachment-audio{display:block;width:300px;max-width:100%;height:44px}
