﻿/* =========================================================
   Model Hub LIGHT UI — scoped to pricing route only
   Targets: #xm-plaza-root custom layer (body sibling)
   Full-width layout, light theme, blue/indigo accents
   ========================================================= */

body.xm-route-pricing,
body.xm-plaza-route {
  background: #f0f2f7 !important;
  color: #1e293b !important;
}

/* Hide React pricing chrome; keep header intact */
body.xm-route-pricing main,
body.xm-plaza-route main,
body.xm-route-pricing aside:not(.xm-ps),
body.xm-plaza-route aside:not(.xm-ps),
body.xm-route-pricing [data-xm-old-layer],
body.xm-plaza-route [data-xm-old-layer] {
  display: none !important;
}
body.xm-route-pricing #root [class*="min-h-svh"],
body.xm-plaza-route #root [class*="min-h-svh"] {
  min-height: 0 !important;
  height: 0 !important;
}
body.xm-route-pricing #root [class*="min-h-svh"] > *:not(header),
body.xm-plaza-route #root [class*="min-h-svh"] > *:not(header) {
  display: none !important;
}
body.xm-route-pricing #root [class*="min-h-svh"] > header,
body.xm-plaza-route #root [class*="min-h-svh"] > header {
  display: block !important;
}

/* ===== Root layout — FULL WIDTH ===== */
body.xm-route-pricing #xm-plaza-root,
body.xm-plaza-route #xm-plaza-root,
body.xm-route-pricing .xm-plaza-root,
body.xm-plaza-route .xm-plaza-root {
  display: grid !important;
  grid-template-columns: 280px minmax(0, 1fr) !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 78px 28px 48px 28px !important;
  box-sizing: border-box !important;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
  color: #1e293b !important;
}

/* ===== Sidebar ===== */
body.xm-route-pricing .xm-ps,
body.xm-plaza-route .xm-ps {
  position: sticky !important;
  top: 84px !important;
  align-self: start !important;
  max-height: calc(100vh - 100px) !important;
  overflow-y: auto !important;
  padding: 20px 16px !important;
  border-radius: 14px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #334155 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04) !important;
}
body.xm-route-pricing .xm-ps-head,
body.xm-plaza-route .xm-ps-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 16px !important;
}
body.xm-route-pricing .xm-ps-title,
body.xm-plaza-route .xm-ps-title {
  margin: 0 !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}
body.xm-route-pricing .xm-ps-reset,
body.xm-plaza-route .xm-ps-reset {
  border: 0 !important;
  background: transparent !important;
  color: #6366f1 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}
body.xm-route-pricing .xm-ps-section,
body.xm-plaza-route .xm-ps-section {
  margin-bottom: 16px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}
body.xm-route-pricing .xm-ps-section:last-of-type,
body.xm-plaza-route .xm-ps-section:last-of-type {
  border-bottom: none !important;
  margin-bottom: 8px !important;
}
body.xm-route-pricing .xm-ps-label,
body.xm-plaza-route .xm-ps-label {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #334155 !important;
  margin-bottom: 10px !important;
}
body.xm-route-pricing .xm-ps-chips,
body.xm-plaza-route .xm-ps-chips,
body.xm-route-pricing .xm-ps-more-body .xm-ps-chips,
body.xm-plaza-route .xm-ps-more-body .xm-ps-chips {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
body.xm-route-pricing .xm-chip,
body.xm-plaza-route .xm-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 32px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  color: #475569 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}
body.xm-route-pricing .xm-chip .n,
body.xm-plaza-route .xm-chip .n {
  color: #94a3b8 !important;
  font-size: 11px !important;
  font-variant-numeric: tabular-nums !important;
}
body.xm-route-pricing .xm-chip:hover,
body.xm-plaza-route .xm-chip:hover {
  border-color: #a5b4fc !important;
  color: #4f46e5 !important;
  background: #eef2ff !important;
}
body.xm-route-pricing .xm-chip.active,
body.xm-plaza-route .xm-chip.active {
  background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3) !important;
}
body.xm-route-pricing .xm-chip.active .n,
body.xm-plaza-route .xm-chip.active .n {
  color: rgba(255,255,255,0.85) !important;
}

/* Vendors */
body.xm-route-pricing .xm-ps-vendors,
body.xm-plaza-route .xm-ps-vendors {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}
body.xm-route-pricing .xm-vendor,
body.xm-plaza-route .xm-vendor {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 36px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-align: left !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease !important;
}
body.xm-route-pricing .xm-vendor:hover,
body.xm-plaza-route .xm-vendor:hover {
  background: #f1f5f9 !important;
  color: #1e293b !important;
}
body.xm-route-pricing .xm-vendor.active,
body.xm-plaza-route .xm-vendor.active {
  background: #eef2ff !important;
  color: #4f46e5 !important;
  border-color: #c7d2fe !important;
}
body.xm-route-pricing .xm-vendor-icon,
body.xm-plaza-route .xm-vendor-icon {
  width: 22px !important;
  height: 22px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  color: #fff !important;
  flex: 0 0 auto !important;
}
body.xm-route-pricing .xm-vendor-name,
body.xm-plaza-route .xm-vendor-name {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
body.xm-route-pricing .xm-vendor-count,
body.xm-plaza-route .xm-vendor-count {
  color: inherit !important;
  opacity: 0.6 !important;
  font-size: 11px !important;
  font-variant-numeric: tabular-nums !important;
  flex: 0 0 auto !important;
}

body.xm-route-pricing .xm-ps-more,
body.xm-plaza-route .xm-ps-more {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 36px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  margin-bottom: 8px !important;
}
body.xm-route-pricing .xm-ps-more:hover,
body.xm-plaza-route .xm-ps-more:hover {
  border-color: #a5b4fc !important;
  color: #4f46e5 !important;
}
body.xm-route-pricing .xm-ps-more-body,
body.xm-plaza-route .xm-ps-more-body {
  display: none !important;
  margin-top: 10px !important;
}
body.xm-route-pricing .xm-ps-more-body.open,
body.xm-plaza-route .xm-ps-more-body.open {
  display: block !important;
}
body.xm-route-pricing .xm-ps-admin,
body.xm-plaza-route .xm-ps-admin {
  width: 100% !important;
  min-height: 36px !important;
  border-radius: 8px !important;
  border: 1px dashed #a5b4fc !important;
  background: #eef2ff !important;
  color: #6366f1 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  margin-top: 6px !important;
}
body.xm-route-pricing .xm-ps-admin:hover,
body.xm-plaza-route .xm-ps-admin:hover {
  background: #e0e7ff !important;
}
body.xm-route-pricing .xm-ps-admin[hidden],
body.xm-plaza-route .xm-ps-admin[hidden] {
  display: none !important;
}

/* ===== Main column ===== */
body.xm-route-pricing .xm-pm,
body.xm-plaza-route .xm-pm {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

/* ===== Banner ===== */
body.xm-route-pricing .xm-banner,
body.xm-plaza-route .xm-banner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  padding: 18px 30px !important;
  border-radius: 16px !important;
  background: linear-gradient(112deg, #f7f8ff 0%, #eef2ff 22%, #e0e7ff 42%, #ddd6fe 60%, #c7d2fe 78%, #b7c4fb 100%) !important;
  border: 1px solid #c7d2fe !important;
  overflow: hidden !important;
  position: relative !important;
  min-height: 132px !important;
  box-shadow: 0 2px 12px rgba(99,102,241,0.12) !important;
}
body.xm-route-pricing .xm-banner-bg,
body.xm-plaza-route .xm-banner-bg {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  border-radius: inherit !important;
}
body.xm-route-pricing .xm-banner-bg svg,
body.xm-plaza-route .xm-banner-bg svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}
body.xm-route-pricing .xm-banner-copy,
body.xm-plaza-route .xm-banner-copy {
  position: relative !important;
  z-index: 1 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
body.xm-route-pricing .xm-banner-eyebrow,
body.xm-plaza-route .xm-banner-eyebrow {
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 2px !important;
  color: #4f46e5 !important;
  text-transform: uppercase !important;
  margin-bottom: 8px !important;
}
body.xm-route-pricing .xm-banner h2,
body.xm-plaza-route .xm-banner h2 {
  margin: 0 0 7px !important;
  font-size: 25px !important;
  font-weight: 900 !important;
  color: #1e1b4b !important;
  line-height: 1.25 !important;
}
body.xm-route-pricing .xm-banner-desc,
body.xm-plaza-route .xm-banner-desc {
  margin: 0 0 11px !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  color: #4338ca !important;
  max-width: 520px !important;
}
body.xm-route-pricing .xm-banner-points,
body.xm-plaza-route .xm-banner-points {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #3730a3 !important;
}
body.xm-route-pricing .xm-banner-points span,
body.xm-plaza-route .xm-banner-points span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}
body.xm-route-pricing .xm-banner-points i,
body.xm-plaza-route .xm-banner-points i {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  font-style: normal !important;
  line-height: 0 !important;
}
body.xm-route-pricing .xm-banner-points i::before,
body.xm-plaza-route .xm-banner-points i::before {
  content: none !important;
}
body.xm-route-pricing .xm-banner-right,
body.xm-plaza-route .xm-banner-right {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex: 0 0 auto !important;
}
body.xm-route-pricing .xm-banner-visual,
body.xm-plaza-route .xm-banner-visual {
  width: 236px !important;
  height: 150px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  margin-right: -8px !important;
}
body.xm-route-pricing .xm-banner-visual svg,
body.xm-plaza-route .xm-banner-visual svg {
  width: 100% !important;
  height: 100% !important;
}
body.xm-route-pricing .xm-banner-cta,
body.xm-plaza-route .xm-banner-cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 12px 28px !important;
  border-radius: 12px !important;
  background: #4f46e5 !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(79,70,229,0.35) !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}
body.xm-route-pricing .xm-banner-cta:hover,
body.xm-plaza-route .xm-banner-cta:hover {
  background: #4338ca !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(79,70,229,0.45) !important;
}

/* ===== Toolbar ===== */
body.xm-route-pricing .xm-toolbar,
body.xm-plaza-route .xm-toolbar {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}
body.xm-route-pricing .xm-search,
body.xm-plaza-route .xm-search {
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  min-height: 40px !important;
}
body.xm-route-pricing .xm-search:focus-within,
body.xm-plaza-route .xm-search:focus-within {
  border-color: #a5b4fc !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12) !important;
}
body.xm-route-pricing .xm-search-icon,
body.xm-plaza-route .xm-search-icon {
  color: #94a3b8 !important;
  font-size: 14px !important;
}
body.xm-route-pricing .xm-search input,
body.xm-plaza-route .xm-search input {
  flex: 1 !important;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  font-size: 14px !important;
  color: #1e293b !important;
  min-width: 0 !important;
}
body.xm-route-pricing .xm-search input::placeholder,
body.xm-plaza-route .xm-search input::placeholder {
  color: #94a3b8 !important;
}

body.xm-route-pricing .xm-sort,
body.xm-plaza-route .xm-sort {
  position: relative !important;
}
body.xm-route-pricing .xm-sort-btn,
body.xm-plaza-route .xm-sort-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 40px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}
body.xm-route-pricing .xm-sort-btn:hover,
body.xm-plaza-route .xm-sort-btn:hover {
  border-color: #a5b4fc !important;
  color: #4f46e5 !important;
}
body.xm-route-pricing .xm-sort-menu,
body.xm-plaza-route .xm-sort-menu {
  display: none !important;
  position: absolute !important;
  top: calc(100% + 6px) !important;
  right: 0 !important;
  min-width: 180px !important;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
  z-index: 50 !important;
  overflow: hidden !important;
}
body.xm-route-pricing .xm-sort-menu.open,
body.xm-plaza-route .xm-sort-menu.open {
  display: block !important;
}
body.xm-route-pricing .xm-sort-menu button,
body.xm-plaza-route .xm-sort-menu button {
  display: block !important;
  width: 100% !important;
  padding: 10px 14px !important;
  border: 0 !important;
  background: transparent !important;
  color: #475569 !important;
  font-size: 13px !important;
  text-align: left !important;
  cursor: pointer !important;
}
body.xm-route-pricing .xm-sort-menu button:hover,
body.xm-plaza-route .xm-sort-menu button:hover {
  background: #f1f5f9 !important;
}
body.xm-route-pricing .xm-sort-menu button.active,
body.xm-plaza-route .xm-sort-menu button.active {
  color: #4f46e5 !important;
  background: #eef2ff !important;
  font-weight: 700 !important;
}

body.xm-route-pricing .xm-viewtoggle,
body.xm-plaza-route .xm-viewtoggle {
  display: flex !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}
body.xm-route-pricing .xm-viewtoggle button,
body.xm-plaza-route .xm-viewtoggle button {
  width: 40px !important;
  height: 40px !important;
  border: 0 !important;
  background: #f8fafc !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
  font-size: 14px !important;
}
body.xm-route-pricing .xm-viewtoggle button:hover,
body.xm-plaza-route .xm-viewtoggle button:hover {
  color: #4f46e5 !important;
}
body.xm-route-pricing .xm-viewtoggle button.active,
body.xm-plaza-route .xm-viewtoggle button.active {
  background: #eef2ff !important;
  color: #4f46e5 !important;
}

body.xm-route-pricing .xm-fav-btn,
body.xm-plaza-route .xm-fav-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  min-height: 40px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}
body.xm-route-pricing .xm-fav-btn:hover,
body.xm-plaza-route .xm-fav-btn:hover {
  border-color: #fbbf24 !important;
  color: #d97706 !important;
}
body.xm-route-pricing .xm-fav-btn.active,
body.xm-plaza-route .xm-fav-btn.active {
  background: #fef3c7 !important;
  border-color: #fbbf24 !important;
  color: #d97706 !important;
}

/* ===== Count ===== */
body.xm-route-pricing .xm-count,
body.xm-plaza-route .xm-count {
  font-size: 13px !important;
  color: #64748b !important;
  padding: 4px 2px !important;
}
body.xm-route-pricing .xm-count strong,
body.xm-plaza-route .xm-count strong {
  color: #4f46e5 !important;
  font-weight: 800 !important;
  font-size: 15px !important;
}

/* ===== Grid ===== */
body.xm-route-pricing .xm-grid,
body.xm-plaza-route .xm-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px !important;
}
body.xm-route-pricing .xm-grid.list,
body.xm-plaza-route .xm-grid.list {
  grid-template-columns: 1fr !important;
}

/* ===== Empty state ===== */
body.xm-route-pricing .xm-empty,
body.xm-plaza-route .xm-empty {
  grid-column: 1 / -1 !important;
  text-align: center !important;
  padding: 60px 20px !important;
  color: #94a3b8 !important;
}
body.xm-route-pricing .xm-empty h3,
body.xm-plaza-route .xm-empty h3 {
  margin: 0 0 8px !important;
  font-size: 18px !important;
  color: #64748b !important;
}
body.xm-route-pricing .xm-empty p,
body.xm-plaza-route .xm-empty p {
  margin: 0 !important;
  font-size: 14px !important;
}

/* ===== Card ===== */
body.xm-route-pricing .xm-card,
body.xm-plaza-route .xm-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 18px !important;
  border-radius: 14px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
  transition: all 0.2s ease !important;
}
body.xm-route-pricing .xm-card:hover,
body.xm-plaza-route .xm-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
  border-color: #c7d2fe !important;
}
/* subtle tone accents on left border */
body.xm-route-pricing .xm-card.tone-teal,
body.xm-plaza-route .xm-card.tone-teal {
  border-left: 3px solid #14b8a6 !important;
}
body.xm-route-pricing .xm-card.tone-purple,
body.xm-plaza-route .xm-card.tone-purple {
  border-left: 3px solid #8b5cf6 !important;
}
body.xm-route-pricing .xm-card.tone-amber,
body.xm-plaza-route .xm-card.tone-amber {
  border-left: 3px solid #f59e0b !important;
}
body.xm-route-pricing .xm-card.tone-rose,
body.xm-plaza-route .xm-card.tone-rose {
  border-left: 3px solid #f43f5e !important;
}
body.xm-route-pricing .xm-card.tone-blue,
body.xm-plaza-route .xm-card.tone-blue {
  border-left: 3px solid #3b82f6 !important;
}
body.xm-route-pricing .xm-card.tone-green,
body.xm-plaza-route .xm-card.tone-green {
  border-left: 3px solid #22c55e !important;
}

body.xm-route-pricing .xm-card-top,
body.xm-plaza-route .xm-card-top {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
}
body.xm-route-pricing .xm-card-icon,
body.xm-plaza-route .xm-card-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #fff !important;
  flex: 0 0 auto !important;
}
body.xm-route-pricing .xm-card-head,
body.xm-plaza-route .xm-card-head {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
body.xm-route-pricing .xm-card-name,
body.xm-plaza-route .xm-card-name {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
body.xm-route-pricing .xm-card-vendor,
body.xm-plaza-route .xm-card-vendor {
  margin: 2px 0 0 !important;
  font-size: 12px !important;
  color: #64748b !important;
}

body.xm-route-pricing .xm-card-badge,
body.xm-plaza-route .xm-card-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  flex: 0 0 auto !important;
}
body.xm-route-pricing .xm-card-badge.hot,
body.xm-plaza-route .xm-card-badge.hot {
  background: #fef2f2 !important;
  color: #ef4444 !important;
}
body.xm-route-pricing .xm-card-badge.rec,
body.xm-plaza-route .xm-card-badge.rec {
  background: #eff6ff !important;
  color: #3b82f6 !important;
}
body.xm-route-pricing .xm-card-badge.new,
body.xm-plaza-route .xm-card-badge.new {
  background: #f0fdf4 !important;
  color: #22c55e !important;
}

body.xm-route-pricing .xm-card-desc,
body.xm-plaza-route .xm-card-desc {
  margin: 0 !important;
  font-size: 12.5px !important;
  line-height: 1.6 !important;
  color: #64748b !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

body.xm-route-pricing .xm-card-tags,
body.xm-plaza-route .xm-card-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}
body.xm-route-pricing .xm-tag,
body.xm-plaza-route .xm-tag {
  display: inline-flex !important;
  align-items: center !important;
  padding: 2px 8px !important;
  border-radius: 5px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  background: #f1f5f9 !important;
  color: #475569 !important;
}
body.xm-route-pricing .xm-tag.teal,
body.xm-plaza-route .xm-tag.teal {
  background: #f0fdfa !important;
  color: #0d9488 !important;
}
body.xm-route-pricing .xm-tag.purple,
body.xm-plaza-route .xm-tag.purple {
  background: #faf5ff !important;
  color: #7c3aed !important;
}
body.xm-route-pricing .xm-tag.amber,
body.xm-plaza-route .xm-tag.amber {
  background: #fffbeb !important;
  color: #d97706 !important;
}
body.xm-route-pricing .xm-tag.rose,
body.xm-plaza-route .xm-tag.rose {
  background: #fff1f2 !important;
  color: #e11d48 !important;
}
body.xm-route-pricing .xm-tag.blue,
body.xm-plaza-route .xm-tag.blue {
  background: #eff6ff !important;
  color: #2563eb !important;
}

body.xm-route-pricing .xm-card-foot,
body.xm-plaza-route .xm-card-foot {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: auto !important;
  padding-top: 12px !important;
  border-top: 1px solid #f1f5f9 !important;
}
body.xm-route-pricing .xm-card-provider,
body.xm-plaza-route .xm-card-provider {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
}
body.xm-route-pricing .xm-card-provider .ico,
body.xm-plaza-route .xm-card-provider .ico {
  width: 20px !important;
  height: 20px !important;
  border-radius: 5px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  color: #fff !important;
}
body.xm-route-pricing .xm-card-provider .nm,
body.xm-plaza-route .xm-card-provider .nm {
  font-size: 12px !important;
  color: #475569 !important;
  font-weight: 600 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  max-width: 80px !important;
}

body.xm-route-pricing .xm-card-price,
body.xm-plaza-route .xm-card-price {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
}
body.xm-route-pricing .xm-card-price .main,
body.xm-plaza-route .xm-card-price .main {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}
body.xm-route-pricing .xm-card-price .main.req,
body.xm-plaza-route .xm-card-price .main.req {
  color: #d97706 !important;
}
body.xm-route-pricing .xm-card-price .unit,
body.xm-plaza-route .xm-card-price .unit {
  font-size: 11px !important;
  color: #94a3b8 !important;
}
body.xm-route-pricing .xm-card-price .cny,
body.xm-plaza-route .xm-card-price .cny {
  font-size: 10px !important;
  color: #b0b8c4 !important;
}

body.xm-route-pricing .xm-card-actions,
body.xm-plaza-route .xm-card-actions {
  display: flex !important;
  gap: 6px !important;
  flex: 0 0 auto !important;
}
body.xm-route-pricing .xm-btn,
body.xm-plaza-route .xm-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  min-height: 32px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}
body.xm-route-pricing .xm-btn.ghost,
body.xm-plaza-route .xm-btn.ghost {
  border: 1px solid #e2e8f0 !important;
  background: transparent !important;
  color: #64748b !important;
}
body.xm-route-pricing .xm-btn.ghost:hover,
body.xm-plaza-route .xm-btn.ghost:hover {
  border-color: #a5b4fc !important;
  color: #4f46e5 !important;
  background: #eef2ff !important;
}
body.xm-route-pricing .xm-btn.primary,
body.xm-plaza-route .xm-btn.primary {
  border: 0 !important;
  background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(99,102,241,0.25) !important;
}
body.xm-route-pricing .xm-btn.primary:hover,
body.xm-plaza-route .xm-btn.primary:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca) !important;
  transform: translateY(-1px) !important;
}

/* ===== Detail dialog ===== */
body.xm-route-pricing .xm-dialog,
body.xm-plaza-route .xm-dialog {
  border: 0 !important;
  border-radius: 16px !important;
  padding: 0 !important;
  max-width: 520px !important;
  width: 92vw !important;
  background: #fff !important;
  color: #1e293b !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
}
body.xm-route-pricing .xm-dialog::backdrop,
body.xm-plaza-route .xm-dialog::backdrop {
  background: rgba(15,23,42,0.4) !important;
  backdrop-filter: blur(4px) !important;
}
body.xm-route-pricing .xm-dialog-body,
body.xm-plaza-route .xm-dialog-body {
  padding: 24px !important;
}
body.xm-route-pricing .xm-dialog-body h3,
body.xm-plaza-route .xm-dialog-body h3 {
  margin: 0 0 4px !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}
body.xm-route-pricing .xm-dialog-sub,
body.xm-plaza-route .xm-dialog-sub {
  margin: 0 0 10px !important;
  color: #64748b !important;
  font-size: 13px !important;
}
body.xm-route-pricing .xm-dialog-desc,
body.xm-plaza-route .xm-dialog-desc {
  margin: 0 0 14px !important;
  color: #475569 !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
}
body.xm-route-pricing .xm-dialog-rows,
body.xm-plaza-route .xm-dialog-rows {
  display: grid !important;
  grid-template-columns: 90px 1fr !important;
  gap: 8px 12px !important;
  margin: 0 0 18px !important;
  font-size: 13px !important;
}
body.xm-route-pricing .xm-dialog-rows dt,
body.xm-plaza-route .xm-dialog-rows dt {
  color: #94a3b8 !important;
}
body.xm-route-pricing .xm-dialog-rows dd,
body.xm-plaza-route .xm-dialog-rows dd {
  margin: 0 !important;
  color: #1e293b !important;
  font-weight: 600 !important;
}
body.xm-route-pricing .xm-dialog-actions,
body.xm-plaza-route .xm-dialog-actions {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

/* ===== Toast ===== */
.xm-toast {
  position: fixed !important;
  bottom: 32px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  padding: 10px 22px !important;
  border-radius: 10px !important;
  background: #1e293b !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  z-index: 9999 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18) !important;
  animation: xm-toast-in 0.25s ease !important;
}
@keyframes xm-toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== Admin panel ===== */
.xm-plaza-admin {
  padding: 22px !important;
}
.xm-plaza-admin h2 {
  margin: 0 0 6px !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}
.xm-plaza-admin-hint {
  margin: 0 0 14px !important;
  color: #64748b !important;
  font-size: 13px !important;
}
.xm-plaza-admin-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  max-height: 50vh !important;
  overflow: auto !important;
}
.xm-plaza-admin-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
}
.xm-plaza-admin-row input:not([type="checkbox"]) {
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  padding: 5px 8px !important;
  font-size: 12px !important;
  background: #fff !important;
  color: #1e293b !important;
}
.xm-plaza-admin-actions {
  display: flex !important;
  gap: 8px !important;
  margin-top: 14px !important;
  justify-content: flex-end !important;
}
.xm-plaza-admin-actions .ghost,
.xm-plaza-admin-actions .primary {
  min-height: 34px !important;
  padding: 0 16px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}
.xm-plaza-admin-actions .ghost {
  border: 1px solid #e2e8f0 !important;
  background: transparent !important;
  color: #475569 !important;
}
.xm-plaza-admin-actions .primary {
  border: 0 !important;
  background: #6366f1 !important;
  color: #fff !important;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  body.xm-route-pricing #xm-plaza-root,
  body.xm-plaza-route #xm-plaza-root {
    grid-template-columns: 220px minmax(0, 1fr) !important;
    padding: 78px 16px 40px !important;
    gap: 14px !important;
  }
  body.xm-route-pricing .xm-grid,
  body.xm-plaza-route .xm-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 720px) {
  body.xm-route-pricing #xm-plaza-root,
  body.xm-plaza-route #xm-plaza-root {
    grid-template-columns: 1fr !important;
    padding: 78px 12px 32px !important;
  }
  body.xm-route-pricing .xm-ps,
  body.xm-plaza-route .xm-ps {
    position: static !important;
    max-height: none !important;
  }
  body.xm-route-pricing .xm-grid,
  body.xm-plaza-route .xm-grid {
    grid-template-columns: 1fr !important;
  }
  body.xm-route-pricing .xm-banner,
  body.xm-plaza-route .xm-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

/* =========================================================
   Admin Config Center styles
   ========================================================= */
.xm-cfg {
  display: flex !important;
  flex-direction: column !important;
  max-height: 82vh !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  background: #fff !important;
}
.xm-cfg-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 20px 24px 16px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}
.xm-cfg-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}
.xm-cfg-icon {
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
  background: #eef2ff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
}
.xm-cfg-header h2 {
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}
.xm-cfg-header p {
  margin: 2px 0 0 !important;
  font-size: 12px !important;
  color: #94a3b8 !important;
}
.xm-cfg-close {
  width: 32px !important;
  height: 32px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #f1f5f9 !important;
  color: #64748b !important;
  font-size: 14px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.xm-cfg-close:hover { background: #e2e8f0 !important; color: #0f172a !important; }

.xm-cfg-tabs {
  display: flex !important;
  gap: 4px !important;
  padding: 10px 24px 0 !important;
  border-bottom: 1px solid #f1f5f9 !important;
}
.xm-cfg-tab {
  padding: 10px 16px !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  background: transparent !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.15s !important;
}
.xm-cfg-tab:hover { color: #4f46e5 !important; }
.xm-cfg-tab.active {
  color: #4f46e5 !important;
  border-bottom-color: #4f46e5 !important;
}

.xm-cfg-body {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 20px 24px !important;
}
.xm-cfg-panel { display: none !important; }
.xm-cfg-panel.active { display: block !important; }

.xm-cfg-section-title {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-bottom: 6px !important;
}
.xm-cfg-hint {
  font-size: 12px !important;
  color: #94a3b8 !important;
  margin: 0 0 16px !important;
  line-height: 1.6 !important;
}

.xm-cfg-field {
  margin-bottom: 18px !important;
}
.xm-cfg-field label {
  display: block !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 6px !important;
}
.xm-cfg-tag {
  display: inline-flex !important;
  padding: 1px 6px !important;
  border-radius: 4px !important;
  font-size: 10px !important;
  background: #eef2ff !important;
  color: #4f46e5 !important;
}
.xm-cfg-tag.warn {
  background: #fef2f2 !important;
  color: #ef4444 !important;
}
.xm-cfg-field-row {
  display: flex !important;
  gap: 12px !important;
}

.xm-cfg-input, .xm-cfg-select, .xm-cfg-textarea {
  width: 100% !important;
  min-height: 36px !important;
  padding: 7px 12px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  background: #f8fafc !important;
  color: #1e293b !important;
  box-sizing: border-box !important;
  outline: none !important;
}
.xm-cfg-input:focus, .xm-cfg-select:focus, .xm-cfg-textarea:focus {
  border-color: #a5b4fc !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1) !important;
}
.xm-cfg-input.tiny {
  min-height: 30px !important;
  padding: 4px 8px !important;
  font-size: 12px !important;
}
.xm-cfg-textarea {
  min-height: 60px !important;
  resize: vertical !important;
  font-family: inherit !important;
}

.xm-cfg-radio-group {
  display: flex !important;
  gap: 12px !important;
}
.xm-cfg-radio {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  cursor: pointer !important;
}
.xm-cfg-checks {
  display: flex !important;
  gap: 16px !important;
}
.xm-cfg-check {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13px !important;
  color: #475569 !important;
  cursor: pointer !important;
}

.xm-cfg-color-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}
.xm-cfg-color {
  width: 42px !important;
  height: 36px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  padding: 2px !important;
}
.xm-cfg-color-label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  font-family: monospace !important;
}
.xm-cfg-presets {
  display: flex !important;
  gap: 6px !important;
}
.xm-cfg-preset {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  border: 2px solid transparent !important;
  cursor: pointer !important;
  transition: transform 0.15s !important;
}
.xm-cfg-preset:hover {
  transform: scale(1.15) !important;
  border-color: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

.xm-cfg-tag-input {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-bottom: 8px !important;
}
.xm-cfg-tag-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  background: #eef2ff !important;
  color: #4f46e5 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}
.xm-cfg-tag-item button {
  border: 0 !important;
  background: transparent !important;
  color: #6366f1 !important;
  cursor: pointer !important;
  font-size: 11px !important;
  padding: 0 2px !important;
}

.xm-cfg-scene-list, .xm-cfg-sort-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}
.xm-cfg-scene-row, .xm-cfg-sort-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 10px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
}
.xm-cfg-drag-handle {
  color: #c0c8d4 !important;
  cursor: grab !important;
  font-size: 14px !important;
}
.xm-cfg-row-actions {
  display: flex !important;
  gap: 4px !important;
}
.xm-cfg-row-actions button {
  width: 26px !important;
  height: 26px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #64748b !important;
  font-size: 12px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.xm-cfg-row-actions button:hover {
  border-color: #a5b4fc !important;
  color: #4f46e5 !important;
}
.xm-cfg-row-actions button.danger:hover {
  border-color: #fca5a5 !important;
  color: #ef4444 !important;
}

.xm-cfg-sort-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.xm-cfg-sort-idx {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  min-width: 28px !important;
}
.xm-cfg-sort-name {
  flex: 1 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #334155 !important;
}

.xm-cfg-badge-editor {
  display: flex !important;
  gap: 8px !important;
  margin-bottom: 10px !important;
}
.xm-cfg-badge-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}
.xm-cfg-badge-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 10px !important;
  border: 1px solid #f1f5f9 !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  font-size: 12px !important;
}
.xm-cfg-badge-model {
  font-weight: 700 !important;
  color: #334155 !important;
}
.xm-cfg-badge-type {
  color: #64748b !important;
}
.xm-cfg-badge-row button {
  margin-left: auto !important;
  border: 0 !important;
  background: transparent !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
}

.xm-cfg-add-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 10px !important;
  padding: 8px 16px !important;
  border: 1px dashed #a5b4fc !important;
  border-radius: 8px !important;
  background: #eef2ff !important;
  color: #6366f1 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}
.xm-cfg-add-btn:hover {
  background: #e0e7ff !important;
}

.xm-cfg-footer {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  padding: 16px 24px !important;
  border-top: 1px solid #f1f5f9 !important;
}
.xm-cfg-btn {
  min-height: 38px !important;
  padding: 0 22px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s !important;
}
.xm-cfg-btn.small {
  min-height: 32px !important;
  padding: 0 14px !important;
}
.xm-cfg-btn.ghost {
  border: 1px solid #e2e8f0 !important;
  background: #fff !important;
  color: #475569 !important;
}
.xm-cfg-btn.ghost:hover {
  background: #f1f5f9 !important;
}
.xm-cfg-btn.primary {
  border: 0 !important;
  background: #4f46e5 !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(79,70,229,0.25) !important;
}
.xm-cfg-btn.primary:hover {
  background: #4338ca !important;
}
/* ===== Price display (new design) ===== */
.xm-card-price {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  min-width: 0 !important;
}
.xm-price-row {
  display: flex !important;
  align-items: baseline !important;
  gap: 5px !important;
  font-size: 12px !important;
}
.xm-price-label {
  color: #94a3b8 !important;
  font-size: 11px !important;
  min-width: 28px !important;
}
.xm-price-val {
  color: #0f172a !important;
  font-weight: 800 !important;
  font-size: 14px !important;
}
.xm-price-val.req {
  color: #d97706 !important;
}
.xm-price-per {
  color: #b0b8c4 !important;
  font-size: 10px !important;
}
.xm-price-cny {
  color: #94a3b8 !important;
  font-size: 11px !important;
}
.xm-price-unit {
  font-size: 10px !important;
  color: #c0c8d4 !important;
  margin-top: 1px !important;
}
/* ===== Copy button (inline after model name) ===== */
.xm-copy-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  margin-left: 6px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 5px !important;
  background: #f8fafc !important;
  color: #94a3b8 !important;
  font-size: 11px !important;
  cursor: pointer !important;
  vertical-align: middle !important;
  transition: all 0.15s ease !important;
  opacity: 0;
  flex: 0 0 auto !important;
}
.xm-card:hover .xm-copy-btn,
.xm-copy-btn:focus {
  opacity: 1 !important;
}
.xm-copy-btn:hover {
  border-color: #a5b4fc !important;
  color: #4f46e5 !important;
  background: #eef2ff !important;
}

/* Price row alignment */
.xm-price-row {
  display: flex !important;
  align-items: baseline !important;
  gap: 5px !important;
  white-space: nowrap !important;
}
/* ===== Override: copy button always visible + prominent ===== */
.xm-copy-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  margin-left: 8px !important;
  border: 1px solid #c7d2fe !important;
  border-radius: 6px !important;
  background: #eef2ff !important;
  color: #6366f1 !important;
  font-size: 12px !important;
  cursor: pointer !important;
  vertical-align: middle !important;
  transition: all 0.15s ease !important;
  opacity: 1 !important;
  flex: 0 0 auto !important;
}
.xm-copy-btn:hover {
  border-color: #6366f1 !important;
  background: #6366f1 !important;
  color: #fff !important;
  transform: scale(1.1) !important;
}

/* ===== Model icon with letter ===== */
.xm-icon-letter {
  width: 100% !important;
  height: 100% !important;
  border-radius: 10px !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #fff !important;
}
.xm-card-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  flex: 0 0 auto !important;
}
/* ===== Model icon image ===== */
.xm-icon-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 10px !important;
  padding: 8px !important;
  background: transparent !important;
}
.xm-card-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ===== Filter management ===== */
.xm-filter-section-card {
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 14px !important;
  margin-bottom: 12px !important;
  background: #f8fafc !important;
}
.xm-filter-section-head {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 10px !important;
}
.xm-filter-options-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin-bottom: 8px !important;
}
.xm-filter-option-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 8px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  background: #fff !important;
}
.xm-filter-model-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  flex: 1 !important;
  min-width: 0 !important;
}
.xm-cfg-btn.tiny {
  min-height: 26px !important;
  padding: 0 8px !important;
  font-size: 11px !important;
}
.xm-cfg-btn.danger {
  border-color: #fca5a5 !important;
  color: #ef4444 !important;
}
.xm-cfg-btn.danger:hover {
  background: #fef2f2 !important;
}
/* ===== Drag & drop for filter management ===== */
.xm-filter-section-card[draggable="true"] {
  cursor: grab;
}
.xm-filter-section-card.dragging {
  opacity: 0.5;
  border: 2px dashed #6366f1 !important;
}
.xm-filter-section-card.drag-over {
  border: 2px solid #6366f1 !important;
  background: #eef2ff !important;
}
.xm-filter-option-row[draggable="true"] {
  cursor: grab;
}
.xm-filter-option-row.dragging {
  opacity: 0.5;
  border: 2px dashed #818cf8 !important;
}
.xm-filter-option-row.drag-over {
  border: 2px solid #818cf8 !important;
  background: #eef2ff !important;
}
.xm-cfg-drag-handle {
  cursor: grab !important;
  color: #a5b4fc !important;
  font-size: 14px !important;
  user-select: none !important;
  flex: 0 0 auto !important;
}
.xm-cfg-drag-handle:active {
  cursor: grabbing !important;
}

/* ===== Icon chip (clean, console-style) ===== */
.xm-icon-badge {
  width: 100% !important;
  height: 100% !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  background: #f8fafc !important;
  border: 1px solid #eef2f7 !important;
}
.xm-icon-badge .xm-icon-letter {
  border-radius: 10px !important;
}
.xm-vendor-icon-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 6px !important;
  padding: 3px !important;
  display: block !important;
}

