/* ============================================================
   Desk MUJI light � admin /home shell (rail + inbox workspace)
   Load AFTER admin-skin.css + home-skin.css.
   Scoped to body.desk-admin-shell / cw-home-page.
   Remap --cw-home-* so most home-skin rules flip to warm paper;
   then override hard-coded blue bubbles / focus rings.
   ============================================================ */

body.onsites-desk.desk-admin-shell,
body.onsites-desk.cw-home-page.desk-admin-shell,
body.onsites-desk.has-cw-desk-home-sidebar.desk-admin-shell,
body.onsites-desk.cw-home-page.has-cw-desk-home-sidebar.desk-admin-shell {
  /* Main canvas: VS Code Light Modern white. Rail / sidebar stay as-is. */
  --mj-canvas: #FFFFFF;
  --mj-surface: #FFFFFF;
  --mj-paper: #FFFFFF;
  --mj-sunken: #F8F8F8;
  --mj-hover: #F3F3F3;
  /* Rail / sidebar: keep current strips */
  --mj-rail: #F4F2EE;
  --mj-sidebar: #F7F5F1;
  /* Ink � deeper charcoal for stronger contrast on white paper */
  --mj-ink: #0F0E0C;
  --mj-ink-2: #2A2622;
  --mj-ink-3: #4A453F;
  --mj-line: #E5E5E5;
  --mj-line-hard: #D4D4D4;
  /* Primary accent: wood (buttons, selected, primary tabs) */
  --mj-wood: #6B5744;
  --mj-wood-deep: #4E3F31;
  --mj-wood-soft: rgba(107, 87, 68, 0.14);
  --mj-wood-mid: rgba(107, 87, 68, 0.22);
  /* Secondary accent: stone teal (links, info, chart B) */
  --mj-stone: #5F7A72;
  --mj-stone-deep: #4A625B;
  --mj-stone-soft: rgba(95, 122, 114, 0.14);
  --mj-stone-mid: rgba(95, 122, 114, 0.22);
  /* Functional */
  --mj-live: #4F6B45;
  --mj-live-soft: rgba(79, 107, 69, 0.14);
  --mj-note-bg: #F6F0E4;
  --mj-note-ink: #3F3424;
  --mj-danger: #9B4A3C;
  --mj-danger-soft: rgba(155, 74, 60, 0.14);
  --mj-radius: 4px;
  --mj-radius-lg: 6px;

  color-scheme: light;
  color: var(--mj-ink);

  /* Admin-skin body tokens were near-white (dark desk) � remap to ink */
  --cw-text: var(--mj-ink);
  --cw-text-2: var(--mj-ink-2);
  --cw-text-3: var(--mj-ink-3);
  --cw-border: var(--mj-line);
  --cw-border-strong: var(--mj-line-hard);
  --cw-hairline: var(--mj-line);
  --cw-bg: var(--mj-canvas);
  --cw-surface-1: var(--mj-surface);
  --cw-surface-2: var(--mj-sunken);
  --cw-elev-1: var(--mj-surface);
  --cw-elev-2: var(--mj-sunken);
  --cw-ink: var(--mj-ink);
  --cw-ink-2: var(--mj-ink-2);
  --admin-accent: var(--mj-wood);
  --admin-glow: var(--mj-stone-deep);
  --admin-live: var(--mj-live);
  --cw-danger: var(--mj-danger);
  --cw-info: var(--mj-stone);

  /* Slack rail tokens */
  --slack-rail-bg: var(--mj-rail);
  --slack-rail-text: var(--mj-ink);
  --slack-rail-muted: var(--mj-ink-2);
  --slack-rail-icon: var(--mj-ink-2);
  --slack-rail-hover: var(--mj-hover);
  --slack-rail-active: var(--mj-wood-soft);
  --slack-canvas: var(--mj-canvas);

  /* Home desk tokens ? MUJI */
  --cw-home-bg: var(--mj-canvas);
  --cw-home-sidebar-bg: var(--mj-sidebar);
  --cw-home-list-bg: var(--mj-canvas);
  --cw-home-thread-bg: var(--mj-canvas);
  --cw-home-contact-bg: var(--mj-sunken);
  --cw-home-surface: var(--mj-surface);
  --cw-home-surface-2: var(--mj-sunken);
  --cw-home-surface-raised: var(--mj-surface);
  --cw-home-border: var(--mj-line);
  --cw-home-border-strong: var(--mj-line-hard);
  --cw-home-text: var(--mj-ink);
  --cw-home-muted: var(--mj-ink-2);
  --cw-home-icon: var(--mj-ink-2);
  --cw-home-faint: var(--mj-ink-3);
  --cw-home-hover: var(--mj-hover);
  --cw-home-active: var(--mj-wood-soft);
  --cw-home-active-nav: var(--mj-wood-soft);
  --cw-home-accent: var(--mj-wood);
  --cw-home-accent-hover: var(--mj-wood-deep);
  --cw-home-accent-soft: var(--mj-wood-soft);
  --cw-home-accent-mid: var(--mj-wood-mid);
  --cw-home-accent-line: var(--mj-wood);
  /* Selected/accent labels stay dark ink � wood is for bars/buttons only */
  --cw-home-accent-text: var(--mj-ink);
  --cw-home-info: var(--mj-stone);
  --cw-home-info-soft: var(--mj-stone-soft);
  --cw-home-success: var(--mj-live);
  --cw-home-success-soft: var(--mj-live-soft);
  --cw-home-warning: #9A7A28;
  --cw-home-warning-soft: rgba(154, 122, 40, 0.14);
  --cw-home-danger: var(--mj-danger);
  --cw-home-danger-soft: var(--mj-danger-soft);
  --cw-home-note-bg: var(--mj-note-bg);
  --cw-home-note-border: rgba(90, 74, 50, 0.32);
  --cw-home-note-text: var(--mj-note-ink);
  --cw-home-radius-sm: var(--mj-radius);
  --cw-home-radius: var(--mj-radius-lg);
  --cw-home-radius-lg: 8px;
  --cw-home-shadow: none;
  --cw-home-shadow-sm: none;
  /* Intercom-style raised nav chip (shared by Chat / Mail / CRM / Settings) */
  --cw-nav-chip-bg: #ffffff;
  --cw-nav-chip-shadow: 0 1px 2px rgba(15, 14, 12, 0.06), 0 3px 10px rgba(15, 14, 12, 0.07);
}

/* ---------- Shell scenic (rail strip) � wood-tinted column vs paper canvas ---------- */
body.onsites-desk.desk-admin-shell.has-cw-rail .cw-shell::before,
body.onsites-desk.cw-home-page.desk-admin-shell.has-cw-rail .cw-shell::before,
body.onsites-desk.has-cw-rail.desk-admin-shell.has-cw-desk-home-sidebar .cw-shell::before,
body.onsites-desk.has-cw-rail.has-cw-desk-home-sidebar.desk-admin-shell .cw-shell::before {
  background: linear-gradient(
    90deg,
    var(--mj-rail) 0,
    var(--mj-sidebar) calc(var(--cw-rail-w, 70px) - 1px),
    var(--mj-canvas) var(--cw-rail-w, 70px),
    var(--mj-canvas) 100%
  ) !important;
}

/* ---------- Workspace chrome ---------- */
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home {
  color-scheme: light;
  background: var(--mj-canvas);
  color: var(--mj-ink);
  border-left: 1px solid var(--mj-line-hard);
}

body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home ::-webkit-scrollbar-thumb {
  background: rgba(51, 48, 43, 0.16);
}
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home ::-webkit-scrollbar-thumb:hover {
  background: rgba(51, 48, 43, 0.28);
}

/* ---------- Left rail ---------- */
body.onsites-desk.desk-admin-shell .cw-rail {
  background: var(--mj-rail);
  border-right: 1px solid var(--mj-line);
  color: var(--mj-ink-2);
}
body.onsites-desk.desk-admin-shell .cw-rail-brand {
  color: var(--mj-wood-deep);
}
body.onsites-desk.desk-admin-shell .cw-rail-brand:hover {
  color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell .cw-rail-btn {
  color: var(--mj-ink-2);
  background: transparent;
}
body.onsites-desk.desk-admin-shell .cw-rail-btn .cw-rail-icon {
  border-radius: var(--mj-radius);
  background: transparent;
}
body.onsites-desk.desk-admin-shell .cw-rail-btn:hover,
body.onsites-desk.desk-admin-shell .cw-rail-btn:focus-visible {
  color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell .cw-rail-btn:hover .cw-rail-icon,
body.onsites-desk.desk-admin-shell .cw-rail-btn:focus-visible .cw-rail-icon {
  background: rgba(255, 253, 249, 0.55);
}
body.onsites-desk.desk-admin-shell .cw-rail-btn.is-on {
  color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell .cw-rail-btn.is-on .cw-rail-icon {
  background: var(--mj-wood);
  color: #F6F1E8;
}
body.onsites-desk.desk-admin-shell .cw-rail-label {
  color: inherit;
  font-weight: 650;
}
body.onsites-desk.desk-admin-shell .cw-rail-foot {
  border-top: 1px solid var(--mj-line-hard);
}
body.onsites-desk.desk-admin-shell .cw-rail-foot .cw-avatar {
  border-radius: var(--mj-radius);
  background: var(--mj-wood);
  color: #F6F1E8;
  border: 1px solid var(--mj-wood-deep);
}
body.onsites-desk.desk-admin-shell .cw-rail-avatar-wrap {
  border-radius: var(--mj-radius);
}
body.onsites-desk.desk-admin-shell .cw-rail-status {
  background: var(--mj-rail);
  border: 1px solid var(--mj-line);
}
body.onsites-desk.desk-admin-shell .cw-rail-status::after {
  background: var(--mj-ink-3);
}
body.onsites-desk.desk-admin-shell .cw-rail-status.is-on::after {
  background: var(--mj-live);
}
body.onsites-desk.desk-admin-shell .cw-rail-status.is-off::after {
  background: var(--mj-ink-3);
}

/* ---------- Home sidebar nav ---------- */
body.onsites-desk.desk-admin-shell .cw-home-sidebar,
body.onsites-desk.desk-admin-shell .cw-desk-home-sidebar,
body.onsites-desk.desk-admin-shell .cw-more-sidebar,
body.onsites-desk.desk-admin-shell .cw-settings-sidebar,
body.onsites-desk.desk-admin-shell .cw-agent-sidebar,
body.onsites-desk.desk-admin-shell .cw-crm-sidebar {
--cw-font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
 --cw-display: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--cw-font);
  letter-spacing: 0;
}
body.onsites-desk.desk-admin-shell .cw-home-sidebar {
  background: var(--mj-sidebar);
  border-right: 1px solid var(--mj-line);
  box-shadow: none;
}
body.onsites-desk.desk-admin-shell .cw-home-sidebar-head {
  border-bottom: 1px solid var(--mj-line);
  background: transparent;
}
body.onsites-desk.desk-admin-shell .cw-home-nav-btn.is-on {
  /* Intercom raised chip on warm paper sidebar � white lift, soft shadow, no stroke. */
  background: var(--cw-nav-chip-bg, #ffffff);
  color: var(--mj-ink);
  font-weight: 650;
  box-shadow: var(--cw-nav-chip-shadow);
}
body.onsites-desk.desk-admin-shell .cw-home-section-label {
  color: var(--mj-ink-3);
  letter-spacing: 0.08em;
}

/* ---------- List pane (VS Code editor white; rail / sidebar unchanged) ---------- */
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home > #pane-admin {
  background: var(--mj-canvas);
}
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home > .cw-list-pane,
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home > #pane-admin > .cw-list-pane {
  background: var(--mj-canvas);
  border-right: 1px solid var(--mj-line-hard);
}
body.onsites-desk.desk-admin-shell .cw-home .cw-home-list-head,
body.onsites-desk.desk-admin-shell .cw-home .cw-list-top {
  background: var(--mj-canvas);
  border-bottom: 1px solid var(--mj-line);
}
body.onsites-desk.desk-admin-shell .cw-home .cw-conv-list {
  background: var(--mj-canvas);
}
body.onsites-desk.desk-admin-shell .cw-conv-card {
  background: transparent;
}
body.onsites-desk.desk-admin-shell .cw-conv-card.active {
  background: var(--mj-surface) !important;
  border-color: transparent;
  box-shadow: inset 3px 0 0 0 var(--mj-wood) !important;
}
body.onsites-desk.desk-admin-shell .cw-conv-card:hover {
  background: var(--mj-hover);
}
body.onsites-desk.desk-admin-shell .cw-home .cw-home-list-tools .cw-search,
body.onsites-desk.desk-admin-shell .cw-home .cw-search,
body.onsites-desk.desk-admin-shell .cw-home .cw-home-filter-btn {
  background: var(--mj-surface);
}
body.onsites-desk.desk-admin-shell .cw-home .cw-home-list-tools .cw-search:focus-within {
  border-color: var(--mj-wood);
  background: var(--mj-surface);
  box-shadow: 0 0 0 3px var(--mj-wood-soft);
}
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-scope-row {
  background: var(--mj-sunken);
  border-color: var(--mj-line);
}
body.onsites-desk.desk-admin-shell .cw-home .cw-box-dd-menu,
body.onsites-desk.desk-admin-shell .cw-home .cw-status-dd-menu {
  background: var(--mj-surface);
  border-color: var(--mj-line-hard);
}
body.onsites-desk.desk-admin-shell .cw-home .cw-box-dd-menu button:hover,
body.onsites-desk.desk-admin-shell .cw-home .cw-box-dd-menu button[aria-selected="true"],
body.onsites-desk.desk-admin-shell .cw-home .cw-status-dd-menu button:hover,
body.onsites-desk.desk-admin-shell .cw-home .cw-status-dd-menu button[aria-selected="true"] {
  background: var(--mj-wood-soft);
  color: var(--mj-ink);
}

/* ---------- Mail folder rail (warm paper recess so white chips can lift) ---------- */
body.onsites-desk.desk-admin-shell .cw-mail-rail,
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home.is-mail-workspace > #pane-admin > .cw-mail-rail {
  background: var(--mj-sidebar) !important;
  border-right: 1px solid var(--mj-line);
  color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell .cw-mail-rail-scroll {
  background: transparent;
}
body.onsites-desk.desk-admin-shell .cw-mail-rail-title {
  color: var(--mj-ink-3);
}
body.onsites-desk.desk-admin-shell .cw-mail-rail-item {
  color: var(--mj-ink-2);
  border-radius: 8px;
  transition:
    background 0.16s var(--cw-home-ease, ease),
    color 0.16s var(--cw-home-ease, ease),
    box-shadow 0.16s var(--cw-home-ease, ease),
    transform 0.16s var(--cw-home-ease, ease);
}
body.onsites-desk.desk-admin-shell .cw-mail-rail-item:hover,
body.onsites-desk.desk-admin-shell .cw-mail-rail .cw-mail-list-filter:hover {
  background: rgba(15, 14, 12, 0.04);
  color: var(--mj-ink);
  box-shadow: none;
  transform: none;
}
body.onsites-desk.desk-admin-shell .cw-mail-rail-item.is-on,
body.onsites-desk.desk-admin-shell .cw-mail-rail .cw-mail-list-filter.is-on {
  /* White chip sitting above the paper rail � lift + catch-light + soft drop. */
  background: #ffffff;
  color: var(--mj-ink);
  font-weight: 650;
  transform: translateY(-1px);
  box-shadow:
    0 0.5px 0 rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(15, 14, 12, 0.07),
    0 4px 10px rgba(15, 14, 12, 0.1),
    0 10px 20px rgba(15, 14, 12, 0.06);
}
body.onsites-desk.desk-admin-shell .cw-mail-rail .cw-mail-list-filter {
  border-radius: 8px;
  transition:
    background 0.16s var(--cw-home-ease, ease),
    color 0.16s var(--cw-home-ease, ease),
    box-shadow 0.16s var(--cw-home-ease, ease),
    transform 0.16s var(--cw-home-ease, ease);
}
body.onsites-desk.desk-admin-shell .cw-mail-rail-item--box.is-on::before {
  display: none;
}
body.onsites-desk.desk-admin-shell .cw-mail-rail-ico {
  color: var(--mj-ink-3);
}
body.onsites-desk.desk-admin-shell .cw-mail-rail-item:hover .cw-mail-rail-ico {
  color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell .cw-mail-rail-item.is-on .cw-mail-rail-ico {
  color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell .cw-mail-rail-count {
  color: var(--mj-ink-3);
}

/* Shared Intercom raised chip � CRM / CRM2 / More / Mail settings sidebars */
body.onsites-desk.desk-admin-shell .cw-crm-nav-btn.is-on,
body.onsites-desk.desk-admin-shell.desk-pane-crm2 .cw-crm2-nav-btn.is-on,
body.onsites-desk.desk-admin-shell.desk-pane-crm2 .cw-crm2-settings-rail-btn.is-on,
body.onsites-desk.desk-admin-shell .cw-more-nav-btn.is-on,
body.onsites-desk.desk-admin-shell .cw-mail-set-nav-item.is-on {
  background: var(--cw-nav-chip-bg, #ffffff) !important;
  color: var(--mj-ink) !important;
  font-weight: 650;
  box-shadow: var(--cw-nav-chip-shadow) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm2 .cw-crm2-nav-btn.is-on .ico,
body.onsites-desk.desk-admin-shell .cw-crm-nav-btn.is-on .ico {
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell .cw-crm-nav-btn,
body.onsites-desk.desk-admin-shell.desk-pane-crm2 .cw-crm2-nav-btn,
body.onsites-desk.desk-admin-shell .cw-more-nav-btn,
body.onsites-desk.desk-admin-shell .cw-mail-set-nav-item,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-nav-btn {
  border-radius: 8px;
}

/* ---------- Thread / messages (VS Code white canvas; bubble colors unchanged) ---------- */
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home > .cw-thread,
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home > #pane-admin > .cw-thread {
  background: var(--mj-canvas);
}
body.onsites-desk.desk-admin-shell .cw-home .cw-thread-head {
  background: var(--mj-canvas);
  border-bottom: 1px solid var(--mj-line);
}
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-messages,
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-messages {
  background: var(--mj-canvas) !important;
  color: var(--mj-ink);
}

body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-post--them .cw-post-bubble,
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-post--them .cw-post-bubble,
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-post:not(.cw-post--me) .cw-post-bubble {
  background: #F8F4EE;
  color: var(--mj-ink);
  border: 1px solid var(--mj-line-hard);
  border-radius: var(--mj-radius-lg);
  border-bottom-left-radius: 2px;
  box-shadow: none;
}

body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-post--me .cw-post-bubble,
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-post--me .cw-post-bubble {
  background: #F2EBE2 !important;
  color: var(--mj-ink) !important;
  border: 1px solid rgba(107, 87, 68, 0.28) !important;
  border-radius: var(--mj-radius-lg);
  border-bottom-right-radius: 2px;
  box-shadow: none !important;
}

body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-post--ai .cw-post-bubble,
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-post--me.cw-post--ai .cw-post-bubble,
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-post--ai .cw-post-bubble,
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-post--me.cw-post--ai .cw-post-bubble {
  background: var(--mj-sunken) !important;
  color: var(--mj-ink) !important;
  border: 1px solid var(--mj-line-hard) !important;
  box-shadow: none !important;
}

body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-post--me .cw-post-who,
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-post-who {
  color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-post--ai .cw-post-who.is-ai {
  color: var(--mj-note-ink);
}
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-post--me .cw-post-bubble.cw-md .cw-md-a,
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-post--them .cw-post-bubble.cw-md .cw-md-a,
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-post--ai .cw-post-bubble.cw-md .cw-md-a {
  color: var(--mj-stone-deep);
}
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-post-face--ai-mark {
  background: var(--mj-stone-soft) !important;
  color: var(--mj-stone-deep) !important;
  border-color: var(--mj-line-hard) !important;
}
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-ai-badge {
  background: transparent;
  border: 1px solid var(--mj-line-hard);
  color: var(--mj-ink-2);
}
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-post-bubble.cw-md .cw-md-code,
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-post-bubble.cw-md .cw-md-pre {
  background: rgba(26, 23, 20, 0.06);
  border-color: var(--mj-line);
  color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-post--note {
  background: var(--mj-note-bg);
  border: 1px solid var(--mj-line);
  border-left: 2px solid var(--mj-note-ink);
  border-radius: var(--mj-radius);
}
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-bubble-sys {
  background: transparent;
  color: var(--mj-ink-3);
  border: 0;
}

/* ---------- Composer ---------- */
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-composer-wrap {
  background: var(--mj-canvas);
}
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-reply-box,
body.onsites-desk.desk-admin-shell .cw-home .cw-reply-box {
  background: var(--mj-surface);
  border: 1px solid var(--mj-line-hard);
  border-radius: var(--mj-radius-lg);
  box-shadow: none;
}
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-reply-box:focus-within {
  border-color: var(--mj-wood);
  box-shadow: 0 0 0 3px var(--mj-wood-soft);
}
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-reply-box.is-note {
  background: var(--mj-note-bg);
  border-color: var(--mj-note-ink);
}
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-reply-tab.active {
  background: var(--mj-wood-soft);
  color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-reply-box.is-note .cw-reply-tab.active {
  background: rgba(90, 74, 50, 0.12);
  color: var(--mj-note-ink);
}
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-reply-editor {
  color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-reply-editor::placeholder {
  color: var(--mj-ink-3);
}
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-file-btn:hover,
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-emoji-btn:hover,
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-emoji-btn.is-open,
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-mention-btn:hover,
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-mention-btn.is-open {
  color: var(--mj-wood-deep);
  background: var(--mj-wood-soft);
  border-color: var(--mj-line-hard);
}
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-send-icon {
  background: var(--mj-wood);
  color: #F6F1E8;
  border-radius: var(--mj-radius);
  box-shadow: none;
}
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-send-icon:hover:not(:disabled) {
  background: var(--mj-wood-deep);
}

/* Composer tools + tabs � kill light-on-dark leftovers */
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-reply-tab,
body.onsites-desk.desk-admin-shell .cw-home .cw-reply-tab {
  color: var(--mj-ink-2) !important;
}
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-reply-tab:hover {
  color: var(--mj-ink) !important;
  background: var(--mj-hover) !important;
}
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-reply-tab.active,
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-reply-box.is-note .cw-reply-tab.active {
  color: var(--mj-ink) !important;
  background: var(--mj-wood-soft) !important;
}
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-reply-editor,
body.onsites-desk.desk-admin-shell .cw-home .cw-reply-editor {
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-reply-editor::placeholder,
body.onsites-desk.desk-admin-shell .cw-home .cw-reply-editor::placeholder {
  color: var(--mj-ink-3) !important;
  opacity: 1;
}
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-file-btn,
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-emoji-btn,
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-mention-btn,
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-canned-btn,
body.onsites-desk.desk-admin-shell .cw-composer-bar .cw-canned-btn {
  color: var(--mj-ink-2) !important;
  border-color: var(--mj-line-hard);
  background: transparent;
}
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-file-btn:hover,
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-emoji-btn:hover,
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-emoji-btn.is-open,
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-mention-btn:hover,
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-mention-btn.is-open,
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-canned-btn:hover,
body.onsites-desk.desk-admin-shell .cw-composer-bar .cw-canned-btn:hover {
  color: var(--mj-wood-deep) !important;
  background: var(--mj-wood-soft) !important;
  border-color: var(--mj-line-hard) !important;
}
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-typing--desk {
  color: var(--mj-ink-3) !important;
}

/* Thread header actions */
body.onsites-desk.desk-admin-shell .cw-home .cw-action,
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-action {
  background: var(--mj-surface) !important;
  border: 1px solid var(--mj-line-hard) !important;
  color: var(--mj-ink-2) !important;
}
body.onsites-desk.desk-admin-shell .cw-home .cw-action:hover,
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-action:hover {
  background: var(--mj-hover) !important;
  color: var(--mj-ink) !important;
  border-color: var(--mj-line-hard) !important;
}
body.onsites-desk.desk-admin-shell .cw-home .cw-action-resolve,
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-action-resolve {
  background: var(--mj-live-soft) !important;
  border-color: rgba(79, 107, 69, 0.35) !important;
  color: var(--mj-live) !important;
}
body.onsites-desk.desk-admin-shell .cw-home .cw-action-resolve:hover,
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-action-resolve:hover {
  background: rgba(79, 107, 69, 0.22) !important;
  color: #3A5234 !important;
}
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-banner {
  background: var(--mj-note-bg) !important;
  border-bottom-color: rgba(90, 74, 50, 0.22) !important;
  color: var(--mj-note-ink) !important;
}
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-kbd,
body.onsites-desk.desk-admin-shell .cw-home .cw-kbd {
  background: var(--mj-sunken) !important;
  border-color: var(--mj-line-hard) !important;
  color: var(--mj-ink-2) !important;
}
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-more-menu,
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-transfer-menu,
body.onsites-desk.desk-admin-shell .cw-more-menu,
body.onsites-desk.desk-admin-shell .cw-transfer-menu {
  background: var(--mj-surface) !important;
  border: 1px solid var(--mj-line-hard) !important;
  color: var(--mj-ink) !important;
  box-shadow: 0 12px 28px rgba(15, 14, 12, 0.12) !important;
}
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-more-menu button,
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-transfer-menu button,
body.onsites-desk.desk-admin-shell .cw-more-menu button,
body.onsites-desk.desk-admin-shell .cw-transfer-menu button {
  color: var(--mj-ink-2) !important;
}
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-more-menu button:hover,
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-transfer-menu button:hover,
body.onsites-desk.desk-admin-shell .cw-more-menu button:hover,
body.onsites-desk.desk-admin-shell .cw-transfer-menu button:hover {
  background: var(--mj-hover) !important;
  color: var(--mj-ink) !important;
}

/* Canned replies picker (fixed overlay) */
body.onsites-desk.desk-admin-shell .cw-canned-picker {
  background: var(--mj-surface) !important;
  border: 1px solid var(--mj-line-hard) !important;
  color: var(--mj-ink) !important;
  box-shadow: 0 18px 44px rgba(15, 14, 12, 0.14) !important;
}
body.onsites-desk.desk-admin-shell .cw-canned-picker-head {
  background: var(--mj-sunken) !important;
  border-bottom: 1px solid var(--mj-line) !important;
}
body.onsites-desk.desk-admin-shell .cw-canned-path,
body.onsites-desk.desk-admin-shell .cw-canned-path-leaf {
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell .cw-canned-path-root,
body.onsites-desk.desk-admin-shell .cw-canned-path-sep {
  color: var(--mj-ink-3) !important;
}
body.onsites-desk.desk-admin-shell .cw-canned-picker-head a,
body.onsites-desk.desk-admin-shell .cw-canned-picker-title a {
  color: var(--mj-stone-deep) !important;
}
body.onsites-desk.desk-admin-shell .cw-canned-rail {
  background: var(--mj-sunken) !important;
  border-right: 1px solid var(--mj-line) !important;
}
body.onsites-desk.desk-admin-shell .cw-canned-rail-label,
body.onsites-desk.desk-admin-shell .cw-canned-folder-count,
body.onsites-desk.desk-admin-shell .cw-canned-cols,
body.onsites-desk.desk-admin-shell .cw-canned-meta,
body.onsites-desk.desk-admin-shell .cw-canned-sep,
body.onsites-desk.desk-admin-shell .cw-canned-b,
body.onsites-desk.desk-admin-shell .cw-canned-empty,
body.onsites-desk.desk-admin-shell .cw-canned-picker-foot {
  color: var(--mj-ink-3) !important;
}
body.onsites-desk.desk-admin-shell .cw-canned-cols {
  background: var(--mj-surface) !important;
  border-bottom: 1px solid var(--mj-line) !important;
}
body.onsites-desk.desk-admin-shell .cw-canned-folder {
  color: var(--mj-ink-2) !important;
}
body.onsites-desk.desk-admin-shell .cw-canned-folder:hover {
  background: var(--mj-hover) !important;
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell .cw-canned-folder.is-on {
  background: var(--mj-wood-soft) !important;
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell .cw-canned-folder.is-on .cw-canned-folder-count {
  color: var(--mj-wood-deep) !important;
}
body.onsites-desk.desk-admin-shell .cw-canned-folder--root .cw-canned-ico-svg,
body.onsites-desk.desk-admin-shell .cw-canned-ico-svg--file {
  color: var(--mj-stone) !important;
}
body.onsites-desk.desk-admin-shell .cw-canned-folder--private .cw-canned-ico-svg,
body.onsites-desk.desk-admin-shell .cw-canned-ico-svg {
  color: var(--mj-wood) !important;
}
body.onsites-desk.desk-admin-shell .cw-canned-row {
  color: var(--mj-ink-2) !important;
  border-bottom-color: var(--mj-line) !important;
}
body.onsites-desk.desk-admin-shell .cw-canned-row:hover,
body.onsites-desk.desk-admin-shell .cw-canned-row.is-active {
  background: var(--mj-wood-soft) !important;
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell .cw-canned-name,
body.onsites-desk.desk-admin-shell .cw-canned-t,
body.onsites-desk.desk-admin-shell .cw-canned-b--solo {
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell .cw-canned-picker-foot {
  border-top: 1px solid var(--mj-line) !important;
  background: var(--mj-surface) !important;
}
body.onsites-desk.desk-admin-shell .cw-canned-picker-foot kbd {
  background: var(--mj-sunken) !important;
  border: 1px solid var(--mj-line-hard) !important;
  color: var(--mj-ink-2) !important;
}

/* Mention + emoji pickers */
body.onsites-desk.desk-admin-shell .cw-mention-picker,
body.onsites-desk.desk-admin-shell .cw-emoji-picker,
body.onsites-desk.desk-admin-shell .cw-emoji-picker {
  background: var(--mj-surface) !important;
  border: 1px solid var(--mj-line-hard) !important;
  color: var(--mj-ink) !important;
  box-shadow: 0 14px 36px rgba(15, 14, 12, 0.12) !important;
}
body.onsites-desk.desk-admin-shell .cw-mention-picker-head {
  background: var(--mj-sunken) !important;
  border-bottom-color: var(--mj-line) !important;
  color: var(--mj-ink-2) !important;
}
body.onsites-desk.desk-admin-shell .cw-mention-empty {
  color: var(--mj-ink-3) !important;
}
body.onsites-desk.desk-admin-shell .cw-mention-item {
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell .cw-mention-item:hover,
body.onsites-desk.desk-admin-shell .cw-mention-item.is-on {
  background: var(--mj-wood-soft) !important;
}
body.onsites-desk.desk-admin-shell .cw-emoji-item:hover {
  background: var(--mj-hover) !important;
}

/* ---------- Contact / empty / misc ---------- */
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home > .cw-contact,
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home > #pane-admin > .cw-contact {
  background: var(--mj-sunken);
  border-left: 1px solid var(--mj-line);
  color: var(--mj-ink-2);
}
body.onsites-desk.desk-admin-shell .cw-empty strong {
  color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell .cw-empty span {
  color: var(--mj-ink-3);
}
body.onsites-desk.desk-admin-shell .cw-thread-head,
body.onsites-desk.desk-admin-shell .cw-list-head {
  background: transparent;
  border-bottom: 1px solid var(--mj-line);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
body.onsites-desk.desk-admin-shell .cw-avatar:not(.cw-avatar-photo) {
  background: var(--mj-wood-soft);
  color: var(--mj-wood);
}
body.onsites-desk.desk-admin-shell .cw-btn {
  border-radius: var(--mj-radius);
}
body.onsites-desk.desk-admin-shell .cw-btn:not(.cw-btn-ghost):not(.cw-btn-danger) {
  background: var(--mj-wood);
  color: #F6F1E8;
  box-shadow: none;
}
body.onsites-desk.desk-admin-shell .cw-btn:not(.cw-btn-ghost):not(.cw-btn-danger):hover {
  background: var(--mj-wood-deep);
}
body.onsites-desk.desk-admin-shell .cw-btn-ghost {
  color: var(--mj-ink-2);
  border-color: var(--mj-line-hard);
  background: transparent;
}
body.onsites-desk.desk-admin-shell .cw-btn-ghost:hover {
  background: var(--mj-hover);
  color: var(--mj-ink);
}

/* Soften heavy shadows globally in this shell */
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-post-bubble,
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-reply-box,
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-conv-card {
  box-shadow: none;
}

/* ---------- Text colors: kill leftover light-on-dark hardcodes ---------- */
body.onsites-desk.desk-admin-shell .cw-home-ws-host .cw-ws-switch-label,
body.onsites-desk.desk-admin-shell .cw-crm-ws-host .cw-ws-switch-label,
body.onsites-desk.desk-admin-shell .cw-home-section-label {
  color: var(--mj-ink-3) !important;
}

body.onsites-desk.desk-admin-shell .cw-home-nav-btn {
  color: var(--mj-ink-2);
  border-radius: 8px;
}
body.onsites-desk.desk-admin-shell .cw-home-nav-btn:hover {
  color: var(--mj-ink);
  background: rgba(15, 14, 12, 0.04);
  box-shadow: none;
}
body.onsites-desk.desk-admin-shell .cw-home-nav-btn.is-on {
  color: var(--mj-ink);
  background: var(--cw-nav-chip-bg, #ffffff);
  font-weight: 650;
  box-shadow: var(--cw-nav-chip-shadow);
}
body.onsites-desk.desk-admin-shell .cw-home-nav-btn.cw-home-nav-add {
  color: var(--mj-ink-3);
}
body.onsites-desk.desk-admin-shell .cw-home-nav-btn .badge {
  color: #F6F1E8;
  background: var(--mj-wood);
}

body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-scope.on {
  color: var(--mj-ink);
  background: var(--mj-wood-soft);
  box-shadow: inset 0 -2px 0 0 var(--mj-wood);
}
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-scope.on .cw-scope-n {
  color: var(--mj-wood-deep);
  font-weight: 700;
}

body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-reply-tab.active {
  background: var(--mj-wood-soft);
  color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-tg-username,
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-conv-box-tag,
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-conv-box-tag.is-telegram,
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-conv-card[data-channel="telegram"] .cw-conv-box-tag,
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-conv-box-tag.is-telegram-group {
  color: var(--mj-ink-2);
}
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-conv-box-tag.is-discord-dm,
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-conv-box-tag.is-discord-guild,
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-conv-card[data-channel="discord"] .cw-conv-box-tag {
  color: var(--mj-ink-2);
}
body.onsites-desk.desk-admin-shell .cw-receipt.is-read {
  color: var(--mj-stone-deep);
}
body.onsites-desk.desk-admin-shell .cw-attach {
  color: var(--mj-stone-deep);
  font-weight: 600;
}

body.onsites-desk.desk-admin-shell .cw-home .cw-list-title-row h2,
body.onsites-desk.desk-admin-shell .cw-home .cw-thread-meta .title {
  color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell .cw-home .cw-thread-meta .sub,
body.onsites-desk.desk-admin-shell .cw-home .cw-list-channel-ico {
  color: var(--mj-ink-3);
}

body.onsites-desk.desk-admin-shell .cw-home .cw-conv-card .name {
  color: var(--mj-ink-2);
}
body.onsites-desk.desk-admin-shell .cw-home .cw-conv-card .preview,
body.onsites-desk.desk-admin-shell .cw-home .cw-conv-card .time {
  color: var(--mj-ink-3);
}
body.onsites-desk.desk-admin-shell .cw-home .cw-conv-card.unread .name,
body.onsites-desk.desk-admin-shell .cw-home .cw-conv-card.unread .preview,
body.onsites-desk.desk-admin-shell .cw-home .cw-conv-card.active .name,
body.onsites-desk.desk-admin-shell .cw-home .cw-conv-card.active .preview,
body.onsites-desk.desk-admin-shell .cw-home .cw-conv-card.active .time {
  color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell .cw-home .cw-conv-card .cw-unread-pill {
  background: var(--mj-wood);
  color: #F6F1E8;
}

body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-scope {
  color: var(--mj-ink-2);
}
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-scope.on {
  color: var(--mj-ink);
  background: var(--mj-wood-soft);
  box-shadow: inset 0 -2px 0 0 var(--mj-wood);
}
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-scope-n {
  color: var(--mj-ink-3);
}
body.onsites-desk.desk-admin-shell .cw-home .cw-home-filter-btn {
  color: var(--mj-ink-2);
}

body.onsites-desk.desk-admin-shell .cw-home .cw-action {
  color: var(--mj-ink-2);
}
body.onsites-desk.desk-admin-shell .cw-home .cw-action:hover {
  color: var(--mj-ink);
}

body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-post-who,
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-post--me .cw-post-who {
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-post-meta,
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-post-time,
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-post-meta-sep {
  color: var(--mj-ink-3) !important;
}
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-typing--desk {
  color: var(--mj-ink-3);
}

body.onsites-desk.desk-admin-shell .cw-home .cw-contact-id .name,
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-contact-id .name {
  color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell .cw-home .cw-contact-id .email,
body.onsites-desk.desk-admin-shell .cw-home .cw-contact-meta,
body.onsites-desk.desk-admin-shell .cw-home .cw-contact .cw-kv .k,
body.onsites-desk.desk-admin-shell .cw-home .cw-contact-block h3,
body.onsites-desk.desk-admin-shell .cw-home .cw-contact-sec-label,
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-contact-sec-label,
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-contact-block h3 {
  color: var(--mj-ink-3);
}
body.onsites-desk.desk-admin-shell .cw-home .cw-contact .cw-kv .v,
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-contact-body {
  color: var(--mj-ink-2);
}
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-tg-username {
  color: var(--mj-ink-2);
  font-weight: 650;
}
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-conv-box-tag,
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-conv-box-tag.is-telegram,
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-conv-card[data-channel="telegram"] .cw-conv-box-tag,
body.onsites-desk.desk-admin-shell.cw-home-page .cw-workspace.cw-home .cw-conv-box-tag.is-telegram-group {
  color: var(--mj-ink-2);
}

/* Offline leave chips were white-on-dark */
body.onsites-desk.desk-admin-shell .cw-home .cw-leave-meta-chip {
  background: var(--mj-hover);
  color: var(--mj-ink-2);
}
body.onsites-desk.desk-admin-shell .cw-home .cw-leave-card .cw-leave-avatar {
  color: var(--mj-note-ink);
  background: var(--mj-note-bg);
}

/* Status / assign pills that still use admin light-blue copy */
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-status-pill {
  color: var(--mj-live);
  background: rgba(110, 127, 97, 0.12);
  border-color: rgba(110, 127, 97, 0.28);
}
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-status-pill.is-resolved {
  color: var(--mj-ink-3);
  background: var(--mj-hover);
  border-color: var(--mj-line);
}

/* Day separators / system lines */
body.onsites-desk.desk-admin-shell .cw-day-sep span,
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-bubble-sys {
  color: var(--mj-ink-3);
}

/* Menus / dropdowns inheriting near-white --cw-text */
body.onsites-desk.desk-admin-shell .cw-more-menu,
body.onsites-desk.desk-admin-shell .cw-transfer-menu,
body.onsites-desk.desk-admin-shell .cw-box-dd-menu,
body.onsites-desk.desk-admin-shell .cw-status-dd-menu {
  background: var(--mj-surface);
  border: 1px solid var(--mj-line-hard);
  color: var(--mj-ink);
  box-shadow: none;
}
body.onsites-desk.desk-admin-shell .cw-more-menu button,
body.onsites-desk.desk-admin-shell .cw-transfer-menu button {
  color: var(--mj-ink-2);
}
body.onsites-desk.desk-admin-shell .cw-more-menu button:hover,
body.onsites-desk.desk-admin-shell .cw-transfer-menu button:hover {
  background: var(--mj-hover);
  color: var(--mj-ink);
}

/* Workspace switcher � beat admin-skin glass + injected dark v13 styles */
body.onsites-desk.desk-admin-shell .cw-ws-switch-menu,
body.onsites-desk.desk-admin-shell .cw-ws-switch-menu.cw-ws-switch-menu--v13 {
  background: var(--mj-surface) !important;
  border: 1px solid var(--mj-line-hard) !important;
  color: var(--mj-ink) !important;
  box-shadow: 0 12px 28px rgba(15, 14, 12, 0.12) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.onsites-desk.desk-admin-shell .cw-ws-switch-list,
body.onsites-desk.desk-admin-shell .cw-ws-switch-foot {
  color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell .cw-ws-switch-foot {
  border-top: 1px solid var(--mj-line) !important;
}
body.onsites-desk.desk-admin-shell .cw-ws-switch-item,
body.onsites-desk.desk-admin-shell .cw-ws-switch-action {
  color: var(--mj-ink-2) !important;
  background: transparent !important;
}
body.onsites-desk.desk-admin-shell .cw-ws-switch-item-name {
  color: inherit !important;
}
body.onsites-desk.desk-admin-shell .cw-ws-switch-item:hover,
body.onsites-desk.desk-admin-shell .cw-ws-switch-action:hover {
  background: var(--mj-hover) !important;
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell .cw-ws-switch-item.on {
  color: var(--mj-ink) !important;
  background: var(--mj-wood-soft) !important;
}
body.onsites-desk.desk-admin-shell .cw-ws-check {
  color: var(--mj-wood-deep) !important;
}
body.onsites-desk.desk-admin-shell .cw-ws-switch-action {
  color: var(--mj-ink-3) !important;
}
body.onsites-desk.desk-admin-shell .cw-ws-switch-action:hover {
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell .cw-ws-switch-action.danger {
  color: var(--mj-danger) !important;
}
body.onsites-desk.desk-admin-shell .cw-ws-switch-action.danger:hover {
  background: var(--mj-danger-soft) !important;
  color: var(--mj-danger) !important;
}
body.onsites-desk.desk-admin-shell .cw-ws-switch-label {
  color: var(--mj-ink-3) !important;
}
body.onsites-desk.desk-admin-shell .cw-ws-switch-btn {
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell .cw-ws-switch-btn:hover,
body.onsites-desk.desk-admin-shell .cw-ws-switch-btn[aria-expanded='true'] {
  background: var(--mj-hover) !important;
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell .cw-ws-switch-name {
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell .cw-ws-chev {
  color: var(--mj-ink-3);
  opacity: 0.7;
}

/* Receipts / links inside bubbles */
body.onsites-desk.desk-admin-shell .cw-receipt {
  color: var(--mj-ink-3);
}
body.onsites-desk.desk-admin-shell .cw-receipt.is-read {
  color: var(--mj-stone-deep);
}
body.onsites-desk.desk-admin-shell .cw-attach {
  color: var(--mj-stone-deep);
  font-weight: 600;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-nav-btn.is-on {
  background: var(--cw-nav-chip-bg, #ffffff);
  color: var(--mj-ink);
  font-weight: 650;
  box-shadow: var(--cw-nav-chip-shadow);
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-nav-btn.is-on .ico {
  color: var(--mj-ink);
}

/* ---------- CRM: flat Excel sheet + sidebar + ink text ---------- */
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-workspace.cw-home,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-workspace.cw-home > #pane-crm,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-crm-pane,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-crm,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-crm--espo,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-stage,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-body {
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  clip-path: none !important;
  mask-image: none !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-crm-pane,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-crm--espo {
  --espo-accent: var(--mj-wood);
  --espo-accent-soft: var(--mj-wood-soft);
  --espo-accent-text: var(--mj-stone-deep);
  --espo-text: var(--mj-ink);
  --espo-muted: var(--mj-ink-2);
  --espo-faint: var(--mj-ink-3);
  --espo-border: var(--mj-line);
  --espo-border-strong: var(--mj-line-hard);
  --espo-surface: var(--mj-surface);
  --espo-surface-2: var(--mj-sunken);
  --espo-hover: var(--mj-hover);
  --espo-active: var(--mj-wood-soft);
  --espo-list-bg: var(--mj-surface);
  --espo-thread-bg: var(--mj-canvas);
  display: flex !important;
  flex-direction: row;
  align-items: stretch;
  min-height: 0;
  height: 100%;
  width: 100%;
  background: var(--mj-surface);
  color: var(--mj-ink);
  color-scheme: light;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-crm-sidebar {
  display: flex !important;
  flex-direction: column;
  width: 248px;
  min-width: 248px;
  max-width: 248px;
  background: var(--mj-sidebar);
  border-right: 1px solid var(--mj-line);
  color: var(--mj-ink-2);
  position: relative;
  z-index: 4;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-crm--espo.is-nav-collapsed .cw-crm-sidebar {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  border-right: 0 !important;
  opacity: 0;
  pointer-events: none;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-crm-sidebar-head {
  border-bottom: 1px solid var(--mj-line);
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-nav-group {
  color: var(--mj-ink-3) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-nav-btn {
  color: var(--mj-ink-2) !important;
  border-radius: var(--mj-radius);
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-nav-btn:hover {
  background: var(--mj-hover);
  color: var(--mj-ink) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-nav-btn.is-on {
  background: var(--cw-nav-chip-bg, #ffffff) !important;
  color: var(--mj-ink) !important;
  font-weight: 650;
  box-shadow: var(--cw-nav-chip-shadow) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-nav-btn.is-on .ico {
  color: var(--mj-ink) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-nav-btn.is-muted {
  color: var(--mj-ink-3) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-crm-pane,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-crm--espo,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-stage {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-height: 100% !important;
  height: 100%;
  overflow: hidden !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-stage {
  background: var(--mj-surface);
  color: var(--mj-ink);
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-stage,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index {
  width: 100%;
  height: 100%;
  background: var(--mj-surface);
  color: var(--mj-ink);
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-body {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  overflow-x: auto !important;
  overflow-y: auto !important;
  scrollbar-gutter: stable;
  scrollbar-color: rgba(51, 48, 43, 0.28) transparent;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-body::-webkit-scrollbar-thumb {
  background: rgba(51, 48, 43, 0.22);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-body::-webkit-scrollbar-thumb:hover {
  background: rgba(51, 48, 43, 0.38);
  background-clip: padding-box;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table--sheet {
  /* Match sheet grid: width comes from JS col sum � never max-content. */
  min-width: 0;
  max-width: none;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-head {
  background: var(--mj-surface);
  border-bottom: 1px solid var(--mj-line);
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-nav-toggle {
  border-color: var(--mj-line-hard);
  color: var(--mj-ink-2);
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-nav-toggle:hover {
  background: var(--mj-hover);
  color: var(--mj-ink);
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-sheet-title,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-head h1 {
  color: var(--mj-ink) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-count {
  color: var(--mj-ink-3) !important;
}

/* Beat hardcoded light/white text in crm-espo-preview.css */
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cell-main,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-field,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-num,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-stream-text,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-empty strong,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-th,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-td,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-side-v,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table td,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table tbody tr.is-active .cw-espo-cell-main,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-record,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-detail-title,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-tab,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-toolbar,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-toolbar button,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-filter,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-search input,
body.onsites-desk.desk-admin-shell.desk-pane-crm input,
body.onsites-desk.desk-admin-shell.desk-pane-crm textarea,
body.onsites-desk.desk-admin-shell.desk-pane-crm select {
  color: var(--mj-ink) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-muted,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-control-label,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-stream-meta,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-empty,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-placeholder,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-side-k,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-search input::placeholder,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table th,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table--sheet th.cw-espo-th {
  color: var(--mj-ink-3) !important;
}

/* Paper / Excel sheet � white grid, no zone color washes */
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table--sheet {
  background: var(--mj-surface) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table th,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table--sheet th.cw-espo-th {
  background: var(--mj-sunken) !important;
  border-color: rgba(90, 74, 50, 0.22) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table td,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table--sheet td {
  background: var(--mj-surface) !important;
  border-color: rgba(90, 74, 50, 0.22) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table--sheet th.cw-espo-th,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table--sheet td {
  border-right: 1px solid rgba(90, 74, 50, 0.22) !important;
  border-bottom: 1px solid rgba(90, 74, 50, 0.22) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table--sheet thead th.cw-espo-th {
  border-bottom: 2px solid rgba(70, 58, 42, 0.38) !important;
  border-top: 1px solid rgba(90, 74, 50, 0.22) !important;
}

/* Sheet column footers (Count / Sum�) � keep numbers visible on light grid */
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table--sheet tfoot .cw-espo-footer-row td,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table--sheet tfoot .cw-espo-col--sticky,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table--sheet tfoot td[data-col-key="name"] {
  background: var(--mj-sunken) !important;
  border-top: 1px solid rgba(70, 58, 42, 0.28) !important;
  border-color: rgba(90, 74, 50, 0.22) !important;
  color: var(--mj-ink-2) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-footer-val {
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-td-footer.is-empty .cw-espo-footer-val {
  color: var(--mj-ink-3) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-footer-agg {
  color: var(--mj-ink-3) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-footer-agg:hover,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-footer-agg:focus {
  color: var(--mj-ink) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table--sheet td[data-sheet-edit="1"]:hover {
  background: var(--mj-hover) !important;
  outline-color: rgba(90, 74, 50, 0.35);
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table--sheet td[data-sheet-edit="1"].is-editing {
  background: var(--mj-surface) !important;
  outline-color: var(--mj-wood);
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-sheet-edit-input,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-sheet-edit-ms {
  background: var(--mj-surface) !important;
  border-color: var(--mj-wood) !important;
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table--sheet th.cw-espo-th:first-child,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table--sheet td:first-child {
  border-left: 1px solid rgba(90, 74, 50, 0.22) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table tbody tr:hover td {
  background: var(--mj-hover) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table tbody tr.is-active td {
  background: var(--mj-wood-soft) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-a,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-linkish {
  color: var(--mj-stone-deep) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-a:hover,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-linkish:hover {
  color: var(--mj-ink) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-add-col {
  border-color: var(--mj-line-hard) !important;
  color: var(--mj-ink-3) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-add-col:hover {
  color: var(--mj-ink) !important;
  border-color: var(--mj-wood) !important;
  background: var(--mj-wood-soft) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-col-menu {
  background: var(--mj-surface) !important;
  border-color: var(--mj-line-hard) !important;
  box-shadow: 0 8px 24px rgba(15, 14, 12, 0.12) !important;
  color: var(--mj-ink);
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-col-menu button {
  color: var(--mj-ink) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-col-menu button:hover {
  background: var(--mj-hover) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-col-menu button.is-danger:hover {
  color: var(--mj-danger) !important;
  background: var(--mj-danger-soft) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-toast {
  background: var(--mj-surface) !important;
  border-color: var(--mj-line-hard) !important;
  color: var(--mj-ink) !important;
  box-shadow: 0 8px 24px rgba(15, 14, 12, 0.14) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-banner {
  color: var(--mj-note-ink) !important;
  background: var(--mj-note-bg) !important;
  border-color: rgba(90, 74, 50, 0.28) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-status--open {
  color: var(--mj-danger) !important;
  background: var(--mj-danger-soft) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-status--pending,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-stage--SCREENING {
  color: #7A6220 !important;
  background: rgba(154, 122, 40, 0.14) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-status--closed {
  color: var(--mj-ink-3) !important;
  background: var(--mj-sunken) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-table th,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-th {
  background: var(--mj-sunken) !important;
  color: var(--mj-ink-3) !important;
  border-color: var(--mj-line) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-table td,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-td {
  border-color: var(--mj-line) !important;
  color: var(--mj-ink) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-row:hover,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-tr:hover {
  background: var(--mj-hover) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-row.is-on,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-tr.is-on {
  background: var(--mj-wood-soft) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-search,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-search input,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-input,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-textarea {
  background: var(--mj-surface) !important;
  border-color: var(--mj-line-hard) !important;
  color: var(--mj-ink) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-btn {
  background: var(--mj-wood) !important;
  color: #F6F1E8 !important;
  border-color: var(--mj-wood-deep) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-btn-ghost {
  background: var(--mj-surface) !important;
  color: var(--mj-ink-2) !important;
  border-color: var(--mj-line-hard) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-header-title,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-page-header,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-detail-head {
  color: var(--mj-ink) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-btn {
  background: var(--mj-surface) !important;
  border-color: var(--mj-line-hard) !important;
  color: var(--mj-ink-2) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-btn:hover:not(:disabled) {
  background: var(--mj-hover) !important;
  color: var(--mj-ink) !important;
  border-color: var(--mj-line-hard) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-btn--primary {
  background: var(--mj-wood) !important;
  border-color: var(--mj-wood-deep) !important;
  color: #F6F1E8 !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-btn--primary:hover:not(:disabled) {
  background: var(--mj-wood-deep) !important;
  color: #F6F1E8 !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-btn--text {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--mj-stone-deep) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-btn--text:hover:not(:disabled) {
  color: var(--mj-ink) !important;
  background: var(--mj-hover) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-tab.is-on {
  color: var(--mj-ink) !important;
  box-shadow: inset 0 -2px 0 0 var(--mj-wood);
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-record {
  background: var(--mj-canvas) !important;
  border-color: var(--mj-line-hard) !important;
  color: var(--mj-ink) !important;
  width: var(--espo-detail-w, 380px) !important;
  min-width: var(--espo-detail-w, 380px) !important;
  max-width: var(--espo-detail-w, 380px) !important;
  box-shadow: -8px 0 28px rgba(15, 14, 12, 0.1) !important;
  overflow: hidden !important;
  flex-direction: column !important;
  min-height: 0 !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-stage.is-detail-open .cw-espo-record {
  display: flex !important;
}

/* Edit / Overview form must scroll inside the drawer */
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-record-grid,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-record-left {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-middle {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-color: rgba(51, 48, 43, 0.28) transparent;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-middle::-webkit-scrollbar-thumb {
  background: rgba(51, 48, 43, 0.22);
  border-radius: 999px;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-detail-resizer {
  background: var(--mj-line-hard) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-detail-resizer:hover,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-detail-resizer.is-dragging {
  background: var(--mj-wood) !important;
}

/* Detail drawer � kill dark-theme hardcoded light text / dark washes */
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-page-header {
  background: var(--mj-surface) !important;
  border-bottom-color: var(--mj-line) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-entity-type {
  color: var(--mj-wood-deep) !important;
  opacity: 1 !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-header-title,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-detail-title,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-record-empty strong,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-side-panel-heading,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-subpanel-title,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-side-v,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-field,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-stream-text,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-list-table td {
  color: var(--mj-ink) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-record-empty {
  background: var(--mj-surface) !important;
  border-color: var(--mj-line-hard) !important;
  color: var(--mj-ink-2) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-control-label,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-side-k,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-middle-panel-heading,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-side-note,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-side-empty,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-side-meta,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-hint,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-stream-meta,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-list-empty td,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-list-table th {
  color: var(--mj-ink-2) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-placeholder {
  color: var(--mj-ink-3) !important;
  opacity: 0.85;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-middle-panel,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-side-panel,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-side-compact,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-bottom,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-subpanel {
  background: var(--mj-surface) !important;
  border-color: var(--mj-line) !important;
  box-shadow: none !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-middle-panel-heading,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-side-panel-heading,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-subpanel-heading {
  background: var(--mj-sunken) !important;
  border-bottom-color: var(--mj-line) !important;
  color: var(--mj-ink-2) !important;
}

/* Overview property list (Twenty-like) */
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-middle-panel--props {
  background: transparent !important;
  border: 0 !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-middle-panel--props .cw-espo-middle-panel-heading {
  background: transparent !important;
  border: 0 !important;
  color: var(--mj-ink-3) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-props {
  background: var(--mj-surface) !important;
  border-color: var(--mj-line-hard) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-prop {
  border-bottom-color: var(--mj-line) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-prop-k {
  color: var(--mj-ink-2) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-prop-v {
  color: var(--mj-ink) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-prop-meta {
  background: var(--mj-sunken) !important;
  border-top-color: var(--mj-line) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-prop.is-meta .cw-espo-prop-k,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-prop.is-meta .cw-espo-prop-v {
  color: var(--mj-ink-3) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-bottom {
  border-top-color: var(--mj-line-hard) !important;
  background: var(--mj-surface) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-side-panel--warning .cw-espo-side-panel-heading {
  background: var(--mj-note-bg) !important;
  color: var(--mj-note-ink) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-side-panel--success .cw-espo-side-panel-heading {
  background: var(--mj-live-soft) !important;
  color: var(--mj-live) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cell,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-side-row,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-side-list li,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-list-table td {
  border-color: var(--mj-line) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-bottom-tabs {
  background: var(--mj-sunken) !important;
  border-bottom-color: var(--mj-line) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-tab-btn {
  color: var(--mj-ink-2) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-tab-btn:hover {
  color: var(--mj-ink) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-tab-btn.is-on {
  color: var(--mj-ink) !important;
  border-bottom-color: var(--mj-wood) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-list-table th {
  background: var(--mj-sunken) !important;
  border-bottom-color: var(--mj-line) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-list-table tr:hover td {
  background: var(--mj-hover) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-stream-compose textarea {
  background: var(--mj-surface) !important;
  border-color: var(--mj-line-hard) !important;
  color: var(--mj-ink) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-stream-compose textarea:focus {
  border-color: var(--mj-wood) !important;
  box-shadow: 0 0 0 3px var(--mj-wood-soft) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-stream-item {
  border-top-color: var(--mj-line) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-btn--default {
  background: var(--mj-surface) !important;
  border-color: var(--mj-stone-mid) !important;
  color: var(--mj-stone-deep) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-a:hover,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-linkish:hover {
  color: var(--mj-wood-deep) !important;
}

/* Stage / status / channel chips � readable on paper */
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-stage--NEW {
  color: #2A5A7A !important;
  background: rgba(63, 126, 176, 0.14) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-stage--SCREENING {
  color: #7A6220 !important;
  background: rgba(154, 122, 40, 0.14) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-stage--MEETING {
  color: #2A6B52 !important;
  background: rgba(15, 159, 122, 0.14) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-stage--PROPOSAL {
  color: #5A4580 !important;
  background: rgba(122, 92, 214, 0.12) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-stage--CUSTOMER {
  color: var(--mj-live) !important;
  background: var(--mj-live-soft) !important;
}

/* Relation tokens (Account / Opportunity / People) � text links, not pills */
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-rel-chip {
  border: 0 !important;
  background: transparent !important;
  color: var(--mj-stone-deep, var(--mj-ink)) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-rel-chip:hover {
  background: var(--mj-hover, rgba(107, 90, 70, 0.1)) !important;
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-rel-chip.is-empty,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-rel-empty {
  color: var(--mj-ink-3) !important;
  background: transparent !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-actor-chip {
  color: var(--mj-ink-2, var(--mj-ink)) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-rel-more {
  color: var(--mj-ink-3) !important;
  background: transparent !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-rel-more:hover {
  color: var(--mj-ink) !important;
  background: var(--mj-hover, rgba(107, 90, 70, 0.1)) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-rel-overflow {
  border-color: var(--mj-line, rgba(107, 90, 70, 0.2)) !important;
  background: var(--mj-paper, #fff) !important;
  box-shadow: 0 10px 28px rgba(40, 32, 24, 0.12) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-rel-overflow-item:hover,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-rel-overflow-all:hover {
  background: var(--mj-hover, rgba(107, 90, 70, 0.08)) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-rel-overflow-all {
  color: var(--mj-stone-deep, var(--mj-ink)) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-th-rel .cw-espo-th-inner {
  color: var(--mj-ink) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-meeting-status--Planned {
  color: #2A5A7A !important;
  background: rgba(63, 126, 176, 0.14) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-meeting-status--Held {
  color: #2A6B52 !important;
  background: rgba(15, 159, 122, 0.14) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-meeting-status--Not_Held {
  color: var(--mj-ink-3) !important;
  background: var(--mj-sunken) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-meeting-filters {
  border-color: var(--mj-line) !important;
  background: var(--mj-sunken) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-meeting-filter {
  color: var(--mj-ink-3) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-meeting-filter:hover {
  background: var(--mj-hover) !important;
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-meeting-filter.is-on {
  background: var(--mj-wood-soft) !important;
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-meeting-status-bar {
  border-color: var(--mj-line) !important;
  background: var(--mj-sunken) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-meeting-status-bar-label,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-meeting-attendee-group-label {
  color: var(--mj-ink-3) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-meeting-attendee {
  border-color: var(--mj-line) !important;
  background: var(--mj-paper, #fff) !important;
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-meeting-attendee em {
  color: var(--mj-ink-3) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-call-direction--Outbound {
  color: #8A4F12 !important;
  background: rgba(194, 122, 40, 0.16) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-call-direction--Inbound {
  color: #2A5A7A !important;
  background: rgba(63, 126, 176, 0.14) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-task-status--Not_Started {
  color: #2A5A7A !important;
  background: rgba(63, 126, 176, 0.14) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-task-status--Started {
  color: #8A4F12 !important;
  background: rgba(194, 122, 40, 0.16) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-task-status--Completed {
  color: #2A6B52 !important;
  background: rgba(15, 159, 122, 0.14) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-task-status--Canceled,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-task-status--Deferred {
  color: var(--mj-ink-3) !important;
  background: var(--mj-sunken) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-task-priority--Low {
  color: var(--mj-ink-3) !important;
  background: var(--mj-sunken) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-task-priority--Normal {
  color: #2A5A7A !important;
  background: rgba(63, 126, 176, 0.14) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-task-priority--High {
  color: #8A4F12 !important;
  background: rgba(194, 122, 40, 0.16) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-task-priority--Urgent {
  color: #9A3B2E !important;
  background: rgba(200, 70, 50, 0.14) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-calendar {
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--mj-paper, #fff) !important;
  box-shadow: none !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index.is-calendar-mode .cw-espo-index-head {
  position: absolute !important;
  top: 8px !important;
  left: 10px !important;
  z-index: 8 !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  border: 0 !important;
  background: transparent !important;
  pointer-events: none !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index.is-calendar-mode .cw-espo-nav-toggle {
  pointer-events: auto !important;
  background: var(--mj-paper, #fff) !important;
  border-color: var(--mj-line-hard) !important;
  box-shadow: 0 1px 3px rgba(45, 42, 38, 0.1) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-body.is-calendar {
  padding: 0 !important;
  scrollbar-gutter: auto !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-toolbar {
  border-color: var(--mj-line) !important;
  background: linear-gradient(180deg, var(--mj-sunken), var(--mj-paper)) !important;
  padding-left: 48px !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-allday,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-allday-gutter,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-allday-col {
  border-color: var(--mj-line) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-allday {
  background: var(--mj-sunken) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-allday-col.is-today {
  background-color: var(--mj-wood-soft) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-allday-gutter {
  color: var(--mj-ink-3) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-nav,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-seg {
  background: var(--mj-paper, #fff) !important;
  border-color: var(--mj-line) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-iconbtn,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-todaybtn {
  color: var(--mj-ink-2) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-iconbtn:hover,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-todaybtn:hover {
  background: var(--mj-hover) !important;
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-seg-btn {
  color: var(--mj-ink-3) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-seg-btn:hover {
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-seg-btn.is-on {
  background: var(--mj-wood-soft) !important;
  color: var(--mj-stone-deep) !important;
  box-shadow: none !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-hours {
  background: var(--mj-paper, #fff) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-head,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-month-wd {
  background: var(--mj-sunken) !important;
  border-color: var(--mj-line) !important;
  color: var(--mj-ink-2) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-head-gutter,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-allday-gutter,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-hours {
  width: var(--cal-gutter, 56px) !important;
  min-width: var(--cal-gutter, 56px) !important;
  max-width: var(--cal-gutter, 56px) !important;
  box-sizing: border-box !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-scrollpad {
  width: var(--cal-scroll-slot, 14px) !important;
  min-width: var(--cal-scroll-slot, 14px) !important;
  max-width: var(--cal-scroll-slot, 14px) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-head-num {
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-head-day.is-today .cw-espo-cal-head-num,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-month-cell.is-today .cw-espo-cal-month-date span {
  background: var(--mj-wood) !important;
  color: #fff !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-period-kicker {
  color: var(--mj-ink-3) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-period.is-current .cw-espo-cal-period-kicker {
  color: var(--mj-stone-deep) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-period-title {
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-todaybtn.is-on {
  background: var(--mj-wood-soft) !important;
  color: var(--mj-stone-deep) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-hour {
  color: var(--mj-ink-3) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-daycol,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-month-cell,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-head-day {
  border-color: var(--mj-line) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-daycol {
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(var(--cal-hour-h, 48px) / 2 - 1px),
      rgba(45, 42, 38, 0.05) calc(var(--cal-hour-h, 48px) / 2 - 1px),
      rgba(45, 42, 38, 0.05) calc(var(--cal-hour-h, 48px) / 2),
      transparent calc(var(--cal-hour-h, 48px) / 2),
      transparent calc(var(--cal-hour-h, 48px) - 1px),
      var(--mj-line) calc(var(--cal-hour-h, 48px) - 1px),
      var(--mj-line) var(--cal-hour-h, 48px)
    ) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-daycol.is-today,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-month-cell.is-today {
  background-color: var(--mj-wood-soft) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-month-cell.is-out {
  background: rgba(45, 42, 38, 0.03) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-now {
  border-top-color: #c45c4a !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-now i {
  background: #c45c4a !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-event {
  box-shadow: inset 0 0 0 1px rgba(45, 42, 38, 0.06) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-event:hover {
  box-shadow: inset 0 0 0 1px rgba(45, 42, 38, 0.12), 0 2px 8px rgba(45, 42, 38, 0.08) !important;
  filter: none !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-event--meetings,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-month-event.cw-espo-cal-event--meetings {
  background: rgba(63, 126, 176, 0.14) !important;
  border-left-color: #3F7EB0 !important;
  color: #2A5478 !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-event--calls,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-month-event.cw-espo-cal-event--calls {
  background: rgba(194, 122, 40, 0.14) !important;
  border-left-color: #C27A28 !important;
  color: #7A4A12 !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-event--tasks,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-month-event.cw-espo-cal-event--tasks {
  background: rgba(42, 143, 106, 0.14) !important;
  border-left-color: #2A8F6A !important;
  color: #1B5E45 !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-legend-item.cw-espo-cal-event--meetings {
  color: #3F7EB0 !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-legend-item.cw-espo-cal-event--calls {
  color: #C27A28 !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-legend-item.cw-espo-cal-event--tasks {
  color: #2A8F6A !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-cal-month-more {
  color: var(--mj-ink-3) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-channel--telegram {
  color: #2A5A7A !important;
  background: rgba(40, 120, 180, 0.12) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-channel--email {
  color: #7A6220 !important;
  background: rgba(160, 120, 40, 0.12) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-channel--web {
  color: #2A6B52 !important;
  background: rgba(15, 140, 110, 0.12) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-channel--wecom {
  color: #2A5A7A !important;
  background: rgba(30, 100, 160, 0.12) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table--sheet .cw-espo-col--sticky {
  background: var(--mj-surface) !important;
  box-shadow: 1px 0 0 0 rgba(90, 74, 50, 0.22) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table--sheet thead .cw-espo-col--sticky {
  background: var(--mj-sunken) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table tbody tr:hover .cw-espo-col--sticky {
  background: var(--mj-hover) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table tbody tr.is-active .cw-espo-col--sticky {
  background: var(--mj-wood-soft) !important;
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-modal,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-col-modal .cw-espo-col-dialog,
body.onsites-desk.desk-admin-shell.desk-pane-crm [class*="cw-espo-"][class*="dialog"],
body.onsites-desk.desk-admin-shell.desk-pane-crm [class*="cw-espo-"][class*="panel"] {
  color: var(--mj-ink);
}

body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-col-modal > div,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-col-dialog {
  background: var(--mj-surface) !important;
  border-color: var(--mj-line-hard) !important;
  color: var(--mj-ink) !important;
}

/* Twenty-style add-column popover (MUJI) */
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-col-popover {
  background: var(--mj-surface) !important;
  border-color: var(--mj-line-hard) !important;
  color: var(--mj-ink) !important;
  box-shadow: 0 12px 32px rgba(40, 32, 24, 0.14) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-col-pop-title {
  color: var(--mj-ink-3) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-col-pop-back {
  color: var(--mj-ink-2) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-col-pop-back:hover {
  background: var(--mj-wood-soft) !important;
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-col-pop-type:hover {
  background: var(--mj-wood-soft) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-col-pop-type-text strong {
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-col-pop-type-text em,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-col-pop-chev,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-col-pop-ico {
  color: var(--mj-ink-3) !important;
  opacity: 1;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-col-pop-label {
  color: var(--mj-ink-2) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-col-pop-input,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-col-pop-textarea {
  background: var(--mj-canvas) !important;
  border-color: var(--mj-line-hard) !important;
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-col-pop-err {
  background: rgba(180, 70, 50, 0.08) !important;
  border-color: rgba(180, 70, 50, 0.28) !important;
  color: var(--mj-danger, #a04030) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-col-pop-check,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-col-check {
  color: var(--mj-ink-2) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-col-pop-ico-label,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-col-ico-label {
  color: var(--mj-ink-2) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-col-pop-ico-select,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-col-ico-select {
  background: var(--mj-canvas) !important;
  border-color: var(--mj-line-hard) !important;
  color: var(--mj-ink) !important;
}

/* ---------- Dashboard � override more-skin dark pass ---------- */
body.onsites-desk.desk-admin-shell .cw-dash,
body.onsites-desk.desk-admin-shell.has-cw-rail .cw-dash {
  --dash-line: var(--mj-line);
  --dash-line-strong: var(--mj-line-hard);
  --dash-ink: var(--mj-ink);
  --dash-muted: var(--mj-ink-2);
  --dash-soft: var(--mj-ink-3);
  --dash-paper: var(--mj-canvas);
  --dash-accent: var(--mj-wood);
  --dash-warn: var(--mj-danger);
  --dash-live: var(--mj-live);
  --dash-glass: var(--mj-surface);
  --dash-glass-strong: var(--mj-surface);
  --dash-glass-edge: var(--mj-line);
  --cw-text: var(--mj-ink);
  --cw-text-2: var(--mj-ink-2);
  --cw-text-3: var(--mj-ink-3);
  --cw-hairline: var(--mj-line);
  --cw-border: var(--mj-line);
  --cw-border-strong: var(--mj-line-hard);
  --cw-elev-1: var(--mj-surface);
  --cw-elev-2: var(--mj-sunken);
  --cw-surface-1: var(--mj-surface);
  --cw-surface-2: var(--mj-sunken);
  --admin-accent: var(--mj-wood);
  --admin-glow: var(--mj-wood-deep);
  --admin-live: var(--mj-live);
  color-scheme: light;
  background: var(--mj-canvas);
  color: var(--mj-ink);
  border-color: var(--mj-line);
}

body.onsites-desk.desk-admin-shell .cw-dash-head,
body.onsites-desk.desk-admin-shell .cw-dash-live,
body.onsites-desk.desk-admin-shell .cw-dash-work,
body.onsites-desk.desk-admin-shell .cw-dash-insights {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.onsites-desk.desk-admin-shell .cw-dash-head {
  background: var(--mj-surface);
  border-bottom: 1px solid var(--mj-line);
  box-shadow: none;
}
body.onsites-desk.desk-admin-shell .cw-dash-kpi,
body.onsites-desk.desk-admin-shell .cw-dash-panel {
  background: var(--mj-surface);
  border-color: var(--mj-line);
}
body.onsites-desk.desk-admin-shell .cw-dash-kpi.is-hot > strong {
  color: var(--mj-danger);
}
body.onsites-desk.desk-admin-shell .cw-dash-card {
  background: var(--dash-paper, #F0EFEB);
  border: 0;
}
body.onsites-desk.desk-admin-shell .cw-dash-hero.is-hot strong,
body.onsites-desk.desk-admin-shell .cw-dash-shift-row.is-hot strong,
body.onsites-desk.desk-admin-shell .cw-dash-shift-row.is-hot span {
  color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell .cw-dash-dot {
  background: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell .cw-dash-pipe,
body.onsites-desk.desk-admin-shell .cw-dash-shift,
body.onsites-desk.desk-admin-shell .cw-dash-shift-label {
  border-color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell .cw-dash-head h1 {
  color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell .cw-dash-head .muted,
body.onsites-desk.desk-admin-shell .cw-dash .cw-list-eyebrow {
  color: var(--mj-ink-3);
}

body.onsites-desk.desk-admin-shell .cw-dash-refresh {
  border-color: var(--mj-line-hard) !important;
  background: var(--mj-surface) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: var(--mj-ink-2);
}
body.onsites-desk.desk-admin-shell .cw-dash-refresh svg {
  color: var(--mj-ink-3);
}
body.onsites-desk.desk-admin-shell .cw-dash-refresh:hover {
  background: var(--mj-hover) !important;
  color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell .cw-dash-refresh:hover svg {
  color: var(--mj-ink);
}

body.onsites-desk.desk-admin-shell .cw-dash-range button,
body.onsites-desk.desk-admin-shell .cw-dash-metric button,
body.onsites-desk.desk-admin-shell .cw-dash-geo-mode button {
  color: var(--mj-ink-3);
  background: transparent;
}
body.onsites-desk.desk-admin-shell .cw-dash-range button:hover,
body.onsites-desk.desk-admin-shell .cw-dash-metric button:hover,
body.onsites-desk.desk-admin-shell .cw-dash-geo-mode button:hover {
  color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell .cw-dash-range button.on,
body.onsites-desk.desk-admin-shell .cw-dash-metric button.on {
  color: var(--mj-ink);
  border-bottom-color: var(--mj-wood);
}
body.onsites-desk.desk-admin-shell .cw-dash-geo-mode button.on {
  color: var(--mj-stone-deep);
  border-bottom-color: var(--mj-stone);
  background: transparent;
}

body.onsites-desk.desk-admin-shell .cw-dash-live {
  background: var(--mj-surface);
  border-bottom: 1px solid var(--mj-line);
  box-shadow: none;
}
body.onsites-desk.desk-admin-shell .cw-dash-band-label {
  border-bottom-color: var(--mj-line);
}
body.onsites-desk.desk-admin-shell .cw-dash-band-label > span:first-child {
  color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell .cw-dash-band-label::after {
  background: linear-gradient(90deg, var(--mj-line-hard), transparent);
}
body.onsites-desk.desk-admin-shell .cw-dash-band-hint {
  color: var(--mj-ink-3);
}

body.onsites-desk.desk-admin-shell .cw-stat {
  background: transparent;
  border-right-color: var(--mj-line);
  box-shadow: none;
}
body.onsites-desk.desk-admin-shell .cw-stat:hover {
  background: var(--mj-hover);
}
body.onsites-desk.desk-admin-shell .cw-stat .k {
  color: var(--mj-ink-3);
}
body.onsites-desk.desk-admin-shell .cw-stat strong {
  color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell .cw-stat--warn strong {
  color: var(--mj-danger);
}
body.onsites-desk.desk-admin-shell .cw-stat--live strong {
  color: var(--mj-live);
}
body.onsites-desk.desk-admin-shell .cw-stat em {
  color: var(--mj-ink-3);
}

body.onsites-desk.desk-admin-shell .cw-dash-period {
  background: var(--mj-sunken);
  border-top: 1px solid var(--mj-line);
  box-shadow: none;
}
body.onsites-desk.desk-admin-shell .cw-dash-period-item {
  border-right-color: var(--mj-line);
  box-shadow: none;
}
body.onsites-desk.desk-admin-shell .cw-dash-period-item .k {
  color: var(--mj-ink-3);
}
body.onsites-desk.desk-admin-shell .cw-dash-period-item strong {
  color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell .cw-dash-period-item em {
  color: var(--mj-ink-3);
}

body.onsites-desk.desk-admin-shell .cw-dash-work {
  background: var(--mj-canvas);
  border-bottom: 1px solid var(--mj-line);
  box-shadow: none;
}
body.onsites-desk.desk-admin-shell .cw-dash-work > .cw-dash-panel--chart {
  border-right-color: var(--mj-line);
  box-shadow: none;
}
body.onsites-desk.desk-admin-shell .cw-dash-work > .cw-dash-panel--agents {
  background: var(--mj-canvas);
}
body.onsites-desk.desk-admin-shell .cw-dash-panel-head {
  border-bottom-color: var(--mj-line);
  box-shadow: none;
}
body.onsites-desk.desk-admin-shell .cw-dash-panel-head h2 {
  color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell .cw-dash-panel-sub {
  color: var(--mj-ink-3);
}

body.onsites-desk.desk-admin-shell .cw-dash-panel--chart .cw-dash-chart-shell,
body.onsites-desk.desk-admin-shell .cw-dash-panel--agents .cw-table-wrap {
  background: var(--mj-surface);
  border: 1px solid var(--mj-line);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.onsites-desk.desk-admin-shell .cw-dash-panel--agents .cw-dash-table thead th {
  background: var(--mj-sunken);
  color: var(--mj-ink-3);
  border-bottom-color: var(--mj-line);
}

body.onsites-desk.desk-admin-shell .cw-dash-legend {
  color: var(--mj-ink-3);
}
body.onsites-desk.desk-admin-shell .cw-dash-legend .is-created::before {
  background: var(--mj-wood);
}
body.onsites-desk.desk-admin-shell .cw-dash-legend .is-resolved::before {
  background: var(--mj-live);
}
body.onsites-desk.desk-admin-shell .cw-dash-legend .is-vmsg::before {
  background: var(--mj-ink-3);
}
body.onsites-desk.desk-admin-shell .cw-dash-legend .is-amsg::before {
  background: var(--mj-stone);
}

body.onsites-desk.desk-admin-shell .cw-dash-svg-grid {
  stroke: rgba(26, 23, 20, 0.08);
}
body.onsites-desk.desk-admin-shell .cw-dash-svg-base {
  stroke: rgba(26, 23, 20, 0.16);
}
body.onsites-desk.desk-admin-shell .cw-dash-svg-ylabel,
body.onsites-desk.desk-admin-shell .cw-dash-svg-xlabel {
  fill: var(--mj-ink-3);
}
body.onsites-desk.desk-admin-shell .cw-dash-svg-hit.is-active {
  fill: var(--mj-wood-soft);
}

body.onsites-desk.desk-admin-shell .cw-dash-tip {
  background: var(--mj-surface);
  border: 1px solid var(--mj-line-hard);
  box-shadow: 0 8px 24px rgba(26, 23, 20, 0.1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--mj-ink-2);
}
body.onsites-desk.desk-admin-shell .cw-dash-tip strong {
  color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell .cw-dash-chart-foot {
  color: var(--mj-ink-3);
}

body.onsites-desk.desk-admin-shell .cw-dash table.cw-table th {
  color: var(--mj-ink-3);
  background: var(--mj-sunken);
  border-bottom-color: var(--mj-line);
}
body.onsites-desk.desk-admin-shell .cw-dash table.cw-table td {
  color: var(--mj-ink-2);
  border-bottom-color: var(--mj-line);
  background: transparent;
}
body.onsites-desk.desk-admin-shell .cw-dash table.cw-table tr:hover td {
  background: var(--mj-hover);
  box-shadow: inset 2px 0 0 var(--mj-wood);
}
body.onsites-desk.desk-admin-shell .cw-dash-table tr.is-heavy td {
  box-shadow: inset 2px 0 0 var(--mj-danger);
}
body.onsites-desk.desk-admin-shell .cw-dash-load-track {
  background: var(--mj-sunken);
}
body.onsites-desk.desk-admin-shell .cw-dash-load-track i {
  background: var(--mj-wood);
}

body.onsites-desk.desk-admin-shell .cw-dash-insights {
  background: var(--mj-canvas);
  box-shadow: none;
}
body.onsites-desk.desk-admin-shell .cw-dash-insights > .cw-dash-band-label {
  border-top-color: var(--mj-line);
  border-bottom-color: var(--mj-line);
}
body.onsites-desk.desk-admin-shell .cw-dash-secondary {
  border-bottom-color: var(--mj-line);
}
body.onsites-desk.desk-admin-shell .cw-dash-panel {
  border-right-color: var(--mj-line);
}
body.onsites-desk.desk-admin-shell .cw-dash-split > :first-child {
  border-right-color: var(--mj-line);
}

body.onsites-desk.desk-admin-shell .cw-dash-map-shell {
  background: var(--mj-sunken);
  border: 1px solid var(--mj-line);
}
body.onsites-desk.desk-admin-shell .cw-dash-map-legend {
  color: var(--mj-ink-3);
}
body.onsites-desk.desk-admin-shell .cw-dash-map-legend-bar {
  background: linear-gradient(90deg, #E8DFD2 0%, #A89070 40%, #6B5744 72%, #5F7A72 100%);
}
body.onsites-desk.desk-admin-shell .cw-dash-map-stat {
  background: transparent;
  border: 0;
  color: var(--mj-ink-3);
}
body.onsites-desk.desk-admin-shell .cw-dash-map-stat strong {
  color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell .cw-dash-map-tip {
  background: var(--mj-surface);
  border: 1px solid var(--mj-line-hard);
  color: var(--mj-ink);
  box-shadow: 0 8px 24px rgba(26, 23, 20, 0.12);
}
body.onsites-desk.desk-admin-shell .cw-dash-map-tip-meta,
body.onsites-desk.desk-admin-shell .cw-dash-map-fallback {
  color: var(--mj-ink-3);
}
body.onsites-desk.desk-admin-shell .cw-dash-map-country {
  fill: #EBE6DE;
  stroke: #FAF8F5;
}
body.onsites-desk.desk-admin-shell .cw-dash-map-ocean {
  fill: #F5F2ED;
}

body.onsites-desk.desk-admin-shell .cw-dash-pie-slice {
  stroke: var(--mj-surface);
}
body.onsites-desk.desk-admin-shell .cw-dash-pie-hub {
  fill: var(--mj-sunken);
}
body.onsites-desk.desk-admin-shell .cw-dash-pie-hub-n {
  fill: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell .cw-dash-pie-hub-l {
  fill: var(--mj-ink-3);
}
body.onsites-desk.desk-admin-shell .cw-dash-pie-empty,
body.onsites-desk.desk-admin-shell .cw-dash-pie-empty-note {
  border-color: var(--mj-line);
  color: var(--mj-ink-3);
}
body.onsites-desk.desk-admin-shell .cw-dash-pie-item:hover,
body.onsites-desk.desk-admin-shell .cw-dash-pie-item.is-hot {
  background: var(--mj-hover);
}
body.onsites-desk.desk-admin-shell .cw-dash-pie-name {
  color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell .cw-dash-pie-line {
  color: var(--mj-ink-3);
}

body.onsites-desk.desk-admin-shell .cw-dash-bar-label {
  color: var(--mj-ink-2);
}
body.onsites-desk.desk-admin-shell .cw-dash-bar-track {
  background: var(--mj-sunken);
}
body.onsites-desk.desk-admin-shell .cw-dash-bar-fill {
  background: var(--mj-wood);
}
body.onsites-desk.desk-admin-shell .cw-dash-bar-val {
  color: var(--mj-ink-3);
}

body.onsites-desk.desk-admin-shell .cw-dash-tag {
  background: var(--mj-surface);
  border-color: var(--mj-line);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell .cw-dash-tag em {
  color: var(--mj-ink-3);
}

body.onsites-desk.desk-admin-shell .cw-dash-empty,
body.onsites-desk.desk-admin-shell .cw-dash-empty-cell,
body.onsites-desk.desk-admin-shell .cw-dash-empty-card {
  color: var(--mj-ink-3);
}
body.onsites-desk.desk-admin-shell .cw-dash-empty-card strong {
  color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell .cw-dash-updated {
  color: var(--mj-ink-3);
}
body.onsites-desk.desk-admin-shell .cw-dash-link {
  color: var(--mj-stone-deep);
}
body.onsites-desk.desk-admin-shell .cw-dash-link:hover {
  color: var(--mj-ink);
}

body.onsites-desk.desk-admin-shell .cw-dash .cw-btn {
  background: var(--mj-wood);
  color: #F6F1E8;
  box-shadow: none;
}
body.onsites-desk.desk-admin-shell .cw-dash .cw-btn:hover {
  background: var(--mj-wood-deep);
}
body.onsites-desk.desk-admin-shell .cw-dash .cw-btn-ghost {
  background: var(--mj-surface);
  color: var(--mj-ink-2);
  border-color: var(--mj-line-hard);
}
body.onsites-desk.desk-admin-shell .cw-dash .cw-btn-ghost:hover {
  background: var(--mj-hover);
  color: var(--mj-ink);
  border-color: var(--mj-line-hard);
}

body.onsites-desk.desk-admin-shell .cw-dash ::-webkit-scrollbar-thumb {
  background: rgba(51, 48, 43, 0.16);
}
body.onsites-desk.desk-admin-shell .cw-dash ::-webkit-scrollbar-thumb:hover {
  background: rgba(51, 48, 43, 0.28);
}

/* ---------- Requests � override more-skin dark pass ---------- */
body.onsites-desk.desk-admin-shell .cw-requests,
body.onsites-desk.desk-admin-shell.has-cw-rail .cw-requests {
  --cw-text: var(--mj-ink);
  --cw-text-2: var(--mj-ink-2);
  --cw-text-3: var(--mj-ink-3);
  --cw-hairline: var(--mj-line);
  --cw-border: var(--mj-line);
  --cw-border-strong: var(--mj-line-hard);
  --cw-elev-1: var(--mj-surface);
  --cw-elev-2: var(--mj-sunken);
  --cw-surface-1: var(--mj-surface);
  --cw-surface-2: var(--mj-sunken);
  --admin-accent: var(--mj-wood);
  --admin-glow: var(--mj-wood-deep);
  --admin-live: var(--mj-live);
  color-scheme: light;
  background: var(--mj-canvas);
  color: var(--mj-ink);
  border-color: var(--mj-line);
}

body.onsites-desk.desk-admin-shell .cw-requests-head {
  background: var(--mj-surface);
  border-bottom: 1px solid var(--mj-line);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
body.onsites-desk.desk-admin-shell .cw-requests-head h1 {
  color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell .cw-requests-head .muted,
body.onsites-desk.desk-admin-shell .cw-requests .cw-list-eyebrow {
  color: var(--mj-ink-3);
}
body.onsites-desk.desk-admin-shell .cw-requests-count {
  background: var(--mj-wood);
  color: #F6F1E8;
}
body.onsites-desk.desk-admin-shell .cw-requests-body {
  background: var(--mj-canvas);
}

body.onsites-desk.desk-admin-shell .cw-request-row {
  background: transparent;
  border-bottom-color: var(--mj-line);
}
body.onsites-desk.desk-admin-shell .cw-request-row:hover {
  background: var(--mj-hover);
}
body.onsites-desk.desk-admin-shell .cw-request-mark {
  color: var(--mj-stone-deep);
  background: var(--mj-stone-soft);
  border-color: rgba(95, 122, 114, 0.22);
}
body.onsites-desk.desk-admin-shell .cw-request-title {
  color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell .cw-request-meta {
  color: var(--mj-ink-3);
}

body.onsites-desk.desk-admin-shell .cw-requests-empty {
  background: var(--mj-canvas);
  border: 0;
}
body.onsites-desk.desk-admin-shell .cw-requests-empty strong {
  color: var(--mj-ink);
}
body.onsites-desk.desk-admin-shell .cw-requests-empty span {
  color: var(--mj-ink-3);
}
body.onsites-desk.desk-admin-shell .cw-requests-status {
  color: var(--mj-ink-3);
}

body.onsites-desk.desk-admin-shell .cw-requests .cw-btn {
  background: var(--mj-wood);
  color: #F6F1E8;
  box-shadow: none;
}
body.onsites-desk.desk-admin-shell .cw-requests .cw-btn:hover {
  background: var(--mj-wood-deep);
}
body.onsites-desk.desk-admin-shell .cw-requests .cw-btn-ghost {
  background: var(--mj-surface);
  color: var(--mj-ink-2);
  border-color: var(--mj-line-hard);
}
body.onsites-desk.desk-admin-shell .cw-requests .cw-btn-ghost:hover {
  background: var(--mj-hover);
  color: var(--mj-ink);
  border-color: var(--mj-line-hard);
}
body.onsites-desk.desk-admin-shell .cw-requests a {
  color: var(--mj-stone-deep);
}
body.onsites-desk.desk-admin-shell .cw-requests a:hover {
  color: var(--mj-ink);
}

body.onsites-desk.desk-admin-shell .cw-requests ::-webkit-scrollbar-thumb {
  background: rgba(51, 48, 43, 0.16);
}
body.onsites-desk.desk-admin-shell .cw-requests ::-webkit-scrollbar-thumb:hover {
  background: rgba(51, 48, 43, 0.28);
}

/* Info pulse / secondary accents */
body.onsites-desk.desk-admin-shell .cw-hub-data-hint::before {
  background: var(--mj-stone);
}
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home a:not(.cw-btn):not(.cw-home-nav-btn):not(.cw-rail-btn) {
  color: var(--mj-stone-deep);
}
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home a:not(.cw-btn):not(.cw-home-nav-btn):not(.cw-rail-btn):hover {
  color: var(--mj-ink);
}

/* Settings iframe host � match MUJI while frame boots */
body.onsites-desk.desk-admin-shell .cw-settings-pane-host,
body.onsites-desk.desk-admin-shell .cw-settings-pane-frame,
body.onsites-desk.desk-admin-shell .cw-settings-pane-skel {
  background: var(--mj-canvas) !important;
}
body.onsites-desk.desk-admin-shell .cw-settings-pane-skel::before {
  background: var(--mj-sidebar) !important;
  border-right: 1px solid var(--mj-line);
}

/* ---------- Visitors � more-skin dark pass: remap --more-* ---------- */
body.onsites-desk.desk-admin-shell:is(.has-cw-more-sidebar, .has-cw-desk-home-sidebar) {
  --more-bg: var(--mj-canvas);
  --more-bg-deep: var(--mj-sidebar);
  --more-surface: var(--mj-surface);
  --more-surface-2: var(--mj-sunken);
  --more-surface-raised: var(--mj-surface);
  --more-border: var(--mj-line);
  --more-border-strong: var(--mj-line-hard);
  --more-text: var(--mj-ink);
  --more-muted: var(--mj-ink-2);
  --more-icon: var(--mj-ink-3);
  --more-faint: var(--mj-ink-3);
  --more-accent: var(--mj-wood);
  --more-accent-text: var(--mj-wood-deep);
  --more-accent-soft: var(--mj-wood-soft);
  --more-success: var(--mj-live);
  --more-hover: var(--mj-hover);
  --more-active: var(--mj-wood-soft);
  color-scheme: light;
}

/* Visitors journey � warm paper canvas, wood accents */
body.onsites-desk.desk-admin-shell .cw-visitors-journey {
  background:
    radial-gradient(ellipse 70% 45% at 100% 0%, var(--mj-wood-soft), transparent 55%),
    radial-gradient(ellipse 50% 35% at 0% 100%, var(--mj-live-soft), transparent 50%),
    var(--mj-sidebar) !important;
  border-left-color: var(--mj-line) !important;
}

body.onsites-desk.desk-admin-shell .cw-visitors-journey .cw-journey-foot,
body.onsites-desk.desk-admin-shell .cw-visitors-journey .cw-journey-actions {
  background: var(--mj-surface) !important;
  border-top-color: var(--mj-line) !important;
}

body.onsites-desk.desk-admin-shell .cw-visitors-journey .cw-timeline-rail::before {
  background: rgba(15, 14, 12, 0.25) !important;
}

body.onsites-desk.desk-admin-shell .cw-visitors-journey .cw-journey-chat:hover {
  background: var(--mj-wood-deep) !important;
}

body.onsites-desk.desk-admin-shell .cw-visitors-journey .cw-journey-avatar,
body.onsites-desk.desk-admin-shell .cw-visitors-journey .cw-journey-empty-icon {
  border-color: var(--mj-wood-soft) !important;
}

body.onsites-desk.desk-admin-shell .cw-visitors-journey .cw-journey-chip.is-chat,
body.onsites-desk.desk-admin-shell .cw-visitors-journey .cw-journey-now[data-live="1"] {
  border-color: var(--mj-live-soft) !important;
}

/* Connect-channel drawer (right sheet) � light shell around the MUJI iframe */
body.onsites-desk.desk-admin-shell .cw-connect-channel-drawer-panel {
  background: var(--mj-canvas) !important;
  border-left: 1px solid var(--mj-line) !important;
  box-shadow: -16px 0 48px rgba(51, 48, 43, 0.22) !important;
}

body.onsites-desk.desk-admin-shell .cw-connect-channel-drawer-head {
  background: var(--mj-surface) !important;
  border-bottom: 1px solid var(--mj-line) !important;
}

body.onsites-desk.desk-admin-shell .cw-connect-channel-drawer-head strong {
  color: var(--mj-ink) !important;
}

body.onsites-desk.desk-admin-shell .cw-connect-channel-drawer-close {
  color: var(--mj-ink-3) !important;
}

body.onsites-desk.desk-admin-shell .cw-connect-channel-drawer-close:hover {
  color: var(--mj-ink) !important;
  background: var(--mj-hover) !important;
}

/* Confirm bar (bottom toast) � hardcoded dark bg; text token flips to ink in MUJI */
body.onsites-desk.desk-admin-shell .cw-confirm {
  background: var(--mj-surface) !important;
  border-color: var(--mj-line) !important;
  border-left-color: var(--mj-wood) !important;
  box-shadow: 0 10px 30px rgba(51, 48, 43, 0.18) !important;
  color: var(--mj-ink) !important;
}

/* Nav "Accepting chats" pill � hardcoded near-white label/hint on light surface */
body.onsites-desk.desk-admin-shell .cw-nav-accept:hover {
  background: var(--mj-hover) !important;
}

body.onsites-desk.desk-admin-shell .cw-nav-accept-label {
  color: var(--mj-ink) !important;
}

body.onsites-desk.desk-admin-shell .cw-nav-accept.is-off .cw-nav-accept-label {
  color: var(--mj-ink-2) !important;
}

body.onsites-desk.desk-admin-shell .cw-nav-accept-hint {
  color: var(--mj-ink-3) !important;
}

body.onsites-desk.desk-admin-shell .cw-nav-accept-switch {
  background: var(--mj-line-hard) !important;
  box-shadow: inset 0 0 0 1px rgba(15, 14, 12, 0.06) !important;
}

body.onsites-desk.desk-admin-shell .cw-nav-accept.is-on .cw-nav-accept-switch {
  background: var(--mj-live) !important;
}

body.onsites-desk.desk-admin-shell .cw-nav-accept.is-on .cw-nav-accept-dot {
  background: var(--mj-live) !important;
  box-shadow: 0 0 0 3px var(--mj-live-soft) !important;
}

/* Mail/chat rich editor formatting toolbar � hardcoded white icons on light surface */
body.onsites-desk.desk-admin-shell .cw-mail-fmtbar {
  border-bottom-color: var(--mj-line) !important;
  background: var(--mj-surface) !important;
}

body.onsites-desk.desk-admin-shell .cw-mail-fmt {
  color: var(--mj-ink-3) !important;
}

body.onsites-desk.desk-admin-shell .cw-mail-fmt:hover:not(:disabled) {
  background: var(--mj-hover) !important;
  color: var(--mj-ink) !important;
}

body.onsites-desk.desk-admin-shell .cw-mail-fmt.is-on,
body.onsites-desk.desk-admin-shell .cw-mail-fmt--dd.is-on {
  background: var(--mj-wood-soft) !important;
  color: var(--mj-wood-deep) !important;
}

body.onsites-desk.desk-admin-shell .cw-mail-fmt-sep {
  background: var(--mj-line-hard) !important;
}

/* ---------- CRM Import wizard � MUJI light pass (spec �1.1 / DoD 9) ---------- */
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-modal .cw-espo-import-lead,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-file-note,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-map-sample,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-sheet-meta,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-summary-total,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-skip-note {
  color: var(--mj-ink-3) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-file-box {
  background: var(--mj-canvas) !important;
  border-color: var(--mj-line-hard) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-file-box:hover {
  border-color: var(--mj-wood) !important;
  background: var(--mj-hover) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-file-ico {
  color: var(--mj-ink-3) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-file-label {
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-sheet-opt {
  background: var(--mj-canvas) !important;
  border-color: var(--mj-line) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-sheet-opt:hover {
  background: var(--mj-hover) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-sheet-opt.is-on {
  border-color: var(--mj-wood) !important;
  background: var(--mj-wood-soft) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-sheet-name {
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-map-head {
  color: var(--mj-ink-3) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-map-file {
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-map-select {
  background: var(--mj-canvas) !important;
  border-color: var(--mj-line-hard) !important;
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-view-tabs {
  background: transparent !important;
  border-color: var(--mj-line) !important;
  border-radius: 2px !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-view-tab {
  color: var(--mj-ink-3) !important;
  border-radius: 0 !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-view-tab.is-on {
  background: var(--mj-wood-soft, rgba(107, 90, 70, 0.12)) !important;
  color: var(--mj-ink) !important;
  box-shadow: none !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-links {
  border-color: var(--mj-line) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-links-label,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-links-empty {
  color: var(--mj-ink-3) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-link-chip {
  background: var(--mj-sunken, #f6f3ee) !important;
  border-color: var(--mj-line) !important;
  color: var(--mj-ink) !important;
  border-radius: 2px !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-pane {
  border-color: var(--mj-line) !important;
  background: var(--mj-surface, #fff) !important;
  border-radius: 2px !important;
  box-shadow: none !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-pane-head {
  border-bottom-color: var(--mj-line) !important;
  background: var(--mj-sunken, #f6f3ee) !important;
  padding: 5px 8px !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-pane-head h4 {
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-pane-meta {
  color: var(--mj-ink-3) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-grid-wrap {
  scrollbar-color: rgba(107, 90, 70, 0.35) transparent;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-grid th {
  background: var(--mj-sunken, #f6f3ee) !important;
  color: var(--mj-ink) !important;
  border-color: var(--mj-line) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-grid td {
  color: var(--mj-ink) !important;
  border-color: var(--mj-line) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-grid-num {
  color: var(--mj-ink-3) !important;
  background: var(--mj-sunken, #f6f3ee) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-th-main {
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-th-sub {
  color: var(--mj-ink-3) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-th-src.is-mapped .cw-espo-import-th-sub,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-th-crm.is-mapped .cw-espo-import-th-sub {
  color: var(--mj-wood-deep, #6b5744) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-match-tag {
  color: var(--mj-wood, #8a735a) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-grid .is-col-hot,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-grid .is-pair-hot {
  background: var(--mj-wood-soft, rgba(107, 90, 70, 0.14)) !important;
  box-shadow: inset 0 0 0 1px rgba(107, 90, 70, 0.4) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-grid td.is-empty,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-dash {
  color: var(--mj-ink-3) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-pop-card {
  background: var(--mj-surface, #fff) !important;
  border-color: var(--mj-line-hard) !important;
  border-radius: 4px !important;
  box-shadow: 0 8px 24px rgba(15, 14, 12, 0.12) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-pop-title {
  color: var(--mj-ink-3) !important;
  font-size: 11px !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-pop-label {
  color: var(--mj-ink-3) !important;
  font-size: 10px !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-pop-item {
  color: var(--mj-ink) !important;
  font-size: 12.5px !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-pop-item:hover,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-pop-item.is-on {
  background: var(--mj-wood-soft) !important;
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-pop-main {
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-pop-sample {
  color: var(--mj-ink-3) !important;
  font-size: 11px !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-panel.is-stage,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-panel {
  border-radius: 4px !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-match-warn {
  background: rgba(200, 150, 40, 0.1) !important;
  border-color: rgba(180, 130, 40, 0.3) !important;
  color: var(--mj-amber, #7A6220) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-chip {
  background: var(--mj-wood-soft) !important;
  color: var(--mj-ink-2) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-chip--create {
  background: rgba(42, 143, 106, 0.14) !important;
  color: #1B5E45 !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-chip--update {
  background: rgba(63, 126, 176, 0.14) !important;
  color: #2A5A7A !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-chip--skip {
  background: rgba(200, 150, 40, 0.16) !important;
  color: #7A6220 !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-preview-table-wrap {
  border-color: var(--mj-line) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-preview-table th {
  background: var(--mj-sunken) !important;
  color: var(--mj-ink-3) !important;
  border-bottom-color: var(--mj-line) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-preview-table td {
  border-bottom-color: var(--mj-line) !important;
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-preview-table td:first-child {
  color: var(--mj-ink-3) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-row--create td:nth-child(2) {
  color: #1B5E45 !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-row--update td:nth-child(2) {
  color: #2A5A7A !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-row--skip td {
  color: var(--mj-ink-3) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-row--skip td:nth-child(2) {
  color: #7A6220 !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-row-warn {
  color: var(--mj-ink-2) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-done-icon {
  background: rgba(42, 143, 106, 0.14) !important;
  color: #1B5E45 !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-done h4 {
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-done-summary {
  color: var(--mj-ink-2) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-done-summary strong {
  color: var(--mj-ink) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-done-errors {
  color: var(--mj-ink-2) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-import-toast {
  background: var(--mj-surface) !important;
  border: 1px solid var(--mj-line-hard) !important;
  color: var(--mj-ink) !important;
  box-shadow: 0 12px 32px rgba(40, 32, 24, 0.16) !important;
}

/* Paper grid: zone legend off; thin band under column titles */
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-zone-legend,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-zone-legend[hidden] {
  display: none !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table--sheet tr.cw-espo-zone-band th {
  height: 16px !important;
  max-height: 16px !important;
  padding: 0 4px !important;
  border-bottom-color: var(--mj-line) !important;
  border-right: 1px solid rgba(40, 32, 24, 0.08) !important;
  font-size: 9px !important;
}
/* Distinct hues (must beat thead th[data-zone] wood wash below). */
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-zone-band-cell[data-zone="field"] {
  color: #6b4e2e !important;
  background: #e8d5b0 !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-zone-band-cell[data-zone="rel"] {
  color: #1f4f66 !important;
  background: #b7d4e4 !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-zone-band-cell[data-zone="custom"] {
  color: #1f5a45 !important;
  background: #b8dcc8 !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-zone-band-cell[data-zone="actions"] {
  color: #4a4a4e !important;
  background: #cfcfd4 !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-zone-band-cell[data-zone="sys"] {
  color: #4a4a4e !important;
  background: #d4d4d6 !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-zone-band-cell--add {
  background: transparent !important;
  border-right: 0 !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-zone-chip {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--mj-ink-3) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-zone-chip[data-zone="field"] {
  color: #7a6240 !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-zone-chip[data-zone="rel"] {
  color: #3d6a7a !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-zone-chip[data-zone="custom"] {
  color: #2f6b56 !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-zone-chip[data-zone="actions"] {
  color: #5c5a56 !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-zone-chip[data-zone="sys"] {
  color: #5c5a56 !important;
}
/* Data/header cells only � never paint over the zone band row. */
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table--sheet thead tr:not(.cw-espo-zone-band) th[data-zone],
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table--sheet tbody td[data-zone] {
  background: var(--mj-surface) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table--sheet thead tr:not(.cw-espo-zone-band) th[data-zone] {
  background: var(--mj-sunken) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table--sheet .cw-espo-col--sticky[data-zone] {
  background: var(--mj-surface) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table--sheet thead .cw-espo-col--sticky[data-zone] {
  background: var(--mj-sunken) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table tbody tr:hover td[data-zone],
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table tbody tr:hover .cw-espo-col--sticky[data-zone] {
  background: var(--mj-hover) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table tbody tr.is-active td[data-zone],
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table tbody tr.is-active .cw-espo-col--sticky[data-zone] {
  background: var(--mj-wood-soft) !important;
}
/* Zone separators retired � the color band is enough. */
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table--sheet th.cw-espo-col--zone-start,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-index-table--sheet td.cw-espo-col--zone-start {
  border-left: 0 !important;
  box-shadow: none !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm th.cw-espo-col--zone-start::before,
body.onsites-desk.desk-admin-shell.desk-pane-crm td.cw-espo-col--zone-start::before {
  display: none !important;
  content: none !important;
}

/* Custom tables � MUJI nav + wizard (styled like home "+ Connect channel" add button) */
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-nav-add-table {
  color: var(--mj-ink-3) !important;
  border: 0 !important;
  margin: 2px 0 0 !important;
  width: 100% !important;
  border-radius: 6px !important;
  background: transparent !important;
  min-height: 26px !important;
  padding-left: 8px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-nav-add-table:hover {
  color: var(--mj-ink) !important;
  background: var(--mj-hover) !important;
  border-color: transparent !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-nav-custom.is-on {
  background: var(--mj-wood-soft) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-custom-field-row input,
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-custom-field-row select,
body.onsites-desk.desk-admin-shell.desk-pane-crm label.cw-espo-custom-field input,
body.onsites-desk.desk-admin-shell.desk-pane-crm label.cw-espo-custom-field select {
  border: 1px solid rgba(55, 48, 40, 0.18) !important;
  background: #fff !important;
  color: rgba(55, 48, 40, 0.92) !important;
  border-radius: 6px !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm label.cw-espo-custom-field {
  color: rgba(55, 48, 40, 0.78) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-col-del {
  color: rgba(90, 78, 66, 0.4) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-col-del:hover {
  background: rgba(55, 48, 40, 0.06) !important;
  color: rgba(55, 48, 40, 0.9) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-custom-field-remove {
  color: rgba(90, 78, 66, 0.55) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-custom-field-remove:hover {
  background: rgba(55, 48, 40, 0.06) !important;
  color: rgba(55, 48, 40, 0.9) !important;
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-custom-fields-head {
  color: rgba(55, 48, 40, 0.88);
}
body.onsites-desk.desk-admin-shell.desk-pane-crm .cw-espo-custom-fields-head .cw-espo-muted {
  color: rgba(90, 78, 66, 0.55);
}

/* Visitors toolbar flush with table header; title pinned to the far right */
body.onsites-desk.desk-admin-shell .cw-visitors-slack .cw-visitors-head {
  width: 100%;
  align-items: center;
  padding: 8px 14px;
}
body.onsites-desk.desk-admin-shell .cw-visitors-slack .cw-visitors-head-main {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
}
body.onsites-desk.desk-admin-shell .cw-visitors-slack .cw-visitors-head-main .cw-visitors-tools {
  order: 1;
  flex: 0 1 auto;
}
body.onsites-desk.desk-admin-shell .cw-visitors-slack .cw-visitors-head-main .cw-visitors-head-text {
  order: 2;
  flex: 0 0 auto;
  margin-left: auto;
}
body.onsites-desk.desk-admin-shell .cw-visitors-slack .cw-visitors-table-wrap {
  padding: 0;
}
body.onsites-desk.desk-admin-shell .cw-channel-pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 8px 0 10px;
  border: 1px solid var(--mj-line-hard);
  border-radius: 7px;
  background: var(--mj-surface);
  color: var(--mj-ink-3);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
body.onsites-desk.desk-admin-shell .cw-channel-pick:hover,
body.onsites-desk.desk-admin-shell .cw-channel-pick:focus-within {
  border-color: var(--cw-accent, #8a6f4d);
  background: var(--mj-hover);
}
body.onsites-desk.desk-admin-shell .cw-channel-pick svg {
  flex-shrink: 0;
}
body.onsites-desk.desk-admin-shell .cw-channel-pick select {
  border: 0;
  background: transparent;
  color: var(--mj-ink);
  font: 600 12px/1 var(--cw-font, -apple-system, sans-serif);
  outline: none;
  cursor: pointer;
  padding: 0 2px;
  max-width: 150px;
}
body.onsites-desk.desk-admin-shell .cw-visitors-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
  border: 1px solid var(--mj-line-hard);
  color: var(--mj-ink-2);
  background: var(--mj-sunken);
}


/* Team channel: shared conversation card + @mention highlight */
.cw-room-share-card {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.03);
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.cw-room-share-card:hover {
  border-color: rgba(15, 23, 42, 0.22);
  background: rgba(15, 23, 42, 0.055);
}
.cw-room-share-title {
  font-weight: 650;
  font-size: 13px;
  line-height: 1.3;
}
.cw-room-share-meta {
  margin-top: 2px;
  font-size: 11px;
  opacity: 0.65;
}
.cw-room-share-snip {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.85;
}
.cw-room-mention,
.cw-post-body .cw-room-mention {
  color: #0b6bcb;
  font-weight: 600;
}

/* Details CRM forms � white paper fields on sunken rail (no gray fill) */
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-contact-crm-input,
body.onsites-desk.cw-home-page.desk-admin-shell .cw-workspace.cw-home .cw-contact-crm-input {
  background: #ffffff !important;
  border: 1px solid var(--mj-line-hard, #d4d4d4) !important;
  color: var(--mj-ink, #0f0e0c) !important;
  box-shadow: none;
}
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-contact-crm-input:focus,
body.onsites-desk.cw-home-page.desk-admin-shell .cw-workspace.cw-home .cw-contact-crm-input:focus {
  border-color: var(--mj-wood, #6b5744) !important;
  box-shadow: 0 0 0 3px var(--mj-wood-soft, rgba(107, 87, 68, 0.14)) !important;
}
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-contact-mini-btn,
body.onsites-desk.cw-home-page.desk-admin-shell .cw-workspace.cw-home .cw-contact-mini-btn {
  background: #ffffff;
  border-color: var(--mj-line-hard, #d4d4d4);
  color: var(--mj-ink, #0f0e0c);
}
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-contact-mini-btn.is-ghost,
body.onsites-desk.cw-home-page.desk-admin-shell .cw-workspace.cw-home .cw-contact-mini-btn.is-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--mj-ink-3, #4a453f);
}
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-contact-mini-btn.is-primary,
body.onsites-desk.cw-home-page.desk-admin-shell .cw-workspace.cw-home .cw-contact-mini-btn.is-primary {
  background: var(--mj-wood, #6b5744);
  border-color: transparent;
  color: #fff;
}
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-contact-mini-btn.is-primary:hover,
body.onsites-desk.cw-home-page.desk-admin-shell .cw-workspace.cw-home .cw-contact-mini-btn.is-primary:hover {
  background: var(--mj-wood-deep, #4e3f31);
}
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-contact-crm-card,
body.onsites-desk.cw-home-page.desk-admin-shell .cw-workspace.cw-home .cw-contact-crm-card {
  background: #ffffff;
  border-color: var(--mj-line, #e5e5e5);
}

body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-contact-sticky-input,
body.onsites-desk.cw-home-page.desk-admin-shell .cw-workspace.cw-home .cw-contact-sticky-input {
  background: var(--mj-note-bg, #f6f0e4) !important;
  border-color: rgba(90, 74, 50, 0.28) !important;
  color: var(--mj-note-ink, #3f3424) !important;
}
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-contact-sticky-input::placeholder,
body.onsites-desk.cw-home-page.desk-admin-shell .cw-workspace.cw-home .cw-contact-sticky-input::placeholder {
  color: var(--mj-note-ink, #3f3424) !important;
  opacity: 0.5;
}
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-contact-sticky-input:focus,
body.onsites-desk.cw-home-page.desk-admin-shell .cw-workspace.cw-home .cw-contact-sticky-input:focus {
  border-color: var(--mj-wood, #6b5744) !important;
  box-shadow: 0 0 0 3px var(--mj-wood-soft, rgba(107, 87, 68, 0.14)) !important;
}
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-contact-label-chip,
body.onsites-desk.cw-home-page.desk-admin-shell .cw-workspace.cw-home .cw-contact-label-chip {
  background: #f3f3f3;
  border-color: #e6e6e6;
  color: var(--mj-ink, #0f0e0c);
}
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-contact-label-plus,
body.onsites-desk.cw-home-page.desk-admin-shell .cw-workspace.cw-home .cw-contact-label-plus {
  background: #ffffff;
  border-color: #e0e0e0;
  color: var(--mj-ink, #0f0e0c);
}
body.onsites-desk.desk-admin-shell .cw-workspace.cw-home .cw-contact-label-inline-input,
body.onsites-desk.cw-home-page.desk-admin-shell .cw-workspace.cw-home .cw-contact-label-inline-input {
  background: #ffffff !important;
  border-color: #d4d4d4 !important;
  color: var(--mj-ink, #0f0e0c) !important;
}
