/* web-20261115-r1: «Помощь» as a chat panel (see support-panel-20261115.js). Desktop: a panel at the bottom right; phone: between the
   header and the bottom menu, so both stay visible and usable. */
dialog.meetxt-support.sp-panel[open] { position: fixed; inset: auto 16px 16px auto; margin: 0; width: min(420px, calc(100vw - 32px)); height: min(680px, calc(100dvh - 110px)); max-height: none;
  display: flex; flex-direction: column; padding: 0; overflow: hidden; border-radius: 18px; box-shadow: 0 18px 50px rgba(17, 36, 30, .22); z-index: 60; }
dialog.meetxt-support.sp-panel > header { position: static; flex: 0 0 auto; padding: 14px 16px; margin: 0; border-bottom: 1px solid var(--line, #e2eae6); }
dialog.meetxt-support.sp-panel > header h2 { font-size: 18px; }
dialog.meetxt-support.sp-panel > header #support-close { width: 40px; height: 40px; border-radius: 10px; }
dialog.meetxt-support.sp-panel > .mx-care-hello { flex: 0 0 auto; margin: 12px 16px 0; padding: 10px 12px; border-radius: 12px; font-weight: 650; }
/* chat mode: greeting, messages (scroll), suggestions, ONE input, actions */
dialog.meetxt-support.sp-panel.sp-mode-chat > :not(header):not(.mx-care-hello):not(.mx-assist):not(.sp-foot) { display: none !important; }
dialog.meetxt-support.sp-panel.sp-mode-chat.sp-no-assistant > .sp-foot ~ * { display: revert !important; }
dialog.meetxt-support.sp-panel > .mx-assist { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; margin: 0; padding: 8px 16px 0; border: 0; background: none; }
dialog.meetxt-support.sp-panel > .mx-assist > h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
dialog.meetxt-support.sp-panel > .mx-assist > .mx-assist-lead { order: 0; margin: 4px 0 8px; font-size: 13px; color: var(--muted, #5b6475); }
dialog.meetxt-support.sp-panel > .mx-assist > .mx-assist-log { order: 1; flex: 1 1 auto; min-height: 60px; max-height: none !important; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px 8px; }
dialog.meetxt-support.sp-panel > .mx-assist .mx-assist-msg { max-width: 88%; padding: 8px 12px; border-radius: 14px; font-size: 15px; line-height: 1.45; }
dialog.meetxt-support.sp-panel > .mx-assist .mx-assist-msg.user { align-self: flex-end; background: #2474e5; color: #fff; border-bottom-right-radius: 4px; }
dialog.meetxt-support.sp-panel > .mx-assist .mx-assist-msg.bot { align-self: flex-start; background: #f1f4f8; color: inherit; border-bottom-left-radius: 4px; }
dialog.meetxt-support.sp-panel > .mx-assist .mx-assist-msg > strong { display: block; font-size: 12px; opacity: .75; margin-bottom: 2px; }
dialog.meetxt-support.sp-panel > .mx-assist .mx-assist-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
dialog.meetxt-support.sp-panel > .mx-assist .mx-assist-acts button { min-height: 36px; padding: 0 12px; border-radius: 999px; font-size: 13px; }
/* the escalation form: its own small card under the answer, not squeezed inside the bubble text */
dialog.meetxt-support.sp-panel .mx-assist-esc { display: grid; gap: 8px; width: 100%; margin-top: 8px; padding: 10px; border: 1px solid var(--line, #d6e3dd); border-radius: 12px; background: var(--card, #fff); color: var(--ink, #17251f); }
dialog.meetxt-support.sp-panel .mx-assist-esc input[type="email"] { width: 100%; box-sizing: border-box; min-height: 42px; padding: 0 10px; border: 1px solid var(--line, #cfd6e4); border-radius: 10px; font: inherit; }
dialog.meetxt-support.sp-panel .mx-assist-esc .mx-assist-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
dialog.meetxt-support.sp-panel > .mx-assist > .mx-assist-chips { order: 2; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
dialog.meetxt-support.sp-panel > .mx-assist > .mx-assist-chips button { min-height: 34px; padding: 0 12px; border-radius: 999px; font-size: 13px; }
dialog.meetxt-support.sp-panel > .mx-assist > .mx-assist-form { order: 3; display: flex; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line, #e2eae6); margin: 0; }
dialog.meetxt-support.sp-panel > .mx-assist > .mx-assist-form input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--line, #cfd6e4); border-radius: 12px; font: inherit; }
dialog.meetxt-support.sp-panel > .mx-assist > .mx-assist-form button { min-height: 44px; padding: 0 16px; border-radius: 12px; }
dialog.meetxt-support.sp-panel > .sp-foot { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 0 16px 14px; }
dialog.meetxt-support.sp-panel > .sp-foot .sp-human { min-height: 40px; padding: 0 14px; border: 1px solid var(--line, #cfd6e4); border-radius: 10px; background: var(--card, #fff); color: inherit; font-weight: 600; }
dialog.meetxt-support.sp-panel > .sp-foot .sp-tickets { min-height: 40px; font-weight: 600; }
dialog.meetxt-support.sp-panel .sp-badge { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 999px; background: #d92d20; color: #fff; font-size: 12px; line-height: 18px; text-align: center; }
dialog.meetxt-support.sp-panel .sp-badge[hidden] { display: none; }
/* tickets mode: the request form, list and thread scroll in the panel; the chat is hidden */
dialog.meetxt-support.sp-panel.sp-mode-tickets > .mx-care-hello, dialog.meetxt-support.sp-panel.sp-mode-tickets > .mx-assist, dialog.meetxt-support.sp-panel.sp-mode-tickets > .sp-foot { display: none !important; }
dialog.meetxt-support.sp-panel.sp-mode-tickets { overflow-y: auto; }
dialog.meetxt-support.sp-panel.sp-mode-tickets > :not(header) { margin-left: 16px; margin-right: 16px; }
dialog.meetxt-support.sp-panel.sp-mode-chat > .sp-back { display: none !important; }
dialog.meetxt-support.sp-panel > .sp-back { align-self: flex-start; min-height: 40px; margin-top: 8px; font-weight: 600; }
html.sp-open .meetxt-support-open { display: none !important; }
@media (max-width: 760px) {
  dialog.meetxt-support.sp-panel[open] { inset: calc(var(--mx-topbar-h, 66px) + 6px) 8px calc(80px + env(safe-area-inset-bottom)) 8px; width: auto; height: auto; border-radius: 16px; }
  dialog.meetxt-support.sp-panel > .mx-assist .mx-assist-msg { max-width: 92%; }
}
html[data-theme="dark"] dialog.meetxt-support.sp-panel > .mx-assist .mx-assist-msg.bot { background: #13213f; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) dialog.meetxt-support.sp-panel > .mx-assist .mx-assist-msg.bot { background: #13213f; } }
