.helpdesk-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 20px;background:#fff;border-bottom:1px solid #e2e8f0;color:#64748b;font-size:12px;min-height:44px}.helpdesk-bar>div{display:flex;align-items:center;gap:20px}.helpdesk-bar-admin{color:#475569}.helpdesk-help-button{display:flex;align-items:center;gap:7px;border:1px solid #d5dce4;border-radius:9px;padding:5px 13px;background:#f8fafc;color:#0f172a;font-size:14px;font-weight:600}.helpdesk-count{background:#b45309;color:white;border-radius:20px;padding:1px 6px;font-size:11px}.helpdesk-overlay{position:fixed;inset:0;z-index:150;background:#0f172a66;display:flex;justify-content:flex-end;height:100dvh;outline:none}.helpdesk-dialog{width:min(960px,100%);height:100%;display:flex;flex-direction:column;background:#fff;box-shadow:-8px 0 40px #0f172a25}.helpdesk-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 24px;border-bottom:1px solid #e2e8f0}.helpdesk-heading h1,.helpdesk-heading strong{font-size:21px;font-weight:650;color:#17202e}.helpdesk-heading span{display:block;color:#64748b;font-size:12px;margin-top:3px}.helpdesk-heading>button{font-size:18px;min-width:38px;min-height:38px;border-radius:8px}.helpdesk-heading a{font-size:13px;color:#475569}.helpdesk-panel{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:0;flex:1;overflow:hidden;font-size:14px;color:#1e293b}.helpdesk-announcement button,.helpdesk-panel button{cursor:pointer}.helpdesk-panel button:disabled{cursor:default;opacity:.55}.helpdesk-panel input:not([type=checkbox]),.helpdesk-panel select,.helpdesk-panel textarea{border:1px solid #d8dee8;border-radius:7px;background:#fff;padding:9px 10px;min-width:0;font:inherit;max-width:100%}.helpdesk-panel input:focus,.helpdesk-panel select:focus,.helpdesk-panel textarea:focus{outline:2px solid #d9770680;outline-offset:1px}.helpdesk-bar button:focus-visible,.helpdesk-panel button:focus-visible{outline:2px solid #b45309;outline-offset:2px}.helpdesk-list{display:flex;flex-direction:column;min-height:0;border-right:1px solid #e2e8f0;background:#f8fafb}.helpdesk-list-tools{display:flex;gap:8px;flex-wrap:wrap;padding:16px}.helpdesk-admin-controls button,.helpdesk-announcement button,.helpdesk-compose-actions button,.helpdesk-list-tools button{border:1px solid #d7dee7;border-radius:8px;background:white;padding:8px 12px;font-size:13px}.helpdesk-announcement button:first-child,.helpdesk-panel .helpdesk-primary{background:#172536;color:white;border-color:#172536}.helpdesk-filters{padding:0 16px 14px;display:grid;gap:9px}.helpdesk-filters label{display:flex;align-items:center;gap:8px;font-size:12px}.helpdesk-ticket-list{overflow:auto;flex:1}.helpdesk-ticket{display:block;width:100%;text-align:left;padding:15px 16px;border-top:1px solid #e5e9ef;overflow-wrap:anywhere}.helpdesk-ticket.selected{background:#fff5e7;box-shadow:inset 3px 0 #d97706}.helpdesk-ticket strong{display:block;font-size:14px;margin:6px 0;font-weight:600}.helpdesk-ticket span:not(.helpdesk-ticket-meta){display:block;font-size:12px;color:#475569}.helpdesk-ticket-meta{display:flex;justify-content:space-between;gap:5px}.helpdesk-ticket small,.helpdesk-ticket-meta{font-size:11px;color:#64748b}.helpdesk-conversation{display:flex;flex-direction:column;min-height:0;min-width:0;background:white}.helpdesk-conversation-title{border-bottom:1px solid #e2e8f0;padding:15px 22px}.helpdesk-conversation-title h2,.helpdesk-settings h2{font-size:17px;font-weight:650;overflow-wrap:anywhere}.helpdesk-conversation-title p{font-size:12px;color:#64748b;margin-top:5px}.helpdesk-admin-controls{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.helpdesk-admin-controls button,.helpdesk-admin-controls select{font-size:12px;padding:6px;min-height:34px}.helpdesk-messages{flex:1;overflow:auto;overscroll-behavior:contain;min-height:90px;padding:18px 22px;background:#fdfdfc}.helpdesk-message{margin-top:14px;border:1px solid #e2e8f0;border-radius:12px;padding:12px 14px;overflow-wrap:anywhere;background:white;max-width:96%}.helpdesk-message.employee{margin-left:28px;background:#f0f5f9}.helpdesk-message.assistant{border-left:3px solid #c18c47}.helpdesk-message.internal{background:#fff6dc;border:1px dashed #d0a65a}.helpdesk-message header{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:11px;color:#64748b}.helpdesk-message header strong{font-weight:600}.helpdesk-message p{white-space:pre-wrap;font-size:14px;line-height:1.6;margin-top:7px}.helpdesk-message ul{padding:8px 0 0;list-style:none;font-size:12px}.helpdesk-context a,.helpdesk-message a{color:#155e75;text-decoration:underline}.helpdesk-context{font-size:11px;color:#64748b;background:#f1f5f9;border-radius:7px;padding:9px 11px;overflow-wrap:anywhere}.helpdesk-context summary{cursor:pointer}.helpdesk-context p{margin:6px 0;line-height:1.55}.helpdesk-new-context{padding:15px 22px;flex:1;overflow:auto}.helpdesk-state{font-size:12px;line-height:1.5;background:#fff6e9;color:#88521d;border-radius:8px;padding:10px;margin:12px 0}.helpdesk-composer{border-top:1px solid #e2e8f0;background:#fff;padding:13px 20px max(13px,env(safe-area-inset-bottom));flex-shrink:0;max-height:65%;overflow:auto}.helpdesk-composer.internal{background:#fffaed}.helpdesk-composer textarea{width:100%;resize:vertical;max-height:160px;min-height:70px}.helpdesk-new-fields{display:grid;grid-template-columns:minmax(0,1fr) 165px;gap:8px;margin-bottom:9px}.helpdesk-compose-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:9px 0}.helpdesk-compose-actions>span{font-size:11px;color:#64748b}.helpdesk-composer>small{font-size:10px;color:#64748b;line-height:1.4;display:block}.helpdesk-prepared-files{list-style:none;margin:8px 0;display:grid;gap:5px;font-size:12px}.helpdesk-prepared-files li{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#f1f5f9;padding:5px 8px;border-radius:6px;overflow-wrap:anywhere}.helpdesk-prepared-files button{min-width:30px;min-height:30px}.helpdesk-private-label{font-size:11px;color:#87580b;display:block;margin-bottom:9px}.helpdesk-error{font-size:12px;line-height:1.5;color:#a12b25;background:#fff0ee;padding:9px 12px;margin:6px 10px;border-radius:6px;overflow-wrap:anywhere}.helpdesk-reply-tabs{display:flex;gap:6px;padding:8px 20px 0}.helpdesk-reply-tabs button{font-size:12px;padding:6px 8px;border-radius:6px}.helpdesk-reply-tabs button[aria-pressed=true]{background:#e8eef4;font-weight:600}.helpdesk-reply-tabs button:last-child[aria-pressed=true]{background:#fff0c7}.helpdesk-empty{padding:24px 16px;font-size:13px;color:#64748b}.helpdesk-welcome{margin:auto;text-align:center;max-width:350px;padding:28px;color:#64748b}.helpdesk-welcome>span{display:block;font-size:40px;color:#b58a54;margin-bottom:18px}.helpdesk-welcome h2{color:#334155;font-size:20px;font-weight:600;margin-bottom:10px}.helpdesk-welcome p{font-size:13px;line-height:1.7}.helpdesk-mobile-back{display:none}.helpdesk-admin-page{margin:22px auto;max-width:1300px;border:1px solid #dfe5ec;border-radius:13px;background:white;height:calc(100dvh - 95px);min-height:500px;display:flex;flex-direction:column;overflow:hidden}.helpdesk-settings{overflow:auto;padding:24px;line-height:1.6}.helpdesk-settings h3{font-size:14px;font-weight:600;margin:24px 0 10px}.helpdesk-settings p{font-size:12px;color:#64748b;margin:6px 0}.helpdesk-settings label{display:flex;gap:9px;align-items:flex-start;margin:12px 0;font-size:13px}.helpdesk-settings input[type=checkbox]{margin-top:5px}.helpdesk-settings small{display:block;font-size:11px;color:#64748b;overflow-wrap:anywhere}.helpdesk-employee-settings{max-height:240px;overflow:auto;border:1px solid #e2e8f0;border-radius:8px;padding:0 12px}.helpdesk-announcement{margin:12px auto;padding:16px 20px;max-width:850px;background:#fff8eb;border:1px solid #ead8b8;border-radius:10px;font-size:13px;line-height:1.6}.helpdesk-announcement p{margin-top:7px}.helpdesk-announcement>div{display:flex;gap:10px;margin-top:12px}@media(max-width:640px){.helpdesk-bar{padding:6px 12px}.helpdesk-bar>span{font-size:11px}.helpdesk-bar>div{gap:12px}.helpdesk-heading{padding:12px 15px}.helpdesk-heading h1,.helpdesk-heading strong{font-size:18px}.helpdesk-panel{grid-template-columns:minmax(0,1fr)}.helpdesk-conversation,.helpdesk-show-detail .helpdesk-list{display:none}.helpdesk-show-detail .helpdesk-conversation{display:flex}.helpdesk-mobile-back{display:block;text-align:left;padding:9px 14px;border-bottom:1px solid #e2e8f0;font-size:12px}.helpdesk-conversation-title{padding:10px 14px}.helpdesk-conversation-title h2{font-size:15px}.helpdesk-messages{padding:12px}.helpdesk-message{padding:10px;max-width:100%}.helpdesk-message.employee{margin-left:18px}.helpdesk-composer{padding:10px 12px max(10px,env(safe-area-inset-bottom))}.helpdesk-compose-actions{gap:5px}.helpdesk-compose-actions button{padding:8px;font-size:12px}.helpdesk-compose-actions>span{font-size:10px}.helpdesk-new-fields{grid-template-columns:1fr}.helpdesk-composer textarea{font-size:16px;min-height:65px;max-height:110px}.helpdesk-reply-tabs{padding:6px 12px 0}.helpdesk-admin-page{margin:8px;height:calc(100dvh - 64px);min-height:0;border-radius:9px}.helpdesk-settings{padding:16px}.helpdesk-announcement{margin:8px}.helpdesk-new-context{padding:12px}.helpdesk-bar-admin{font-size:11px}}.helpdesk-telegram-bot{border:1px solid #dde4ec;border-radius:9px;padding:12px;margin:10px 0}.helpdesk-telegram-bot>strong{font-size:13px}.helpdesk-telegram-bot button{border:1px solid #cbd5e1;border-radius:7px;background:#fff;padding:7px 10px;font-size:12px;margin:4px 0}.helpdesk-telegram-bot>a{display:block;color:#155e75;text-decoration:underline;font-size:12px;margin:9px 0}.helpdesk-load-history{display:block;margin:14px auto 0;border:1px solid #d7dee7;border-radius:8px;background:white;padding:8px 12px;font-size:13px}.helpdesk-load-history:disabled{opacity:.6;cursor:wait}.helpdesk-section-tabs{display:flex;gap:6px;border-bottom:1px solid #e2e8f0;padding:8px 20px}.helpdesk-section-tabs button{padding:8px 10px;border-radius:7px;font-size:12px;min-height:36px}.helpdesk-section-tabs button[aria-pressed=true]{background:#e8eef4;font-weight:600}.helpdesk-admin-history{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:18px 22px;background:#fcfcfb;line-height:1.5;overflow-wrap:anywhere}.helpdesk-admin-history section+section{margin-top:25px}.helpdesk-admin-history h3{font-weight:650;font-size:16px;margin-bottom:12px}.helpdesk-history-card{border:1px solid #dfe5ec;border-radius:10px;padding:14px;margin:10px 0;background:white}.helpdesk-history-card header{display:flex;flex-wrap:wrap;justify-content:space-between;gap:7px;font-size:12px}.helpdesk-history-card header time,.helpdesk-history-empty,.helpdesk-history-muted{font-size:12px;color:#64748b}.helpdesk-history-card h4{font-size:14px;font-weight:600;white-space:pre-wrap;margin:10px 0 5px}.helpdesk-history-card p{margin:7px 0;white-space:pre-wrap}.helpdesk-history-card details{margin:12px 0 5px;font-size:12px}.helpdesk-history-card summary{cursor:pointer;color:#155e75}.helpdesk-history-card ul{padding-left:18px;margin:7px 0}.helpdesk-history-hash{font:11px ui-monospace,monospace;word-break:break-all;color:#64748b}.helpdesk-history-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.helpdesk-history-actions button{padding:8px 12px;border:1px solid #cbd5e1;border-radius:8px;min-height:38px;font-size:13px}.helpdesk-history-card .helpdesk-checks{list-style:none;padding:0;display:grid;gap:5px;font-size:12px}.helpdesk-checks span{display:inline-block;width:22px}.helpdesk-deployment{color:#166534;font-size:12px}.helpdesk-audit-timeline{list-style:none;border-left:2px solid #dfe5ec;padding-left:16px;margin-left:3px}.helpdesk-audit-timeline li{position:relative;padding:0 0 20px;font-size:12px}.helpdesk-audit-timeline li:before{content:"";position:absolute;width:8px;height:8px;left:-21px;top:5px;background:#94a3b8;border-radius:50%}.helpdesk-audit-timeline strong{font-size:13px;font-weight:600}.helpdesk-audit-timeline p{margin-top:4px}@media(max-width:640px){.helpdesk-admin-history{padding:14px 12px}.helpdesk-section-tabs{padding:6px 10px;gap:3px}.helpdesk-section-tabs button{font-size:12px;padding:7px}.helpdesk-history-card{padding:11px}.helpdesk-history-actions button{flex:1}}@media(max-width:640px) and (max-height:500px){.helpdesk-admin-page:has(.helpdesk-admin-history){display:block;height:auto;overflow:visible}.helpdesk-admin-page:has(.helpdesk-admin-history) .helpdesk-panel{display:block;overflow:visible}.helpdesk-admin-page:has(.helpdesk-admin-history) .helpdesk-conversation{display:block}.helpdesk-admin-page .helpdesk-admin-history{overflow:visible;min-height:0}}.helpdesk-review-text{white-space:pre-wrap;overflow-wrap:anywhere;border-left:3px solid #bd9663;padding:12px;background:#fbf8f2}.helpdesk-message-alert{position:fixed;left:20px;bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:140;display:flex;align-items:flex-start;gap:10px;width:380px;max-width:calc(100vw - 32px);border:1px solid #c5d8ef;border-left:4px solid #2563eb;border-radius:14px;background:#fff;color:#17202e;box-shadow:0 10px 35px #0f172a30;animation:helpdesk-message-arrive .2s ease-out}.helpdesk-message-alert-icon{flex:none;margin:17px 0 0 14px;display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#eaf2ff;color:#1d4ed8;font-size:23px}.helpdesk-message-alert-body{min-width:0;flex:1;display:flex;flex-direction:column;gap:6px;padding:15px 0 16px;text-align:left;background:none;border:0;color:inherit;cursor:pointer;text-decoration:none}.helpdesk-message-alert-title{font-size:14px;font-weight:700;line-height:1.4}.helpdesk-message-alert-from{font-size:12px;color:#64748b;overflow-wrap:anywhere}.helpdesk-message-alert-text{font-size:14px;line-height:1.45;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.helpdesk-message-alert-open{font-size:12px;color:#1d4ed8;font-weight:600;margin-top:2px}.helpdesk-message-alert-close{flex:none;width:40px;height:44px;border:0;background:none;color:#64748b;font-size:25px;cursor:pointer;border-radius:10px}.helpdesk-message-alert-body:focus-visible,.helpdesk-message-alert-close:focus-visible{outline:3px solid #2563eb;outline-offset:2px}.helpdesk-message-alert-body:hover .helpdesk-message-alert-open{text-decoration:underline}.helpdesk-message-alert-close:hover{background:#f1f5f9;color:#17202e}@keyframes helpdesk-message-arrive{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.helpdesk-message-alert{animation:none}}@media(max-width:640px){.helpdesk-message-alert{left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));width:auto;max-width:none}}.helpdesk-message-receipt{display:block;margin-top:8px;color:#64748b;font-size:11px;text-align:right}.helpdesk-message-receipt.read{color:#1d4ed8}.helpdesk-panel.helpdesk-employee-chat{grid-template-columns:minmax(0,1fr)}.helpdesk-employee-chat .helpdesk-conversation{display:flex}.helpdesk-employee-chat .helpdesk-mobile-back{display:none}