/* MXOS v8.5.0 - AI memory operators. Visual bridge only. */
.mxos-window .mxos-comm-center-v3538,
.mxos-window .mxos-live-helper-v350 {
  text-rendering: geometricPrecision !important;
  -webkit-font-smoothing: antialiased !important;
}

.mxos-window-communication,
.mxos-window-assistant {
  border-radius: 18px !important;
  border: 1px solid rgba(7, 21, 61, .18) !important;
  box-shadow: 0 28px 70px rgba(7, 21, 61, .24) !important;
  overflow: hidden !important;
}

.mxos-window-communication .mxos-window-head,
.mxos-window-assistant .mxos-window-head {
  min-height: 56px !important;
  background: linear-gradient(135deg, #07153d, #0a3a8c) !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(255,255,255,.14) !important;
}

.mxos-window-communication .mxos-window-head strong,
.mxos-window-assistant .mxos-window-head strong {
  font-size: 15px !important;
  font-weight: 900 !important;
}

.mxos-window-communication .mxos-window-actions button,
.mxos-window-assistant .mxos-window-actions button {
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 10px !important;
}

.mxos-window-communication .mxos-window-body,
.mxos-window-assistant .mxos-window-body {
  background: #f3f7fc !important;
}

.mxos-ai-operator-head-v851 {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
  margin: 0 0 12px !important;
  padding: 13px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #07153d, #0b63ff) !important;
  color: #fff !important;
  overflow: hidden !important;
}

.mxos-ai-operator-head-v851:after {
  content: "" !important;
  position: absolute !important;
  right: -34px !important;
  top: -44px !important;
  width: 140px !important;
  height: 140px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.14) !important;
}

.mxos-ai-operator-icon-v851 {
  position: relative !important;
  z-index: 1 !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 16px !important;
  display: grid !important;
  place-items: center !important;
  background: #fff !important;
  color: #0b63ff !important;
  font-size: 18px !important;
  font-weight: 950 !important;
}

.mxos-ai-operator-head-v851 b,
.mxos-ai-operator-head-v851 span,
.mxos-ai-operator-head-v851 em {
  position: relative !important;
  z-index: 1 !important;
}

.mxos-ai-operator-head-v851 b {
  display: block !important;
  font-size: 15px !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
}

.mxos-ai-operator-head-v851 span {
  display: block !important;
  margin-top: 4px !important;
  color: #dbeafe !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}

.mxos-ai-operator-head-v851 em {
  font-style: normal !important;
  border-radius: 999px !important;
  background: #16b978 !important;
  color: #fff !important;
  padding: 7px 10px !important;
  font-size: 10.5px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.mxos-ai-memory-strip-v850 {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 10px 0 !important;
}

.mxos-ai-memory-strip-v850 article {
  border: 1px solid rgba(207, 224, 255, .95) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #ffffff, #f7fbff) !important;
  padding: 10px !important;
  min-height: 70px !important;
  box-shadow: 0 8px 18px rgba(7,21,61,.045) !important;
}

.mxos-ai-memory-strip-v850 b {
  display: block !important;
  color: #07153d !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
}

.mxos-ai-memory-strip-v850 span {
  display: block !important;
  margin-top: 5px !important;
  color: #52617f !important;
  font-size: 10.5px !important;
  line-height: 1.35 !important;
}

.mxos-ai-memory-command-v850 {
  display: grid !important;
  gap: 8px !important;
  margin: 10px 0 !important;
  padding: 10px !important;
  border: 1px solid rgba(7, 21, 61, .10) !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #ffffff, #f3f8ff) !important;
  box-shadow: 0 12px 30px rgba(7,21,61,.07) !important;
}

.mxos-ai-memory-command-v850 strong {
  display: block !important;
  color: #07153d !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

.mxos-ai-memory-command-v850 textarea,
.mxos-ai-memory-command-v850 input {
  width: 100% !important;
  border: 1px solid #dbe7f5 !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #07153d !important;
  font-size: 12px !important;
  padding: 10px !important;
  box-shadow: none !important;
}

.mxos-ai-memory-command-v850 textarea {
  min-height: 74px !important;
  resize: vertical !important;
}

.mxos-ai-memory-actions-v850 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.mxos-ai-memory-actions-v850 button,
.mxos-ai-memory-open-v850 {
  min-height: 36px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: #0b63ff !important;
  color: #fff !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  display: grid !important;
  place-items: center !important;
  padding: 8px 10px !important;
  box-shadow: 0 8px 16px rgba(11,99,255,.14) !important;
}

.mxos-ai-memory-actions-v850 button:nth-child(2) { background: #0f9d62 !important; }
.mxos-ai-memory-actions-v850 button:nth-child(3) { background: #f97316 !important; }
.mxos-ai-memory-actions-v850 button:nth-child(4) { background: #07153d !important; }
.mxos-ai-memory-actions-v850 button:nth-child(5) { background: #7c3aed !important; }
.mxos-ai-memory-actions-v850 button:nth-child(6) { background: #14b8a6 !important; }

.mxos-ai-memory-result-v850 {
  border: 1px dashed #b9d0ef !important;
  border-radius: 13px !important;
  background: #fff !important;
  color: #3d4f67 !important;
  font-size: 11.5px !important;
  line-height: 1.45 !important;
  padding: 10px !important;
  white-space: pre-wrap !important;
}

.mxos-ai-voice-ready-v850 {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 9px 0 !important;
  padding: 9px 10px !important;
  border-radius: 13px !important;
  background: linear-gradient(135deg, #07153d, #0a3a8c) !important;
  color: #fff !important;
}

.mxos-ai-voice-panel-v851 {
  display: grid !important;
  gap: 9px !important;
  margin: 10px 0 !important;
  padding: 11px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(11,99,255,.16) !important;
  background: linear-gradient(180deg, #ffffff, #f6fbff) !important;
  box-shadow: 0 12px 26px rgba(7,21,61,.055) !important;
}

.mxos-ai-voice-panel-v851 strong {
  display: block !important;
  color: #07153d !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.mxos-ai-voice-panel-v851 span,
.mxos-ai-voice-panel-v851 small {
  color: #52617f !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
}

.mxos-ai-voice-premium-v851 {
  display: block !important;
  padding: 8px 10px !important;
  border-radius: 12px !important;
  background: #fff7ed !important;
  border: 1px solid rgba(249,115,22,.22) !important;
  color: #9a3412 !important;
  font-weight: 750 !important;
}

.mxos-ai-voice-grid-v851 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.mxos-ai-voice-grid-v851 select {
  min-height: 38px !important;
  width: 100% !important;
  border: 1px solid #dbe7f5 !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #07153d !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  padding: 0 10px !important;
  box-shadow: none !important;
}

.mxos-ai-voice-actions-v851 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.mxos-ai-voice-actions-v851 button {
  min-height: 38px !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-size: 11.5px !important;
  font-weight: 900 !important;
  background: #0b63ff !important;
  cursor: pointer !important;
  box-shadow: 0 8px 18px rgba(11,99,255,.16) !important;
}

.mxos-ai-voice-actions-v851 button:nth-child(2) {
  background: #16b978 !important;
}

.mxos-ai-voice-actions-v851 button:nth-child(3) {
  background: #07153d !important;
}

.mxos-ai-operator-flow-v851 {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 7px !important;
  margin: 9px 0 !important;
}

.mxos-ai-operator-flow-v851 span {
  min-height: 34px !important;
  border-radius: 999px !important;
  display: grid !important;
  place-items: center !important;
  padding: 7px 8px !important;
  background: #fff !important;
  border: 1px solid #dbe7f5 !important;
  color: #07153d !important;
  font-size: 10.5px !important;
  font-weight: 850 !important;
  text-align: center !important;
}

.mxos-ai-operator-flow-v851 span:nth-child(2) { color: #0b63ff !important; }
.mxos-ai-operator-flow-v851 span:nth-child(3) { color: #f97316 !important; }
.mxos-ai-operator-flow-v851 span:nth-child(4) { color: #16b978 !important; }
.mxos-ai-operator-flow-v851 span:nth-child(5) { color: #7c3aed !important; }

.mxos-comm-center-v3538 .mxos-contact-hero-v3600 {
  background: linear-gradient(135deg, #07153d, #0a3a8c) !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
}

.mxos-comm-center-v3538 .mxos-contact-flow-v3600 button,
.mxos-live-helper-v350 .mxos-helper-command-grid-v350 button,
.mxos-live-helper-v350 .mxos-window-actions-row-v350 button {
  border-radius: 12px !important;
  font-weight: 850 !important;
  min-height: 38px !important;
}

.mxos-comm-center-v3538 .mxos-contact-flow-v3600 button:nth-child(4),
.mxos-live-helper-v350 .mxos-helper-command-grid-v350 button:nth-child(2) {
  background: #16b978 !important;
  color: #fff !important;
}

.mxos-comm-center-v3538 .mxos-contact-flow-v3600 button:nth-child(3),
.mxos-live-helper-v350 .mxos-helper-command-grid-v350 button:nth-child(4) {
  background: #f97316 !important;
  color: #fff !important;
}

.mxos-ai-voice-ready-v850 b {
  font-size: 12px !important;
}

.mxos-ai-voice-ready-v850 span {
  color: #dbeafe !important;
  font-size: 10.5px !important;
  line-height: 1.35 !important;
}

.mxos-window-assistant,
.mxos-window-communication {
  max-width: min(94vw, 620px) !important;
}

.mxos-window-assistant .mxos-window-body,
.mxos-window-communication .mxos-window-body {
  overflow-x: hidden !important;
}

@media (max-width: 760px) {
  .mxos-ai-memory-strip-v850,
  .mxos-ai-memory-actions-v850,
  .mxos-ai-operator-flow-v851,
  .mxos-ai-voice-grid-v851,
  .mxos-ai-voice-actions-v851 {
    grid-template-columns: 1fr !important;
  }

  .mxos-ai-operator-head-v851 {
    grid-template-columns: 42px minmax(0,1fr) !important;
  }

  .mxos-ai-operator-head-v851 em {
    grid-column: 1 / -1 !important;
    justify-self: start !important;
  }

  .mxos-window-assistant,
  .mxos-window-communication {
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    max-width: none !important;
    max-height: 84dvh !important;
  }
}
