/* Local Mock widget. Scoped styles preserve the existing site and human chat. */
.dx-assistant {
  --dx-assistant-ink: #111821;
  --dx-assistant-muted: #586775;
  --dx-assistant-line: #d6dfe7;
  --dx-assistant-accent: #a73024;
  position: fixed;
  left: 22px;
  right: 22px;
  max-width: 420px;
  bottom: 22px;
  z-index: 69;
  pointer-events: none;
  color: var(--dx-assistant-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
.dx-assistant *, .dx-assistant *::before, .dx-assistant *::after { box-sizing: border-box; }
.dx-assistant [hidden] { display: none !important; }
.dx-assistant button, .dx-assistant textarea, .dx-assistant select { font: inherit; }
.dx-assistant button { cursor: pointer; }
.dx-assistant button:disabled { cursor: not-allowed; opacity: .6; }
.dx-assistant button:focus-visible, .dx-assistant textarea:focus-visible,
.dx-assistant select:focus-visible, .dx-assistant a:focus-visible,
.dx-assistant-messages:focus-visible { outline: 3px solid #d17628; outline-offset: 3px; }
.dx-assistant-launcher {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  min-width: 180px;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid #a73024;
  border-radius: 28px;
  background: #a73024;
  color: #fff;
  font-size: 15px !important;
  font-weight: 700 !important;
  box-shadow: 0 12px 30px rgba(17, 24, 33, .18);
}
.dx-assistant-launcher:hover { background: #87271e; }
.dx-assistant-launcher-icon { display: inline-grid; place-items: center; width: 24px; height: 24px; font-size: 24px; line-height: 1; }
.dx-assistant-launcher-copy { display: grid; gap: 1px; text-align: left; }
.dx-assistant-launcher-label { white-space: nowrap; line-height: 1.2; }
.dx-assistant-launcher-hint {
  display: block;
  color: #fff3ee;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}
.dx-assistant-panel {
  pointer-events: auto;
  display: grid;
  grid-template-rows: auto auto auto minmax(88px, 1fr) auto auto auto;
  width: 100%;
  height: min(690px, calc(100dvh - 100px));
  max-height: calc(100vh - 100px);
  margin-bottom: 10px;
  border: 1px solid var(--dx-assistant-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(17, 24, 33, .24);
  overflow: hidden;
}
.dx-assistant-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  background: #111821;
  color: #fff;
}
.dx-assistant-title { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.25; }
.dx-assistant-badge { margin: 5px 0 0; color: #f5cc8d; font-size: 11px; font-weight: 700; letter-spacing: .035em; }
.dx-assistant-close {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #687581;
  border-radius: 5px;
  background: transparent;
  color: #fff;
  font-size: 24px !important;
  line-height: 1;
}
.dx-assistant-close:hover { background: #2d3b47; }
.dx-assistant-notice { margin: 0; padding: 10px 16px; border-bottom: 1px solid #ead3b0; background: #fff7e9; color: #68451e; font-size: 12px; line-height: 1.45; }
.dx-assistant-privacy-link { display: block; padding: 5px 16px; border-bottom: 1px solid var(--dx-assistant-line); background: #fff; color: #245b78; font-size: 11px; text-decoration: underline; text-underline-offset: 2px; }
.dx-assistant-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 16px; border-bottom: 1px solid var(--dx-assistant-line); }
.dx-assistant-language-label { color: #435461; font-size: 12px; }
.dx-assistant-language { max-width: 110px; padding: 6px; border: 1px solid #aebcc7; border-radius: 4px; background: #fff; color: #111821; font-size: 12px !important; }
.dx-assistant-clear { margin-left: auto; padding: 6px 0 6px 6px; border: 0; background: none; color: #245b78; font-size: 12px !important; text-decoration: underline; text-underline-offset: 2px; }
.dx-assistant-messages { display: flex; flex-direction: column; gap: 12px; min-height: 0; padding: 16px; overflow-y: auto; overscroll-behavior: contain; background: #f3f6f8; }
.dx-assistant-intro { margin: 0; color: #526371; font-size: 13px; line-height: 1.65; }
.dx-assistant-message { width: fit-content; max-width: 95%; padding: 10px 12px; border: 1px solid var(--dx-assistant-line); border-radius: 7px; background: #fff; overflow-wrap: anywhere; }
.dx-assistant-message-user { align-self: flex-end; background: #e8edf2; border-color: #c7d2dd; }
.dx-assistant-message-working { border-color: #d9e3ea; background: #fff; }
.dx-assistant-message-working .dx-assistant-message-body { opacity: .75; animation: dx-assistant-working 1.3s ease-in-out infinite alternate; }
@keyframes dx-assistant-working { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dx-assistant-message-working .dx-assistant-message-body { animation: none; opacity: 1; } }
.dx-assistant-speaker { display: block; margin-bottom: 5px; color: #425664; font-size: 11px; }
.dx-assistant-message p { margin: 0; color: #111821; font-size: 13px; line-height: 1.65; white-space: pre-wrap; }
.dx-assistant-message-body { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.dx-assistant-message-body > * + * { margin-top: 10px !important; }
.dx-assistant-message-body code { padding: 1px 3px; border-radius: 3px; background: #edf1f4; font-family: Consolas, 'Courier New', monospace; font-size: 12px; }
.dx-assistant-message-body pre { max-width: 100%; margin: 0; padding: 10px; border-radius: 5px; overflow-x: auto; background: #19242d; color: #f4f7f9; font: 12px/1.5 Consolas, 'Courier New', monospace; white-space: pre; }
.dx-assistant-message-body pre code { padding: 0; background: none; color: inherit; white-space: pre; }
.dx-assistant-message-body .dx-assistant-math-block { background: #eef3f6; color: #21313e; }
.dx-assistant-markdown-heading { margin: 0; font-size: 14px; line-height: 1.4; }
.dx-assistant-markdown-list { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.6; }
.dx-assistant-table-wrap { max-width: 100%; overflow-x: auto; }
.dx-assistant-table { width: max-content; min-width: 100%; border-collapse: collapse; font-size: 12px; }
.dx-assistant-table th, .dx-assistant-table td { padding: 6px 8px; border: 1px solid #d6dfe7; text-align: left; vertical-align: top; }
.dx-assistant-table th { background: #edf1f4; }
.dx-assistant-composer { display: grid; gap: 6px; padding: 11px 16px; border-top: 1px solid var(--dx-assistant-line); background: #fff; }
.dx-assistant-input-label { font-size: 12px; font-weight: 700; }
.dx-assistant-input { display: block; width: 100%; min-height: 64px; max-height: 120px; padding: 8px 10px; resize: vertical; border: 1px solid #93a5b3; border-radius: 5px; background: #fff; color: #111821; line-height: 1.4; }
.dx-assistant-input::placeholder { color: #667582; opacity: 1; }
.dx-assistant-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dx-assistant-counter { color: var(--dx-assistant-muted); font-size: 11px; }
.dx-assistant-over-limit { color: #9b261d; font-weight: 700; }
.dx-assistant-send { min-height: 38px; padding: 7px 12px; border: 1px solid var(--dx-assistant-accent); border-radius: 5px; background: var(--dx-assistant-accent); color: #fff; font-weight: 700 !important; }
.dx-assistant-send:hover:not(:disabled) { background: #87271e; }
.dx-assistant-status-row { display: grid; gap: 6px; padding: 0 16px 9px; background: #fff; }
.dx-assistant-status { margin: 0; color: var(--dx-assistant-muted); font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.dx-assistant-status-error { color: #8d2c20; }
.dx-assistant-resume { justify-self: start; min-height: 32px; padding: 4px 9px; border: 1px solid #245b78; border-radius: 4px; background: #fff; color: #245b78; font-size: 12px !important; }
.dx-assistant-contact { margin: 0; padding: 10px 16px; border-top: 1px solid var(--dx-assistant-line); background: #f8fafb; color: #435461; font-size: 11px; line-height: 1.5; }
.dx-assistant-contact a { color: #245b78; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
@media (max-width: 600px) {
  .dx-assistant { left: 12px; right: 12px; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  .dx-assistant-launcher { min-height: 56px; min-width: 180px; padding: 0 14px; font-size: 15px !important; }
  .dx-assistant-panel { width: 100%; height: min(650px, calc(100dvh - 154px)); max-height: calc(100vh - 154px); }
  .dx-assistant-head { padding: 12px; }
  .dx-assistant-notice, .dx-assistant-privacy-link, .dx-assistant-controls, .dx-assistant-messages,
  .dx-assistant-composer, .dx-assistant-contact { padding-left: 12px; padding-right: 12px; }
  .dx-assistant-status-row { padding-left: 12px; padding-right: 12px; }
}
@media (max-height: 620px) {
  .dx-assistant-panel { grid-template-rows: auto auto auto minmax(45px, 1fr) auto auto auto; overflow-y: auto; }
  .dx-assistant-controls { display: flex; padding-top: 6px; padding-bottom: 6px; }
  .dx-assistant-head { padding-top: 8px; padding-bottom: 8px; }
  .dx-assistant-title { font-size: 16px; }
  .dx-assistant-notice { font-size: 11px; padding-top: 6px; padding-bottom: 6px; }
  .dx-assistant-input { min-height: 45px; max-height: 70px; }
  .dx-assistant-composer { padding-top: 7px; padding-bottom: 7px; }
}
.dx-assistant-auto { min-height: 32px; padding: 4px 8px; border: 1px solid #93a5b3; border-radius: 4px; background: #fff; color: #245b78; }
.dx-assistant-auto[aria-pressed="true"] { background: #e8f1f5; border-color: #245b78; }
.dx-assistant-mode { color: #526371; font-size: 11px; }
.dx-assistant-link { display: grid; gap: 3px; padding-top: 10px; }
.dx-assistant-link a { color: #175674; font-size: 13px; text-decoration: underline; text-underline-offset: 2px; }
.dx-assistant-link span { color: #526371; font-size: 12px; line-height: 1.5; }
.dx-assistant-message .dx-assistant-link-notice { margin-top: 10px; color: #665032; font-size: 12px; }
