.cs-workspace{max-width:1100px;margin:auto;padding:20px;color:var(--crm-ui-text)}.cs-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.cs-head h2{font-size:22px;margin:0}.cs-head p{font-size:13px;color:var(--crm-ui-muted)}.cs-log{display:flex;flex-direction:column;gap:12px;min-height:240px;height:45dvh;overflow:auto;padding:16px 0}.cs-message{max-width:80%;padding:12px;border:1px solid var(--crm-ui-border);border-radius:8px;background:var(--crm-ui-surface);align-self:flex-start}.cs-message.mine{align-self:flex-end;background:var(--crm-ui-field)}.cs-message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}.cs-message small{color:var(--crm-ui-muted)}.cs-composer{display:flex;align-items:flex-end;gap:10px}.cs-composer textarea{flex:1;min-width:0;resize:vertical}.cs-composer button{width:44px;min-width:44px;height:44px;padding:10px}.cs-composer svg{width:22px;height:22px}.cs-error{color:#dc3545}.cs-money{display:flex;flex-wrap:wrap;gap:18px;padding:12px 0}.cs-money>div{display:grid;gap:5px;min-width:140px}.cs-money span{font-size:12px;color:var(--crm-ui-muted)}.cs-money strong{font-size:16px}.cs-chat-payments{padding:8px 16px;border-bottom:1px solid var(--crm-ui-border);background:var(--crm-ui-surface);font-size:13px}.cs-bottom-links{display:flex;justify-content:flex-end;gap:12px;padding:8px 16px}.cs-bottom-links button{background:transparent;border:0;color:var(--crm-ui-muted);font:inherit;font-size:13px;cursor:pointer}.cs-dialog{position:fixed;inset:0;margin:auto;width:460px;max-width:calc(100vw - 32px);padding:20px;border:1px solid var(--crm-ui-border,var(--border));border-radius:8px;background:var(--crm-ui-surface,var(--bg));color:var(--crm-ui-text,var(--text));font:inherit}.cs-dialog::backdrop{background:#0009}.cs-dialog form label{display:grid;gap:10px}.cs-dialog [data-close]{width:36px;height:36px;border:0;border-radius:5px;background:#dc3545;color:white}.cs-dialog [data-close] svg{width:18px;height:18px}.cs-dialog .cs-head h3{font-size:18px}@media(max-width:600px){.cs-workspace{padding:12px}.cs-head{align-items:flex-start}.cs-money{gap:12px}.cs-money>div{min-width:120px}.cs-message{max-width:92%}}
.cs-workspace .field-input,.cs-dialog .field-input{font:inherit;color:var(--crm-ui-text,var(--text));background:var(--crm-ui-field,var(--bg));border:1px solid var(--crm-ui-border,var(--border));border-radius:6px;padding:10px;min-height:40px}.cs-workspace .data-table,.cs-workspace .data-table th,.cs-workspace .data-table td{font-family:inherit}.cs-workspace .data-table-wrap{border-radius:8px;box-shadow:none}.cs-composer button{border-radius:6px}.cs-chat-payments summary{cursor:pointer}.cs-bottom-links button:hover{color:var(--crm-ui-text)}
.cs-full{width:100%;max-width:none;margin:0;padding:0;display:flex;flex-direction:column;min-height:560px;height:calc(100dvh - 118px);font-family:inherit;letter-spacing:0}.cs-full>.cs-head{padding:18px 24px;border-bottom:1px solid var(--crm-ui-border);flex:none;min-height:82px;justify-content:flex-start}.cs-full .cs-head h2{font-size:21px;line-height:1.4}.cs-full .cs-head p{margin:2px 0 0}.cs-full .cs-head>.btn,.cs-ai-quota{margin-left:auto}.cs-heading-icon{width:42px;height:42px;display:grid;place-items:center;background:var(--crm-ui-field);color:var(--primary);border-radius:8px;flex:none}.cs-heading-icon svg{width:24px;height:24px}.cs-support-layout,.cs-ai-layout{flex:1;min-height:0;display:grid;background:var(--crm-ui-surface)}.cs-support-layout{grid-template-columns:320px minmax(0,1fr)}.cs-ai-layout{grid-template-columns:220px minmax(0,1fr)}.cs-ticket-sidebar,.cs-ai-sidebar{border-right:1px solid var(--crm-ui-border);background:var(--crm-ui-field);min-height:0;overflow:auto}.cs-ticket-tools{display:grid;gap:10px;padding:16px;border-bottom:1px solid var(--crm-ui-border)}.cs-ticket-list{padding:8px}.cs-ticket-item{display:flex;flex-direction:column;align-items:stretch;gap:9px;width:100%;padding:16px 12px;border:0;border-bottom:1px solid var(--crm-ui-border);background:transparent;color:var(--crm-ui-text);font:inherit;text-align:left;cursor:pointer;border-radius:6px;overflow-wrap:anywhere}.cs-ticket-item:hover{background:var(--crm-ui-surface)}.cs-ticket-item.active{background:var(--crm-ui-surface);box-shadow:inset 3px 0 var(--primary)}.cs-ticket-item strong{font-size:14px;line-height:1.5}.cs-ticket-item>span:not(.cs-ticket-item-top),.cs-ticket-item small{font-size:12px;color:var(--crm-ui-muted)}.cs-ticket-item-top{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap}.cs-status{display:inline-flex;align-items:center;font-size:11px;font-weight:600;color:var(--primary);padding:4px 7px;border-radius:4px;background:color-mix(in srgb,var(--primary) 12%,transparent)}.cs-status[data-status=in_progress]{color:#2784d7;background:color-mix(in srgb,#2784d7 12%,transparent)}.cs-status[data-status=awaiting_user]{color:#bc8000;background:color-mix(in srgb,#d6a31c 12%,transparent)}.cs-status[data-status=resolved]{color:var(--crm-ui-muted);background:var(--crm-ui-field)}.cs-ticket-main,.cs-ai-main{min-width:0;min-height:0;display:flex;flex-direction:column}.cs-ticket-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 24px;border-bottom:1px solid var(--crm-ui-border)}.cs-ticket-head h3{font-size:18px;line-height:1.5;margin:5px 0;overflow-wrap:anywhere}.cs-ticket-head small,.cs-ticket-head p{font-size:12px;color:var(--crm-ui-muted)}.cs-ticket-head>div:first-child{min-width:0}.cs-ticket-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.cs-full .cs-log{height:auto;min-height:0;flex:1;padding:24px;gap:16px;overflow-y:auto;scrollbar-gutter:stable}.cs-full .cs-message{max-width:min(760px,85%);padding:16px 18px;border-radius:8px;background:var(--crm-ui-field);border:1px solid var(--crm-ui-border);font-size:14px;line-height:1.65;flex:none}.cs-full .cs-message.mine{background:color-mix(in srgb,var(--primary) 9%,var(--crm-ui-surface));border-color:color-mix(in srgb,var(--primary) 24%,var(--crm-ui-border))}.cs-message-meta{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}.cs-message-meta strong{font-size:12px}.cs-message-meta small{font-size:11px}.cs-full .cs-message p{margin:8px 0 0}.cs-compose-area{flex:none;padding:16px 24px;border-top:1px solid var(--crm-ui-border);background:var(--crm-ui-surface)}.cs-full .cs-composer{align-items:flex-end;gap:12px}.cs-full .cs-composer textarea{height:64px;min-height:64px;max-height:160px;resize:none;padding:14px 16px;line-height:1.5}.cs-full .cs-composer button{width:48px;height:48px;min-width:48px}.cs-full .btn{border-radius:6px;font-family:inherit}.cs-full .cs-error{font-size:13px;line-height:1.5;overflow-wrap:anywhere;margin:6px 0 0;min-height:0}.cs-global-error{padding:0 24px}.cs-error:empty{display:none}.cs-empty{flex:1;min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;color:var(--crm-ui-muted);text-align:center}.cs-empty svg{width:42px;height:42px;color:var(--primary)}.cs-empty h3{font-size:18px;color:var(--crm-ui-text)}.cs-list-empty{padding:24px 12px;color:var(--crm-ui-muted);font-size:13px}.cs-ticket-dialog{width:640px;max-height:calc(100dvh - 32px);overflow:auto}.cs-ticket-form{display:grid;gap:18px;margin-top:24px}.cs-ticket-form label{font-size:13px;display:grid;gap:8px}.cs-ticket-form footer{display:flex;justify-content:flex-end}.cs-ticket-form textarea{resize:vertical}.cs-ai-sidebar{padding:24px 14px}.cs-ai-sidebar h3{font-size:14px;font-weight:700;padding:0 12px;margin:0 0 24px;color:var(--crm-ui-text)}.cs-ai-active{padding:12px;display:flex;align-items:center;gap:10px;background:var(--crm-ui-surface);border-left:3px solid var(--primary);font-size:13px;border-radius:4px}.cs-ai-sidebar svg{width:18px;height:18px;flex:none}.cs-ai-shortcuts{display:grid;gap:8px;margin-top:28px}.cs-ai-shortcuts button{display:flex;align-items:center;gap:10px;background:transparent;border:0;padding:12px;color:var(--crm-ui-muted);font:inherit;font-size:13px;text-align:left;cursor:pointer;border-radius:4px}.cs-ai-shortcuts button:hover{color:var(--crm-ui-text);background:var(--crm-ui-surface)}.cs-ai-quota{display:grid;gap:8px;min-width:160px;font-size:12px;color:var(--crm-ui-muted)}.cs-ai-quota progress{width:100%;height:5px;accent-color:var(--primary)}.cs-ai-note{display:block;font-size:11px;color:var(--crm-ui-muted);margin-top:10px;line-height:1.5}.cs-delivery{display:flex;align-items:center;justify-content:flex-end;gap:14px;font-size:11px;color:var(--crm-ui-muted);margin-top:12px}.cs-delivery .btn{font-size:12px;min-height:28px;padding:4px 8px;display:flex;align-items:center;gap:6px}.cs-delivery svg{width:14px;height:14px}.cs-ai-main .cs-ai-answer{background:transparent;border-color:transparent;padding-left:0;max-width:min(900px,95%)}.cs-full button svg{width:18px;height:18px;vertical-align:middle}.cs-full .cs-composer button svg{width:24px;height:24px}
@media(max-width:900px){.cs-support-layout{grid-template-columns:260px minmax(0,1fr)}.cs-ai-layout{grid-template-columns:180px minmax(0,1fr)}.cs-ticket-head{align-items:flex-start;flex-direction:column}.cs-full>.cs-head{padding:16px}.cs-compose-area{padding:16px}.cs-full .cs-log{padding:16px}.cs-ai-quota{min-width:130px}}
@media(max-width:600px){.cs-full{height:auto;min-height:calc(100dvh - 118px)}.cs-full>.cs-head{gap:10px;flex-wrap:wrap}.cs-full .cs-head h2{font-size:18px}.cs-heading-icon{width:34px;height:34px}.cs-full .cs-head>.btn{font-size:12px;padding:10px}.cs-support-layout{grid-template-columns:minmax(0,1fr)}.cs-ticket-sidebar{max-height:230px;border-right:0;border-bottom:1px solid var(--crm-ui-border)}.cs-ticket-tools{grid-template-columns:1fr 130px;padding:10px}.cs-ticket-list{max-height:150px;overflow:auto}.cs-ticket-main{min-height:480px}.cs-ticket-head{padding:16px}.cs-ai-layout{grid-template-columns:minmax(0,1fr)}.cs-ai-sidebar{display:none}.cs-ai-main{min-height:calc(100dvh - 240px)}.cs-full .cs-log{min-height:220px;max-height:55dvh}.cs-full .cs-message{max-width:94%;padding:12px}.cs-ai-quota{min-width:125px}.cs-message-meta{gap:8px}.cs-full .cs-composer button{width:42px;height:42px;min-width:42px}.cs-ai-note{font-size:10px}.cs-ticket-dialog{padding:16px}}
/* Service pages inherit the active CRM theme and typeface. */
.cs-full{font-family:inherit;letter-spacing:0;background:transparent;min-height:0;height:calc(100dvh - 118px)}
.cs-support-layout,.cs-ai-layout{background:transparent}
.cs-full>.cs-head{border:0;padding:22px 28px;min-height:86px}
.cs-full .cs-head h2{font-size:22px;font-weight:600}
.cs-heading-icon{background:var(--crm-ui-field);color:var(--crm-ui-text);border-radius:50%;width:38px;height:38px}
.cs-heading-icon.cs-ai-icon{background:rgba(0,179,65,.14);color:#00b341;display:grid;place-items:center;flex-shrink:0}
.cs-ai-symbol{display:inline-grid;place-items:center;font-family:inherit;font-size:14px;font-weight:700;line-height:1;letter-spacing:0;color:#00b341}
.cs-full :is(.cs-head>.btn-primary,.cs-composer>.btn-primary){background:var(--crm-ui-text)!important;color:var(--crm-ui-surface)!important;border:0;box-shadow:none}
.cs-full .cs-head>.btn-primary{border-radius:20px;padding:10px 18px}
.cs-ai-layout{grid-template-columns:260px minmax(0,1fr)}
.cs-support-layout{grid-template-columns:300px minmax(0,1fr)}
.cs-ai-sidebar,.cs-ticket-sidebar{border:0;background:transparent}
.cs-ai-sidebar{padding:28px 18px}
.cs-ai-sidebar h3{padding:0 12px;font-size:14px;font-weight:600;margin-bottom:20px}
.cs-ai-history{display:grid;gap:8px}
.cs-ai-history-item{display:flex;align-items:flex-start;gap:10px;text-align:left;width:100%;padding:14px 12px;background:var(--crm-ui-surface);color:var(--crm-ui-text);border:0;border-radius:8px;font:inherit;font-size:13px;overflow-wrap:anywhere;cursor:pointer}
.cs-ai-history-item>span{display:grid;gap:5px;min-width:0}
.cs-ai-history-item small{font-size:11px;color:var(--crm-ui-muted)}
.cs-ai-history-item svg{flex:none;margin-top:2px}
.cs-ticket-tools{border:0;padding:20px 16px}
.cs-ticket-tools .field-input{border:0;background:var(--crm-ui-surface);border-radius:8px}
.cs-ticket-list{padding:0 12px 16px}
.cs-ticket-item{border:0;padding:16px 12px;margin-bottom:6px;gap:7px}
.cs-ticket-item.active{box-shadow:none;background:var(--crm-ui-surface)}
.cs-ticket-head{border:0;padding:24px 32px}
.cs-status{background:transparent;color:var(--crm-ui-muted);padding:0;font-size:12px;font-weight:500}
.cs-status[data-status=in_progress],.cs-status[data-status=awaiting_user],.cs-status[data-status=resolved]{background:transparent}
.cs-full .cs-log{padding:24px 32px;gap:22px;scrollbar-gutter:stable}
.cs-full .cs-message{border:0;background:var(--crm-ui-field);padding:14px 18px;border-radius:8px;max-width:min(880px,85%);line-height:1.7}
.cs-full .cs-message.mine{border:0;background:var(--crm-ui-field);border-radius:18px 18px 4px 18px}
.cs-ai-main .cs-ai-answer{background:transparent;border:0;padding-left:0;max-width:min(1000px,95%)}
.cs-message-meta strong{font-weight:600}
.cs-compose-area{border:0;padding:18px 32px 20px;background:transparent}
.cs-full .cs-composer{background:var(--crm-ui-field);border-radius:24px;padding:12px 14px;align-items:center;gap:12px}
.cs-full .cs-composer textarea.field-input{background:transparent!important;border:0!important;color:var(--crm-ui-text)!important;border-radius:0;margin:0!important;padding:10px;min-height:64px;height:64px;font-size:16px;box-shadow:none!important}
.cs-full .cs-composer>.btn-primary{border-radius:50%;width:42px;min-width:42px;height:42px;padding:0;flex:none;display:grid;place-items:center;margin:0;line-height:1;transform:none!important}
.cs-full .cs-composer>.btn-primary svg{display:block;width:22px;height:22px;margin:0}
.cs-dialog [data-close]{display:grid;place-items:center;padding:0;line-height:1;flex:none;width:36px;height:36px}
.cs-dialog [data-close] svg{display:block;width:18px;height:18px;margin:0}
.cs-ai-note{font-size:11px;text-align:center;margin-top:12px}
@media(min-width:601px){.cs-ai-workspace .cs-compose-area{padding-bottom:8px}}
.cs-ai-quota progress{accent-color:var(--crm-ui-text)}
.cs-empty svg{color:var(--crm-ui-muted)}
.cs-ticket-dialog{border:0;box-shadow:0 20px 70px #0003}
.cs-ticket-dialog .cs-head{border:0}
.cs-ticket-dialog .field-input{border:0;background:var(--crm-ui-field);border-radius:8px}
.cs-ticket-dialog footer .btn-primary{background:var(--crm-ui-text);color:var(--crm-ui-surface);border:0;border-radius:20px}
@media(min-width:1440px){.cs-ai-layout{grid-template-columns:280px minmax(0,1fr)}.cs-support-layout{grid-template-columns:320px minmax(0,1fr)}.cs-full>.cs-head{padding:22px 32px}.cs-full .cs-log{padding:28px 48px}.cs-compose-area{padding:20px 48px 24px}.cs-ticket-head{padding:24px 48px}.cs-ai-sidebar{padding:32px 24px}}
@media(max-width:900px){.cs-ai-layout{grid-template-columns:210px minmax(0,1fr)}.cs-support-layout{grid-template-columns:240px minmax(0,1fr)}.cs-full>.cs-head{padding:18px}.cs-full .cs-log,.cs-ticket-head{padding:20px}.cs-compose-area{padding:16px 20px}.cs-ai-sidebar{padding:24px 12px}}
@media(max-width:600px){.cs-full{height:auto;min-height:calc(100dvh - 118px)}.cs-full>.cs-head{padding:16px;gap:12px}.cs-full .cs-head h2{font-size:18px}.cs-ai-layout,.cs-support-layout{grid-template-columns:minmax(0,1fr)}.cs-ai-sidebar{display:none}.cs-ticket-sidebar{border:0;max-height:230px}.cs-ticket-tools{padding:12px}.cs-ticket-head{padding:18px 16px}.cs-full .cs-log{padding:18px 16px;gap:16px}.cs-full .cs-message{max-width:94%;padding:12px 14px}.cs-compose-area{padding:14px 16px}.cs-full .cs-composer{padding:8px;border-radius:20px;gap:8px}.cs-full .cs-composer textarea.field-input{padding:8px;min-height:56px;height:56px}.cs-full .cs-composer>.btn-primary{width:40px;min-width:40px;height:40px}.cs-ai-note{font-size:11px}.cs-full .cs-head>.btn-primary{font-size:12px;padding:10px 12px}}
