/* Matrixe cabinet: final, scoped presentation layer. Application state stays native. */
html.mx-cabinet[data-page="dashboard"] {
  color-scheme: light;
  --mx-header-height: 72px;
  --mx-paper: #f7f7f2;
  --mx-white: #fff;
  --mx-ink: #202e27;
  --mx-muted: #69736b;
  --mx-line: #dce0d6;
  --mx-green: #245b43;
  --mx-green-soft: #edf2e9;
  --bg: var(--mx-paper);
  --bg-primary: var(--mx-paper);
  --bg-secondary: #fff;
  --surface: #fff;
  --surface-hover: #f0f2eb;
  --text: var(--mx-ink);
  --text-primary: var(--mx-ink);
  --text-secondary: #5f6c62;
  --text-muted: var(--mx-muted);
  --border: var(--mx-line);
  --border-color: var(--mx-line);
  --accent: var(--mx-green);
  --accent-color: var(--mx-green);
  --accent-hover: #1b4935;
  --primary: var(--mx-green);
  --primary-color: var(--mx-green);
  --primary-hover: #1b4935;
  --primary-light: var(--mx-green-soft);
  --loco-surface: #fff;
  --loco-elev: #f0f2eb;
  --loco-border: var(--mx-line);
  --loco-text: var(--mx-ink);
  --loco-muted: var(--mx-muted);
  --loco-accent: var(--mx-green);
  --loco-accent-weak: var(--mx-green-soft);
  --ar-pl-edge: var(--mx-line);
  --ar-pl-edge-strong: #a5b5a2;
  --ar-pl-glow-sm: none;
  --ar-pl-glow: none;
  --ar-pl-glow-lg: none;
  --ar-pl-ring: 0 0 0 3px #245b4312;
}

html.mx-cabinet[data-page="dashboard"] body {
  background: var(--mx-paper) !important;
  color: var(--mx-ink) !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  -webkit-font-smoothing: antialiased;
}
html.mx-cabinet[data-page="dashboard"] body :is(button, input, select, textarea) { font-family: inherit !important; }
html.mx-cabinet[data-page="dashboard"] body :is(button, a, input, select, textarea):focus-visible {
  outline: 2px solid #6c9479 !important;
  outline-offset: 3px !important;
}
html.mx-cabinet[data-page="dashboard"] body :is(.ambient-background, .noise-overlay) { visibility: hidden !important; }
html.mx-cabinet[data-page="dashboard"] body ::selection { background: #dfead9; color: #202e27; }

/* One aligned desktop rail. The scrollable native navigation keeps every role-specific tab. */
html.mx-cabinet[data-page="dashboard"] body header.top-header {
  position: fixed !important;
  inset: 0 0 auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  height: var(--mx-header-height) !important;
  min-height: var(--mx-header-height) !important;
  max-height: var(--mx-header-height) !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 0 28px !important;
  margin: 0 !important;
  gap: 28px !important;
  background: #fff !important;
  border: 0 !important;
  border-bottom: 1px solid var(--mx-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  contain: none !important;
  overflow: visible !important;
  z-index: 1000 !important;
}
html.mx-cabinet[data-page="dashboard"] body header.top-header::after { content: none !important; }
html.mx-cabinet[data-page="dashboard"] body header.top-header .header-left {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  width: auto !important;
  gap: 14px !important;
  justify-content: flex-start !important;
}
html.mx-cabinet[data-page="dashboard"] body header.top-header :is(.brand-logo-header, #brandLogo.brand-logo-header) {
  display: flex !important;
  align-items: center !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: 0 0 auto !important;
}
html.mx-cabinet[data-page="dashboard"] body header.top-header #brandLogo .hero-title.matrixe-wordmark {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 25px !important;
  font-weight: 740 !important;
  line-height: 1 !important;
  letter-spacing: -1.4px !important;
  margin: 0 !important;
  color: var(--mx-ink) !important;
  -webkit-text-fill-color: var(--mx-ink) !important;
  background: none !important;
  text-shadow: none !important;
  white-space: nowrap !important;
}
html.mx-cabinet[data-page="dashboard"] body header.top-header .matrixe-brand-dot {
  font-family: inherit !important;
  color: var(--mx-green) !important;
  -webkit-text-fill-color: var(--mx-green) !important;
  background: none !important;
  filter: none !important;
  text-shadow: none !important;
}
html.mx-cabinet[data-page="dashboard"] body header.top-header .btn-menu {
  width: 36px !important;
  min-width: 36px !important;
  height: 38px !important;
  padding: 8px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  color: #687469 !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}
html.mx-cabinet[data-page="dashboard"] body header.top-header .btn-menu:hover { background: #f0f2eb !important; color: var(--mx-green) !important; }
html.mx-cabinet[data-page="dashboard"] body header.top-header .header-right {
  display: flex !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 18px !important;
}
html.mx-cabinet[data-page="dashboard"] body header.top-header .tabs-nav-wrap {
  display: flex !important;
  position: relative !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 44px !important;
  align-items: center !important;
}
html.mx-cabinet[data-page="dashboard"] body header.top-header .tabs {
  display: flex !important;
  flex: 1 1 0% !important;
  width: 0 !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
  align-items: center !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  gap: 3px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html.mx-cabinet[data-page="dashboard"] body header.top-header .tabs .tab {
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  height: 38px !important;
  min-height: 38px !important;
  min-width: auto !important;
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  padding: 0 12px !important;
  margin: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 7px !important;
  color: #69736b !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transform: none !important;
  text-shadow: none !important;
}
html.mx-cabinet[data-page="dashboard"] body header.top-header .tabs .tab .tab-text { display: inline !important; color: inherit !important; }
html.mx-cabinet[data-page="dashboard"] body header.top-header .tabs .tab svg { width: 16px !important; height: 16px !important; color: inherit !important; stroke: currentColor !important; filter: none !important; flex-shrink: 0; }
html.mx-cabinet[data-page="dashboard"] body header.top-header .tabs .tab:hover { background: #f4f5ef !important; color: var(--mx-ink) !important; }
html.mx-cabinet[data-page="dashboard"] body header.top-header .tabs .tab.active {
  color: var(--mx-green) !important;
  background: var(--mx-green-soft) !important;
  border-color: #e0e7d9 !important;
  font-weight: 600 !important;
}
html.mx-cabinet[data-page="dashboard"] body header.top-header .tabs .tab.active :is(svg, svg *, .tab-text) { color: var(--mx-green) !important; }
html.mx-cabinet[data-page="dashboard"] body header.top-header .tabs-nav-btn {
  width: 25px !important;
  height: 32px !important;
  border: 1px solid var(--mx-line) !important;
  border-radius: 6px !important;
  color: var(--mx-green) !important;
  background: #fff !important;
  box-shadow: 0 0 9px 6px #fff !important;
  transform: none !important;
}
html.mx-cabinet[data-page="dashboard"] body header.top-header .loco-tab-badge { animation: none !important; }

/* Store, account and balance stay independent of the scrolling navigation. */
html.mx-cabinet[data-page="dashboard"] body header.top-header :is(.store-selector-container, .user-info, .status-pill) { flex: 0 0 auto !important; }
html.mx-cabinet[data-page="dashboard"] body header.top-header .store-selector-container { order: 2 !important; }
html.mx-cabinet[data-page="dashboard"] body header.top-header .user-info { order: 4 !important; margin: 0 !important; gap: 0 !important; }
html.mx-cabinet[data-page="dashboard"] body header.top-header .status-pill {
  order: 3 !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  gap: 8px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
html.mx-cabinet[data-page="dashboard"] body header.top-header :is(.btn-store-select, #balanceDisplay.sp-btn-upgrade) {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 11px !important;
  gap: 7px !important;
  border: 1px solid var(--mx-line) !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #526155 !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 550 !important;
  white-space: nowrap !important;
  transform: none !important;
}
html.mx-cabinet[data-page="dashboard"] body header.top-header :is(.btn-store-select, #balanceDisplay.sp-btn-upgrade):hover { background: #f0f3eb !important; border-color: #b4c3b1 !important; }
html.mx-cabinet[data-page="dashboard"] body header.top-header .status-content { color: #617060 !important; font-size: 12px !important; }
html.mx-cabinet[data-page="dashboard"] body header.top-header #userBadgeContainer { gap: 9px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; border-radius: 0 !important; box-shadow: none !important; }
html.mx-cabinet[data-page="dashboard"] body header.top-header .user-initials {
  display: flex !important;
  width: 33px !important;
  height: 33px !important;
  background: #e9eee3 !important;
  color: var(--mx-green) !important;
  border: 1px solid #dbe3d3 !important;
  font-size: 12px !important;
  box-shadow: none !important;
}
html.mx-cabinet[data-page="dashboard"] body header.top-header #userBadge { color: var(--mx-ink) !important; font-size: 12px !important; max-width: 115px !important; }
html.mx-cabinet[data-page="dashboard"] body header.top-header #profileEmail { color: var(--mx-muted) !important; font-size: 10px !important; max-width: 115px !important; }
html.mx-cabinet[data-page="dashboard"] body :is(.store-dropdown, #profileDropdown, .profile-dropdown, .modal-content) {
  background: #fff !important;
  color: var(--mx-ink) !important;
  border: 1px solid var(--mx-line) !important;
  border-radius: 12px !important;
  box-shadow: 0 14px 45px #202e271a !important;
  backdrop-filter: none !important;
}
html.mx-cabinet[data-page="dashboard"] body header.top-header .store-dropdown { min-width: 240px !important; padding: 7px !important; }
html.mx-cabinet[data-page="dashboard"] body header.top-header .store-dropdown :is(.dropdown-item-add, .empty-stores-placeholder) { color: #526155 !important; font-size: 12px !important; }
html.mx-cabinet[data-page="dashboard"] body header.top-header #profileDropdown button { min-height: 42px !important; color: #526155 !important; font-size: 12px !important; }
html.mx-cabinet[data-page="dashboard"] body header.top-header #profileDropdown button svg { stroke: currentColor !important; }
html.mx-cabinet[data-page="dashboard"] body header.top-header #profileDropdown button:hover { background: #f0f3eb !important; }

/* Chat history is a drawer: opening it never shifts the reading column. */
html.mx-cabinet[data-page="dashboard"] body aside#sidebar.sidebar {
  position: fixed !important;
  top: var(--mx-header-height) !important;
  bottom: 0 !important;
  left: 0 !important;
  right: auto !important;
  width: 310px !important;
  max-width: 86vw !important;
  height: calc(100dvh - var(--mx-header-height)) !important;
  transform: translateX(-100%) !important;
  background: #fafbf6 !important;
  border: 0 !important;
  border-right: 1px solid var(--mx-line) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  z-index: 1100 !important;
}
html.mx-cabinet[data-page="dashboard"] body aside#sidebar.sidebar.open { transform: translateX(0) !important; }
html.mx-cabinet[data-page="dashboard"] body #sidebarOverlay { top: var(--mx-header-height) !important; z-index: 1050 !important; background: #202e2733 !important; backdrop-filter: none !important; }
html.mx-cabinet[data-page="dashboard"] body .sidebar-header { padding: 24px 20px 20px !important; gap: 18px !important; background: transparent !important; border-bottom: 1px solid var(--mx-line) !important; }
html.mx-cabinet[data-page="dashboard"] body .sidebar-header h2 { color: #6a7569 !important; font-size: 12px !important; font-weight: 550 !important; letter-spacing: .02em !important; text-transform: none !important; }
html.mx-cabinet[data-page="dashboard"] body #newChatBtn {
  min-height: 42px !important;
  background: var(--mx-green) !important;
  color: #fff !important;
  border: 1px solid var(--mx-green) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 550 !important;
  transform: none !important;
}
html.mx-cabinet[data-page="dashboard"] body #newChatBtn::after { content: none !important; }
html.mx-cabinet[data-page="dashboard"] body #chatList { padding: 13px 11px !important; }
html.mx-cabinet[data-page="dashboard"] body .chat-item { background: transparent !important; border: 1px solid transparent !important; border-radius: 8px !important; box-shadow: none !important; padding: 12px 10px !important; margin-bottom: 4px !important; color: #536253 !important; }
html.mx-cabinet[data-page="dashboard"] body .chat-item:hover { background: #eef2e8 !important; transform: none !important; }
html.mx-cabinet[data-page="dashboard"] body .chat-item.active { background: #e8efe1 !important; border-color: #dbe5d2 !important; }
html.mx-cabinet[data-page="dashboard"] body .chat-item.active::before { content: none !important; }
html.mx-cabinet[data-page="dashboard"] body .chat-item-title { color: var(--mx-ink) !important; font-size: 12px !important; line-height: 1.5 !important; font-weight: 500 !important; }
html.mx-cabinet[data-page="dashboard"] body .chat-item-date { color: var(--mx-muted) !important; font-size: 10px !important; }
html.mx-cabinet[data-page="dashboard"] body .chat-item-actions { opacity: 1 !important; }
html.mx-cabinet[data-page="dashboard"] body :is(.chat-item-edit, .chat-item-delete) { color: #7b8779 !important; background: transparent !important; box-shadow: none !important; }
html.mx-cabinet[data-page="dashboard"] body .sidebar-footer { padding: 15px 20px !important; border-top: 1px solid var(--mx-line) !important; background: transparent !important; }
html.mx-cabinet[data-page="dashboard"] body .sidebar-logout-btn { min-height: 38px !important; background: transparent !important; color: #687467 !important; border: 1px solid var(--mx-line) !important; border-radius: 7px !important; font-size: 12px !important; box-shadow: none !important; }

/* Shared page surfaces and the secondary tools. */
html.mx-cabinet[data-page="dashboard"] body .main { margin-left: 0 !important; padding-top: var(--mx-header-height) !important; background: var(--mx-paper) !important; }
html.mx-cabinet[data-page="dashboard"] body:has(:is(#botsView, #locomotiveView, #feedbackView).active) .main { padding-top: var(--mx-header-height) !important; }
html.mx-cabinet[data-page="dashboard"] body :is(.glass-panel, .settings-card, .bot-card, .knowledge-card, .feedback-card) { background: #fff !important; color: var(--mx-ink) !important; border: 1px solid var(--mx-line) !important; border-radius: 12px !important; box-shadow: none !important; backdrop-filter: none !important; }
html.mx-cabinet[data-page="dashboard"] body :is(.page-title-premium, .section-header h2, .bots-page-title, .afv-title) { color: var(--mx-ink) !important; font-weight: 600 !important; letter-spacing: -.6px !important; text-shadow: none !important; background: none !important; -webkit-text-fill-color: var(--mx-ink) !important; }
html.mx-cabinet[data-page="dashboard"] body #botsView :is(.bots-page-subtitle, .page-subtitle, .header-subtitle) { color: var(--mx-muted) !important; font-size: 13px !important; line-height: 1.6 !important; }
html.mx-cabinet[data-page="dashboard"] body :is(#botsView, #locomotiveView) .bots-page-wrapper { width: min(1120px, 100%) !important; max-width: 1120px !important; margin: 0 auto !important; padding: 38px 36px 64px !important; box-sizing: border-box !important; }
html.mx-cabinet[data-page="dashboard"] body :is(#botsView, #locomotiveView) { padding: 0 !important; margin-top: 0 !important; }
html.mx-cabinet[data-page="dashboard"] body #botsView .bots-page-header { padding: 0 0 26px !important; margin-bottom: 24px !important; border-bottom: 1px solid var(--mx-line) !important; align-items: center !important; gap: 20px !important; }
html.mx-cabinet[data-page="dashboard"] body #botsView .bots-page-header { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--mx-line) !important; border-radius: 0 !important; box-shadow: none !important; backdrop-filter: none !important; }
html.mx-cabinet[data-page="dashboard"] body #botsView .bots-page-title { font-size: 30px !important; }
html.mx-cabinet[data-page="dashboard"] body #botsView .bots-page-title::after,
html.mx-cabinet[data-page="dashboard"] body #feedbackView .fbv-title::after { content: none !important; }
html.mx-cabinet[data-page="dashboard"] body #botsView :is(.bots-header-icon, .bots-empty-icon) { background: var(--mx-green-soft) !important; color: var(--mx-green) !important; border: 1px solid #dfe7d9 !important; border-radius: 12px !important; box-shadow: none !important; }
html.mx-cabinet[data-page="dashboard"] body #botsView .bots-toolbar { flex-wrap: wrap !important; gap: 12px !important; padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
html.mx-cabinet[data-page="dashboard"] body #botsView :is(.bots-search-wrapper, .bots-provider-filter, .bots-tabs) { background: #fff !important; border: 1px solid var(--mx-line) !important; border-radius: 8px !important; box-shadow: none !important; }
html.mx-cabinet[data-page="dashboard"] body #botsView .bots-search-wrapper { min-width: 200px !important; flex: 1 1 320px !important; }
html.mx-cabinet[data-page="dashboard"] body #botsView .bots-search-wrapper input { color: var(--mx-ink) !important; background: transparent !important; border: 0 !important; font-size: 12px !important; }
html.mx-cabinet[data-page="dashboard"] body #botsView :is(.bots-pfilter, .bots-tab) { color: #697568 !important; border-radius: 6px !important; background: transparent !important; font-size: 12px !important; box-shadow: none !important; }
html.mx-cabinet[data-page="dashboard"] body #botsView :is(.bots-pfilter.active, .bots-tab.active) { color: var(--mx-green) !important; background: var(--mx-green-soft) !important; }
html.mx-cabinet[data-page="dashboard"] body #botsView :is(.bots-pfilter, .bots-tab, .bots-search-wrapper) svg { color: inherit !important; stroke: currentColor !important; }
html.mx-cabinet[data-page="dashboard"] body #botsView :is(.bots-pfilter-count, .bots-tab-count) { background: #edf1e8 !important; color: #64745f !important; }
html.mx-cabinet[data-page="dashboard"] body #botsView :is(.bots-add-btn, .bots-empty-cta, .btn-primary, .btn-premium-primary, .fbv-send) { background: var(--mx-green) !important; color: #fff !important; border: 1px solid var(--mx-green) !important; border-radius: 8px !important; box-shadow: none !important; font-size: 13px !important; font-weight: 550 !important; min-height: 40px !important; transform: none !important; }
html.mx-cabinet[data-page="dashboard"] body #botsView :is(.bots-add-btn, .bots-empty-cta, .btn-primary, .btn-premium-primary, .fbv-send):hover { background: #1b4935 !important; box-shadow: none !important; transform: none !important; }
html.mx-cabinet[data-page="dashboard"] body #botsView .bots-empty-premium { padding: 54px 24px !important; border: 1px dashed #ccd6c5 !important; border-radius: 12px !important; background: #fbfcf8 !important; box-shadow: none !important; }
html.mx-cabinet[data-page="dashboard"] body #botsView .bots-empty-title { color: var(--mx-ink) !important; font-size: 21px !important; font-weight: 600 !important; }
html.mx-cabinet[data-page="dashboard"] body #botsView .bots-empty-desc { color: var(--mx-muted) !important; font-size: 13px !important; line-height: 1.7 !important; }
html.mx-cabinet[data-page="dashboard"] body #feedbackView { --fbv-primary: #245b43; --fbv-primary-hover: #1b4935; --fbv-primary-light: #edf2e9; --fbv-surface: #fff; --fbv-surface-alt: #f1f3ec; --fbv-border: #dce0d6; --fbv-text-main: #202e27; --fbv-text-sec: #69736b; --fbv-text-hint: #7c877b; --fbv-shadow: none; background: transparent !important; }
html.mx-cabinet[data-page="dashboard"] body #feedbackView .fbv-shell { max-width: 760px !important; padding: 48px 36px 80px !important; gap: 32px !important; }
html.mx-cabinet[data-page="dashboard"] body #feedbackView .fbv-header-wrapper { justify-content: flex-start !important; text-align: left !important; }
html.mx-cabinet[data-page="dashboard"] body #feedbackView .fbv-hero-block { align-items: flex-start !important; max-width: 580px !important; gap: 20px !important; }
html.mx-cabinet[data-page="dashboard"] body #feedbackView .fbv-icon-glow { width: 44px !important; height: 44px !important; border-radius: 10px !important; box-shadow: none !important; }
html.mx-cabinet[data-page="dashboard"] body #feedbackView .fbv-icon-glow::after { content: none !important; }
html.mx-cabinet[data-page="dashboard"] body #feedbackView .fbv-title { font-size: 30px !important; font-weight: 600 !important; }
html.mx-cabinet[data-page="dashboard"] body #feedbackView .fbv-subtitle { font-size: 13px !important; line-height: 1.75 !important; }
html.mx-cabinet[data-page="dashboard"] body #feedbackView .fbv-compose-block { border: 1px solid var(--mx-line) !important; border-radius: 12px !important; background: #fff !important; box-shadow: none !important; }
html.mx-cabinet[data-page="dashboard"] body #feedbackView .fbv-input { min-height: 150px !important; background: transparent !important; color: var(--mx-ink) !important; font-size: 14px !important; line-height: 1.7 !important; }
html.mx-cabinet[data-page="dashboard"] body #feedbackView .fbv-action-row { flex-wrap: wrap !important; gap: 12px !important; background: transparent !important; border-color: var(--mx-line) !important; }
html.mx-cabinet[data-page="dashboard"] body #feedbackView .fbv-send { background: var(--mx-green) !important; border: 1px solid var(--mx-green) !important; border-radius: 8px !important; box-shadow: none !important; transform: none !important; }
html.mx-cabinet[data-page="dashboard"] body #feedbackView .fbv-send:hover { background: #1b4935 !important; box-shadow: none !important; transform: none !important; }
html.mx-cabinet[data-page="dashboard"] body #feedbackView .fbv-compose-hint { color: var(--mx-muted) !important; }
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-empty-hero { max-width: 760px !important; gap: 20px !important; margin: 12px auto !important; }
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-empty-icon { width: 64px !important; height: 64px !important; border-radius: 15px !important; }
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-empty-title { font-size: 30px !important; font-weight: 600 !important; letter-spacing: -.6px !important; }
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-empty-lead { font-size: 14px !important; line-height: 1.75 !important; }
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-how-grid { gap: 14px !important; }
html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-how-step { padding: 22px 16px !important; border-radius: 10px !important; gap: 10px !important; line-height: 1.6 !important; }
html.mx-cabinet[data-page="dashboard"] body .loco-btn { min-height: 38px !important; border-radius: 7px !important; }

/* The conversation shares the same quiet surfaces, with readable body text. */
html.mx-cabinet[data-page="dashboard"] body #chatView .msg .bubble { color: var(--mx-ink) !important; border: 1px solid var(--mx-line) !important; border-radius: 13px !important; background: #fff !important; box-shadow: none !important; font-size: 14px !important; line-height: 1.8 !important; transform: none !important; }
html.mx-cabinet[data-page="dashboard"] body #chatView .msg.user .bubble { background: #eaf0e4 !important; border-color: #dae3d1 !important; color: #2d4835 !important; }
html.mx-cabinet[data-page="dashboard"] body #chatView .msg .bubble a { color: var(--mx-green) !important; }
html.mx-cabinet[data-page="dashboard"] body #chatView .msg .bubble :is(pre, code) { background: #f0f3eb !important; color: #3b5340 !important; border-color: var(--mx-line) !important; }
html.mx-cabinet[data-page="dashboard"] body #chatView .msg .bubble table th { background: #eef2e8 !important; color: #344b39 !important; border-color: var(--mx-line) !important; }
html.mx-cabinet[data-page="dashboard"] body #composer.composer-v2 { background: var(--mx-paper) !important; border: 0 !important; box-shadow: none !important; }
html.mx-cabinet[data-page="dashboard"] body #composer .composer-bar { background: #fff !important; border: 1px solid #cdd7c5 !important; border-radius: 13px !important; box-shadow: 0 3px 15px #202e2705 !important; }
html.mx-cabinet[data-page="dashboard"] body #composer .composer-bar:focus-within { border-color: #9bb092 !important; box-shadow: 0 0 0 3px #245b4307 !important; }
html.mx-cabinet[data-page="dashboard"] body #composer .c-input { color: var(--mx-ink) !important; font-size: 14px !important; line-height: 1.65 !important; background: transparent !important; }
html.mx-cabinet[data-page="dashboard"] body #composer .composer-bar { position: relative !important; min-height: 96px !important; padding: 13px 14px 12px !important; }
html.mx-cabinet[data-page="dashboard"] body #composer .c-top-row { padding: 0 !important; min-height: 34px !important; }
html.mx-cabinet[data-page="dashboard"] body #composer .c-input { padding: 0 !important; min-height: 30px !important; width: 100% !important; }
html.mx-cabinet[data-page="dashboard"] body #composer .c-bottom-row { padding: 6px 0 0 !important; gap: 10px !important; justify-content: space-between !important; }
html.mx-cabinet[data-page="dashboard"] body #composer :is(.c-attach, .c-model, .family-switch) { background: #f3f5ef !important; color: #66755f !important; border-color: var(--mx-line) !important; box-shadow: none !important; }
html.mx-cabinet[data-page="dashboard"] body #composer .family-opt { color: #66755f !important; box-shadow: none !important; }
html.mx-cabinet[data-page="dashboard"] body #composer .family-opt:is(.active, .is-active) { background: #e0ead9 !important; color: var(--mx-green) !important; }
html.mx-cabinet[data-page="dashboard"] body #composer :is(.c-send, #send) { background: var(--mx-green) !important; color: #fff !important; border-color: var(--mx-green) !important; box-shadow: none !important; border-radius: 9px !important; transform: none !important; }
html.mx-cabinet[data-page="dashboard"] body #composer :is(.c-send, #send):disabled { background: #d9e2d2 !important; border-color: #d9e2d2 !important; color: #6d8065 !important; opacity: 1 !important; }

@media (min-width: 901px) and (max-width: 1240px) {
  html.mx-cabinet[data-page="dashboard"] body header.top-header { padding-inline: 20px !important; gap: 18px !important; }
  html.mx-cabinet[data-page="dashboard"] body header.top-header .header-right { gap: 12px !important; }
  html.mx-cabinet[data-page="dashboard"] body header.top-header #userBadgeContainer > div:nth-child(2) { display: none !important; }
  html.mx-cabinet[data-page="dashboard"] body header.top-header .tabs .tab { padding-inline: 10px !important; }
}
@media (max-width: 900px) {
  html.mx-cabinet[data-page="dashboard"] { --mx-header-height: 110px; }
  html.mx-cabinet[data-page="dashboard"] body header.top-header {
    position: sticky !important;
    inset: 0 auto auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    grid-template-rows: 54px 45px !important;
    gap: 0 12px !important;
    padding: 0 16px 10px !important;
    flex: 0 0 var(--mx-header-height) !important;
    align-content: start !important;
  }
  html.mx-cabinet[data-page="dashboard"] body header.top-header .header-left { grid-column: 1 !important; grid-row: 1 !important; gap: 8px !important; }
  html.mx-cabinet[data-page="dashboard"] body header.top-header #brandLogo .hero-title.matrixe-wordmark { font-size: 23px !important; }
  html.mx-cabinet[data-page="dashboard"] body header.top-header .btn-menu { width: 31px !important; min-width: 31px !important; padding: 6px !important; }
  html.mx-cabinet[data-page="dashboard"] body header.top-header .header-right { display: contents !important; }
  html.mx-cabinet[data-page="dashboard"] body header.top-header .tabs-nav-wrap { grid-column: 1 / -1 !important; grid-row: 2 !important; width: calc(100% - 105px) !important; height: 44px !important; justify-self: start !important; }
  html.mx-cabinet[data-page="dashboard"] body header.top-header #storeSelectorContainer.store-selector-container { display: block !important; position: absolute !important; top: auto !important; bottom: 16px !important; left: auto !important; right: 16px !important; width: auto !important; margin: 0 !important; }
  html.mx-cabinet[data-page="dashboard"] body header.top-header #storeSelectBtn { max-width: 96px !important; padding: 0 9px !important; height: 34px !important; min-height: 34px !important; }
  html.mx-cabinet[data-page="dashboard"] body header.top-header #currentStoreName { max-width: 64px !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
  html.mx-cabinet[data-page="dashboard"] body header.top-header #storeDropdown { top: calc(100% + 7px) !important; right: 0 !important; left: auto !important; width: 260px !important; min-width: 240px !important; max-width: calc(100vw - 26px) !important; }
  html.mx-cabinet[data-page="dashboard"] body header.top-header .tabs { gap: 4px !important; padding: 0 !important; }
  html.mx-cabinet[data-page="dashboard"] body header.top-header .tabs .tab { height: 36px !important; min-height: 36px !important; padding: 0 11px !important; font-size: 12px !important; }
  html.mx-cabinet[data-page="dashboard"] body header.top-header .tabs .tab svg { width: 15px !important; height: 15px !important; }
  html.mx-cabinet[data-page="dashboard"] body header.top-header .tabs-nav-btn { display: none !important; }
  html.mx-cabinet[data-page="dashboard"] body header.top-header .user-info { grid-column: 3 !important; grid-row: 1 !important; justify-self: end !important; width: auto !important; }
  html.mx-cabinet[data-page="dashboard"] body header.top-header #userBadgeContainer > :is(div:nth-child(2), svg.chevron-down) { display: none !important; }
  html.mx-cabinet[data-page="dashboard"] body header.top-header .status-pill { display: flex !important; grid-column: 2 !important; grid-row: 1 !important; justify-self: end !important; gap: 6px !important; margin: 0 !important; }
  html.mx-cabinet[data-page="dashboard"] body header.top-header .status-content { display: none !important; }
  html.mx-cabinet[data-page="dashboard"] body header.top-header #balanceDisplay.sp-btn-upgrade { padding-inline: 9px !important; height: 32px !important; min-height: 32px !important; font-size: 11px !important; }
  html.mx-cabinet[data-page="dashboard"] body header.top-header .status-content { font-size: 11px !important; }
  html.mx-cabinet[data-page="dashboard"] body header.top-header #profileDropdown { position: fixed !important; top: 52px !important; right: 12px !important; }
  html.mx-cabinet[data-page="dashboard"] body .main { padding-top: 0 !important; margin: 0 !important; }
  html.mx-cabinet[data-page="dashboard"] body:has(:is(#botsView, #locomotiveView, #feedbackView).active) .main { padding-top: 0 !important; }
  html.mx-cabinet[data-page="dashboard"] body :is(#botsView, #locomotiveView) .bots-page-wrapper { padding: 26px 20px 54px !important; }
  html.mx-cabinet[data-page="dashboard"] body #botsView .bots-page-header { flex-wrap: wrap !important; padding-bottom: 21px !important; margin-bottom: 20px !important; gap: 20px !important; }
  html.mx-cabinet[data-page="dashboard"] body #botsView .bots-page-title { font-size: 26px !important; }
  html.mx-cabinet[data-page="dashboard"] body #botsView .bots-provider-filter { max-width: 100% !important; flex-wrap: wrap !important; }
  html.mx-cabinet[data-page="dashboard"] body #botsView .bots-search-wrapper { min-width: 0 !important; flex-basis: 100% !important; }
  html.mx-cabinet[data-page="dashboard"] body #botsView .bots-pfilter-label { display: inline !important; }
  html.mx-cabinet[data-page="dashboard"] body #feedbackView .fbv-shell { padding: 28px 20px 60px !important; gap: 26px !important; }
  html.mx-cabinet[data-page="dashboard"] body #feedbackView .fbv-title { font-size: 26px !important; }
  html.mx-cabinet[data-page="dashboard"] body #feedbackView .fbv-send { min-height: 40px !important; }
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-empty-title { font-size: 26px !important; }
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-how-grid { grid-template-columns: 1fr !important; }
  html.mx-cabinet[data-page="dashboard"] body #locomotiveView .loco-how-step { padding: 18px !important; }
  html.mx-cabinet[data-page="dashboard"] body #composer.composer-v2 { padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px)) !important; }
  html.mx-cabinet[data-page="dashboard"] body #composer .c-input { font-size: 16px !important; }
}
@media (max-width: 359px) {
  html.mx-cabinet[data-page="dashboard"] body header.top-header { padding-inline: 11px !important; column-gap: 7px !important; }
  html.mx-cabinet[data-page="dashboard"] body header.top-header .header-left { gap: 5px !important; }
  html.mx-cabinet[data-page="dashboard"] body header.top-header #storeSelectorContainer.store-selector-container { right: 11px !important; }
  html.mx-cabinet[data-page="dashboard"] body header.top-header #brandLogo .hero-title.matrixe-wordmark { font-size: 21px !important; }
  html.mx-cabinet[data-page="dashboard"] body header.top-header #balanceDisplay.sp-btn-upgrade svg { display: none !important; }
  html.mx-cabinet[data-page="dashboard"] body #feedbackView .fbv-compose-hint { font-size: 10px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html.mx-cabinet[data-page="dashboard"] body :is(button, a, .sidebar, .chat-item) { transition: none !important; }
}
