/* Onsites AI desk —Precision Ops (ink nav + cold paper canvas) */
/* Fonts loaded via <link> in desk HTML (avoid @import FOUC) */

body.onsites-desk {
  --cw-brand: #2f6f9f;
  --cw-brand-soft: rgba(47, 111, 159, 0.12);
  --cw-brand-widget: #2f6f9f;
  --cw-bg: #0b1016;
  --cw-surface-1: #121820;
  --cw-surface-2: #18212c;
  --cw-elev-1: #1a2330;
  --cw-elev-2: #222c3a;
  --cw-paper-0: #e8ecf2;
  --cw-paper-1: #dde3ec;
  --cw-paper-2: #f4f6f9;
  --cw-ink: #0e1520;
  --cw-ink-2: #152033;
  --cw-steel: #2f6f9f;
  --cw-steel-hi: #3d7eb0;
  --cw-hairline: rgba(255, 255, 255, 0.07);
  --cw-inset: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --cw-border: rgba(255, 255, 255, 0.09);
  --cw-border-strong: rgba(255, 255, 255, 0.15);
  --cw-text: rgba(245, 248, 252, 0.94);
  --cw-text-2: rgba(220, 228, 238, 0.72);
  --cw-text-3: rgba(180, 194, 210, 0.46);
  --cw-slate-bubble: rgba(255, 255, 255, 0.06);
  --cw-agent-bubble: rgba(47, 111, 159, 0.14);
  --cw-unread: #0f9f7a;
  --cw-online: #0f9f7a;
  --cw-danger: #d45666;
  --cw-radius: 6px;
  --cw-radius-sm: 4px;
  --cw-control-h: 28px;
  --cw-shadow: 0 10px 28px rgba(8, 12, 18, 0.35);
  --cw-ease: cubic-bezier(0.22, 0.9, 0.28, 1);
  --cw-duration: 0.15s;
--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;
 --cw-font-serif: "Songti SC", "SimSun", "STSong", Georgia, "Times New Roman", serif;
  --admin-accent: #2f6f9f;
  --admin-live: #0f9f7a;
  --admin-glow: #7eb3d8;
  --cw-nav-w: 216px;
  --cw-rail-w: 4.375rem;
  --slack-rail-bg: transparent;
  --slack-rail-text: #f8f8f8;
  --slack-rail-muted: #e0e0e0cc;
  --slack-rail-icon: #b1b1b2;
  --slack-rail-hover: #f8f8f814;
  --slack-rail-active: #f8f8f840;
  --slack-canvas: #1a1d21;
  --cw-list-w: clamp(240px, 20vw, 300px);
  --cw-contact-w: clamp(320px, 30vw, 440px);
  --cw-page-inset-x: 28px;
  --cw-page-inset-y: 22px;
  --cw-page-head-h1: 25px;
  --cw-page-max: 1100px;
  --cw-list-head-h: 52px;
  --cw-list-head-pad-x: 14px;
  --cw-glass-blur: 14px;
  --cw-glass-ink: rgba(11, 16, 22, 0.78);
  --cw-glass-paper: rgba(244, 246, 249, 0.72);
  --cw-glass-edge: rgba(255, 255, 255, 0.42);
  --cw-glass-ink-edge: rgba(255, 255, 255, 0.08);

  margin: 0;
  color: var(--cw-text);
  /* Paper under main column —never leave a pure-ink strip on the right edge */
  background: #e8ecf2;
  font-family: var(--cw-font);
  font-size: 14px;
  letter-spacing: -0.012em;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
}

/* Channel / settings / agent sidebars — serif for nav copy */
body.onsites-desk .cw-home-sidebar,
body.onsites-desk .cw-desk-home-sidebar,
body.onsites-desk .cw-more-sidebar,
body.onsites-desk .cw-settings-sidebar,
body.onsites-desk .cw-agent-sidebar,
body.onsites-desk .cw-crm-sidebar {
  --cw-font: var(--cw-font-serif);
  --cw-display: var(--cw-font-serif);
  font-family: var(--cw-font-serif);
  letter-spacing: -0.004em;
}

body.onsites-desk a { color: var(--admin-glow); }
body.onsites-desk a:hover { color: #a8c8ff; }

/* ——Login (light minimal) ——*/
body.onsites-desk .cw-login-page {
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  color-scheme: light;
  background:
    radial-gradient(ellipse 55% 40% at 16% -4%, rgba(47, 111, 159, 0.075), transparent 60%),
    radial-gradient(ellipse 42% 32% at 92% 108%, rgba(15, 159, 122, 0.05), transparent 58%),
    linear-gradient(180deg, #fdfdfc 0%, #f6f7f5 100%);
}
body.onsites-desk .cw-login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 42%, #000 10%, transparent 72%);
}
body.onsites-desk .cw-login-stage {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  gap: 26px;
}
body.onsites-desk .cw-login-hero {
  text-align: center;
  padding: 0;
}
body.onsites-desk .cw-login-wordmark {
  margin: 0;
  font-family: var(--cw-display);
  font-size: clamp(2.1rem, 6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: #101828;
}
body.onsites-desk .cw-login-wordmark em {
  font-style: normal;
  margin-left: 0.06em;
  font-weight: 650;
  color: #2f6f9f;
}
body.onsites-desk .cw-login-tag {
  margin: 10px auto 0;
  max-width: 24rem;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.5;
  color: rgba(52, 64, 84, 0.66);
}
body.onsites-desk .cw-login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px 26px 24px;
  background: #ffffff;
  border: 1px solid #e6e8ec;
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.04),
    0 12px 32px -8px rgba(16, 24, 40, 0.1);
  backdrop-filter: none;
  animation: onsites-login-in 0.38s var(--cw-ease) both;
}
@keyframes onsites-login-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
body.onsites-desk .cw-login-card h1 {
  font-family: var(--cw-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #101828;
}
body.onsites-desk .cw-login-card .sub {
  color: #667085;
  font-size: 13px;
  letter-spacing: 0;
}
body.onsites-desk .cw-login-card label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #344054;
}
/* Light-scope form controls + buttons for login surfaces only */
body.onsites-desk .cw-login-card .cw-input,
body.onsites-desk .cw-login-card .cw-textarea {
  background: #ffffff;
  border: 1px solid #d8dce2;
  color: #101828;
  height: 40px;
  border-radius: 9px;
  box-shadow: 0 1px 1px rgba(16, 24, 40, 0.03);
}
body.onsites-desk .cw-login-card .cw-input::placeholder {
  color: #98a2b3;
}
body.onsites-desk .cw-login-card .cw-input:hover {
  border-color: #c2c9d2;
}
body.onsites-desk .cw-login-card .cw-input:focus,
body.onsites-desk .cw-login-card .cw-textarea:focus {
  border-color: #2f6f9f;
  box-shadow: 0 0 0 3px rgba(47, 111, 159, 0.14);
  outline: none;
}
body.onsites-desk .cw-login-card .cw-btn:not(.cw-btn-ghost):not(.cw-btn-danger) {
  background: #101828;
  color: #ffffff;
  border-radius: 9px;
  height: 38px;
  font-weight: 600;
}
body.onsites-desk .cw-login-card .cw-btn:not(.cw-btn-ghost):not(.cw-btn-danger):hover {
  background: #1d2939;
}
body.onsites-desk .cw-login-card .cw-btn:not(.cw-btn-ghost):not(.cw-btn-danger):active {
  background: #344054;
}
body.onsites-desk .cw-login-card .cw-btn-ghost {
  background: #ffffff;
  color: #344054;
  border: 1px solid #d8dce2;
  border-radius: 9px;
  height: 38px;
}
body.onsites-desk .cw-login-card .cw-btn-ghost:hover {
  background: #f7f8fa;
  color: #101828;
  border-color: #c2c9d2;
}
body.onsites-desk .cw-login-card a {
  color: #2f6f9f;
}
body.onsites-desk .cw-login-card a:hover {
  color: #28618d;
}
body.onsites-desk .cw-login-card p.sub a,
body.onsites-desk .cw-login-card .sub a {
  font-weight: 600;
}
body.onsites-desk .cw-turnstile-host {
  min-height: 0;
  display: flex;
  justify-content: flex-start;
}
body.onsites-desk .cw-turnstile-host .cf-turnstile {
  margin: 0;
}

/* ——Controls ——*/
body.onsites-desk .cw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--cw-radius);
  height: 34px;
  padding: 0 14px;
  background: var(--cw-steel);
  color: #f5f8fc;
  font-family: var(--cw-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.02em;
  box-shadow: none;
  line-height: 1;
  transition: background var(--cw-duration) var(--cw-ease), border-color var(--cw-duration) ease,
    color var(--cw-duration) ease, opacity var(--cw-duration) ease;
}
body.onsites-desk label.cw-btn {
  cursor: pointer;
  box-sizing: border-box;
}
body.onsites-desk .cw-btn:hover {
  filter: none;
  background: var(--cw-steel-hi);
  transform: none;
}
body.onsites-desk .cw-btn:active {
  background: #285f88;
}
body.onsites-desk .cw-btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--cw-text-2);
  border: 1px solid var(--cw-hairline);
  box-shadow: none;
}
body.onsites-desk .cw-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--cw-text);
  border-color: var(--cw-border-strong);
}
body.onsites-desk .cw-btn-danger {
  background: rgba(255, 107, 122, 0.08);
  color: #ff8a96;
  border: 1px solid rgba(255, 107, 122, 0.28);
  box-shadow: none;
}
body.onsites-desk .cw-btn-danger:hover {
  background: rgba(255, 107, 122, 0.14);
}

body.onsites-desk .cw-input,
body.onsites-desk .cw-textarea,
body.onsites-desk select.cw-input {
  border-radius: var(--cw-radius);
  background: rgba(8, 8, 10, 0.88);
  border: 1px solid var(--cw-hairline);
  color: var(--cw-text);
  transition: border-color var(--cw-duration) ease, box-shadow var(--cw-duration) ease;
}
body.onsites-desk select.cw-input {
  height: 40px;
  appearance: none;
  background-color: rgba(8, 8, 10, 0.88);
  background-image: linear-gradient(45deg, transparent 50%, var(--cw-text-3) 50%),
    linear-gradient(135deg, var(--cw-text-3) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
}
body.onsites-desk .cw-input:focus,
body.onsites-desk .cw-textarea:focus,
body.onsites-desk select.cw-input:focus {
  border-color: rgba(107, 155, 200, 0.5);
  box-shadow: 0 0 0 1px rgba(107, 155, 200, 0.22);
  outline: none;
}

body.onsites-desk .cw-avatar {
  border-radius: var(--cw-radius);
  color: hsl(var(--av-h, 205) 40% 78%);
  background: linear-gradient(
    145deg,
    hsl(var(--av-h, 205) 22% 28%),
    hsl(var(--av-h, 205) 30% 14%)
  );
  box-shadow: 0 0 0 1px var(--cw-hairline), var(--cw-inset);
}
body.onsites-desk .cw-avatar.cw-avatar-photo {
  background: transparent !important;
  overflow: hidden;
}
body.onsites-desk .cw-avatar.channel {
  border-radius: var(--cw-radius);
  color: var(--admin-glow);
}
/* Telegram group — squircle + teal, distinct from single-user circle */
body.onsites-desk .cw-avatar.tg-group {
  border-radius: 30%;
  color: #9ad9c0;
  background: linear-gradient(145deg, #1f4a3d 0%, #123028 55%, #0e241e 100%);
  box-shadow: 0 0 0 1px rgba(90, 180, 140, 0.22), var(--cw-inset);
}
body.onsites-desk .cw-avatar.tg-group.cw-avatar-photo {
  background: transparent !important;
  box-shadow: 0 0 0 1px rgba(90, 180, 140, 0.28);
}
body.onsites-desk .cw-avatar.tg-group.cw-avatar-icon svg {
  width: 58%;
  height: 58%;
}
body.onsites-desk .cw-contact-avatar.tg-group {
  border-radius: 30%;
}
body.onsites-desk .cw-avatar .dot {
  border-color: var(--cw-surface-1);
  background: var(--admin-live);
  box-shadow: 0 0 0 2px rgba(34, 211, 166, 0.16);
}
body.onsites-desk .cw-badge {
  border-radius: var(--cw-radius-sm);
  background: var(--admin-live);
  color: #06241c;
}

/* ——Shell / nav ——*/
body.onsites-desk {
  height: 100%;
  overflow: hidden; /* prevent body scrollbar flash on page switch */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

/* Thin graphite scrollbars (Chromium / Safari / Edge) */
body.onsites-desk *,
body.onsites-desk *::before,
body.onsites-desk *::after {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
body.onsites-desk ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
body.onsites-desk ::-webkit-scrollbar-track {
  background: transparent;
}
body.onsites-desk ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
body.onsites-desk ::-webkit-scrollbar-thumb:hover {
  background: rgba(142, 184, 255, 0.42);
  border: 2px solid transparent;
  background-clip: padding-box;
}
body.onsites-desk ::-webkit-scrollbar-thumb:active {
  background: rgba(107, 155, 200, 0.55);
  border: 2px solid transparent;
  background-clip: padding-box;
}
body.onsites-desk ::-webkit-scrollbar-corner {
  background: transparent;
}
/* Message / list panes: slightly more visible when scrolling */
body.onsites-desk .cw-messages,
body.onsites-desk .cw-conv-list,
body.onsites-desk .cw-settings-body,
body.onsites-desk .cw-dash,
body.onsites-desk .cw-visitors,
body.onsites-desk .cw-contact-body {
  scrollbar-color: rgba(255, 255, 255, 0.22) rgba(255, 255, 255, 0.03);
}
body.onsites-desk .cw-messages::-webkit-scrollbar-thumb,
body.onsites-desk .cw-conv-list::-webkit-scrollbar-thumb,
body.onsites-desk .cw-settings-body::-webkit-scrollbar-thumb,
body.onsites-desk .cw-dash::-webkit-scrollbar-thumb,
body.onsites-desk .cw-visitors::-webkit-scrollbar-thumb,
body.onsites-desk .cw-contact-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid transparent;
  background-clip: padding-box;
}
body.onsites-desk .cw-messages::-webkit-scrollbar-thumb:hover,
body.onsites-desk .cw-conv-list::-webkit-scrollbar-thumb:hover,
body.onsites-desk .cw-settings-body::-webkit-scrollbar-thumb:hover,
body.onsites-desk .cw-dash::-webkit-scrollbar-thumb:hover,
body.onsites-desk .cw-visitors::-webkit-scrollbar-thumb:hover,
body.onsites-desk .cw-contact-body::-webkit-scrollbar-thumb:hover {
  background: rgba(142, 184, 255, 0.45);
  border: 2px solid transparent;
  background-clip: padding-box;
}
html:has(body.onsites-desk) {
  height: 100%;
  overflow: hidden;
  /* No scrollbar-gutter: stable —reserves a dark strip on the right
     while desk pages already use overflow:hidden (no page scrollbar). */
  background: #e8ecf2;
}
body.onsites-desk {
  width: 100%;
  max-width: 100%;
}
body.onsites-desk .cw-shell {
  position: relative;
  background: transparent;
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  min-height: 0;
  display: grid;
  grid-template-columns: var(--cw-nav-w) minmax(0, 1fr);
  isolation: isolate;
}
/* Fixed scenic layer —survives soft-nav (never swapped) */
body.onsites-desk .cw-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 36% at 12% 0%, rgba(47, 111, 159, 0.22), transparent 58%),
    radial-gradient(ellipse 36% 30% at 78% 8%, rgba(15, 159, 122, 0.06), transparent 55%),
    linear-gradient(
      90deg,
      #0b1016 0,
      #0b1016 calc(var(--cw-nav-w) - 1px),
      #e8ecf2 var(--cw-nav-w),
      #dde3ec 100%
    );
}
body.onsites-desk .cw-shell > * {
  position: relative;
  z-index: 1;
}

/* Rail desk: dark scenic layer (no blue radial flash in empty grid column) */
body.onsites-desk.has-cw-rail .cw-shell::before {
  background: linear-gradient(
    90deg,
    #101214 0,
    #101214 calc(var(--cw-rail-w) - 1px),
    #0f1014 var(--cw-rail-w),
    #0f1014 100%
  ) !important;
}

body.onsites-desk.has-cw-rail .cw-rail-btn[data-rail="agent"] .cw-rail-icon svg {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px;
  max-height: 20px;
}

/* Soft-nav: instant pane swap (no opacity fade — avoids flash + layout morph). */
body.onsites-desk.is-soft-nav .cw-shell {
  transition: none !important;
}
body.onsites-desk.is-soft-nav .cw-shell > :not(.cw-nav):not(.cw-rail):not(.cw-desk-home-sidebar) {
  transition: none !important;
}
body.onsites-desk .cw-nav {
  position: relative;
  background: var(--cw-glass-ink);
  border-right: 1px solid var(--cw-glass-ink-edge);
  padding: 16px 11px 12px;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(var(--cw-glass-blur)) saturate(1.15);
  -webkit-backdrop-filter: blur(var(--cw-glass-blur)) saturate(1.15);
}
body.onsites-desk .cw-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 1;
  background:
    radial-gradient(ellipse 80% 28% at 0% 0%, rgba(47, 111, 159, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 42%);
}
body.onsites-desk .cw-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 6px 18px;
  font-family: var(--cw-display);
  font-weight: 700;
  letter-spacing: -0.055em;
}
body.onsites-desk .cw-brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  color: #eef6fc;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.34) 0%,
      rgba(255, 255, 255, 0.08) 36%,
      rgba(160, 200, 235, 0.06) 100%
    ),
    rgba(120, 165, 210, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(8, 16, 28, 0.38),
    inset 1px 0 0 rgba(255, 255, 255, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 18px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px) saturate(1.5) brightness(1.06);
  -webkit-backdrop-filter: blur(18px) saturate(1.5) brightness(1.06);
}
body.onsites-desk .cw-brand-mark::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 11px;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 46%);
}
body.onsites-desk .cw-brand-mark::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -20%;
  width: 70%;
  height: 55%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.28), transparent 70%);
}
body.onsites-desk .cw-brand-mark svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}
body.onsites-desk .cw-brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
body.onsites-desk .cw-brand-text strong {
  font-size: 17.5px;
  font-weight: 800;
  color: #f5f8fc;
  line-height: 1.02;
  letter-spacing: -0.06em;
}
body.onsites-desk .cw-brand-text strong em {
  font-style: normal;
  margin-left: 0.08em;
  font-weight: 700;
  color: #8eb8d8;
  -webkit-text-stroke: 0;
  paint-order: normal;
  letter-spacing: -0.04em;
}
body.onsites-desk .cw-brand-text span {
  font-family: var(--cw-font);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(168, 188, 208, 0.48);
}

body.onsites-desk .cw-nav-label {
  position: relative;
  margin: 4px 10px 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
}

/* Workspace switcher —quiet section under brand (matches nav rhythm) */
body.onsites-desk .cw-ws-host {
  flex-shrink: 0;
  margin: 0 0 6px;
  min-height: 48px;
}
body.onsites-desk .cw-ws-host.cw-ws-host--cached .cw-ws-switch-name {
  /* Stable while confirming with API —no opacity flicker */
  opacity: 1;
}
body.onsites-desk .cw-ws-switch {
  position: relative;
  z-index: 40;
}
body.onsites-desk .cw-ws-switch-label {
  margin: 0;
  padding: 0 10px 4px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}
body.onsites-desk .cw-ws-switch-btn {
  width: 100%;
  min-height: 36px;
  height: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 0;
  border-radius: var(--cw-radius);
  background: transparent;
  color: var(--cw-text-2);
  font-family: inherit;
  font-weight: 800;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background var(--cw-duration) ease, color var(--cw-duration) ease;
  box-sizing: border-box;
}
body.onsites-desk .cw-ws-switch-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--cw-text);
}
body.onsites-desk .cw-ws-switch-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.05);
  color: var(--cw-text);
}
body.onsites-desk .cw-ws-switch-btn:focus-visible {
  outline: 1px solid rgba(107, 155, 200, 0.4);
  outline-offset: 1px;
}
body.onsites-desk .cw-ws-switch-name {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.onsites-desk .cw-ws-chev {
  flex: 0 0 auto;
  opacity: 0.32;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
body.onsites-desk .cw-ws-switch-btn:hover .cw-ws-chev,
body.onsites-desk .cw-ws-switch-btn[aria-expanded="true"] .cw-ws-chev {
  opacity: 0.55;
}
body.onsites-desk .cw-ws-switch-btn[aria-expanded="true"] .cw-ws-chev {
  transform: rotate(180deg);
}
body.onsites-desk .cw-ws-switch-menu {
  position: absolute;
  left: 0;
  right: 0;
  width: auto;
  top: calc(100% + 6px);
  z-index: 50;
  display: none;
  padding: 4px 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #161618;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  max-height: min(320px, 50vh);
  overflow: auto;
  box-sizing: border-box;
}
body.onsites-desk .cw-ws-switch-menu.open {
  display: block;
}
body.onsites-desk .cw-ws-switch-list,
body.onsites-desk .cw-ws-switch-foot {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
body.onsites-desk .cw-ws-switch-foot {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
body.onsites-desk .cw-ws-switch-item,
body.onsites-desk .cw-ws-switch-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  width: 100%;
  height: 30px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: var(--cw-radius-sm);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--cw-font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}
body.onsites-desk .cw-ws-switch-item:hover,
body.onsites-desk .cw-ws-switch-action:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
body.onsites-desk .cw-ws-switch-item.on {
  color: #fff;
}
body.onsites-desk .cw-ws-switch-item-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.onsites-desk .cw-ws-check {
  width: 14px;
  height: 14px;
  justify-self: end;
  opacity: 0;
  color: rgba(255, 255, 255, 0.7);
}
body.onsites-desk .cw-ws-switch-item.on .cw-ws-check {
  opacity: 0.9;
}
body.onsites-desk .cw-ws-switch-action {
  grid-template-columns: minmax(0, 1fr);
  color: rgba(255, 255, 255, 0.4);
}
body.onsites-desk .cw-ws-switch-action:hover {
  color: rgba(255, 255, 255, 0.75);
}

body.onsites-desk .cw-nav-item {
  position: relative;
  border-radius: var(--cw-radius);
  height: 36px;
  color: var(--cw-text-3);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color var(--cw-duration) ease, background var(--cw-duration) ease;
}
body.onsites-desk .cw-nav-item svg {
  flex-shrink: 0;
  opacity: 0.7;
}
body.onsites-desk .cw-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--cw-text-2);
}
body.onsites-desk .cw-nav-item:hover svg { opacity: 1; }
body.onsites-desk .cw-nav-item.active {
  background: rgba(47, 111, 159, 0.14);
  color: #d7e8f5;
}
body.onsites-desk .cw-nav-item.active svg { opacity: 1; }
body.onsites-desk .cw-nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 2px;
  background: var(--cw-steel);
  opacity: 0; /* sliding .cw-nav-indicator replaces this */
}
body.onsites-desk .cw-nav-indicator {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 36px;
  background: var(--cw-steel);
  box-shadow: none;
  opacity: 1;
  pointer-events: none;
  z-index: 2;
  transform: translateY(0);
  transition: none;
}
body.onsites-desk .cw-nav-indicator.is-ready {
  transition: transform 0.22s var(--cw-ease), height 0.22s var(--cw-ease);
}
body.onsites-desk .cw-nav-foot {
  border-top: none;
  background: transparent;
  margin-top: 0;
  padding-top: 10px;
}
/* Accept-chats: one row + switch, above profile */
body.onsites-desk .cw-nav-accept {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin: 4px 0 2px;
  padding: 11px 8px 10px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
body.onsites-desk .cw-nav-accept:hover {
  background: rgba(255, 255, 255, 0.03);
}
body.onsites-desk .cw-nav-accept:focus-visible {
  outline: 2px solid rgba(52, 211, 153, 0.45);
  outline-offset: 2px;
  border-radius: 8px;
}
body.onsites-desk .cw-nav-accept:disabled {
  opacity: 0.65;
  cursor: wait;
}
body.onsites-desk .cw-nav-accept-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
body.onsites-desk .cw-nav-accept-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
body.onsites-desk .cw-nav-accept-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #71717a;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
body.onsites-desk .cw-nav-accept.is-on .cw-nav-accept-dot {
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
}
body.onsites-desk .cw-nav-accept.is-off .cw-nav-accept-dot {
  background: #71717a;
}
body.onsites-desk .cw-nav-accept-label {
  font: 600 13px/1.2 var(--cw-font);
  color: #ececef;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.onsites-desk .cw-nav-accept.is-off .cw-nav-accept-label {
  color: #c4c4c8;
}
body.onsites-desk .cw-nav-accept-hint {
  display: block;
  padding-left: 14px;
  font: 400 13px/1.3 var(--cw-font);
  color: rgba(161, 161, 170, 0.95);
}
body.onsites-desk .cw-nav-accept-switch {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: background 0.18s ease;
}
body.onsites-desk .cw-nav-accept.is-on .cw-nav-accept-switch {
  background: #2f9e6f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
body.onsites-desk .cw-nav-accept-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f4f4f5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease;
}
body.onsites-desk .cw-nav-accept.is-on .cw-nav-accept-knob {
  transform: translateX(14px);
}
/* Hide placeholder avatar until paintAvatar runs (cache or /me) */
body.onsites-desk .cw-nav-foot .cw-avatar:not(.cw-avatar-photo):not(.cw-avatar-icon),
body.onsites-desk .cw-rail-foot .cw-avatar:not(.cw-avatar-photo):not(.cw-avatar-icon),
body.onsites-desk .cw-rail-avatar-wrap .cw-avatar:not(.cw-avatar-photo):not(.cw-avatar-icon) {
  opacity: 0;
}
body.onsites-desk .cw-nav-foot .cw-avatar.cw-avatar-photo,
body.onsites-desk .cw-nav-foot .cw-avatar.cw-avatar-icon,
body.onsites-desk .cw-rail-foot .cw-avatar.cw-avatar-photo,
body.onsites-desk .cw-rail-foot .cw-avatar.cw-avatar-icon,
body.onsites-desk .cw-rail-avatar-wrap .cw-avatar.cw-avatar-photo,
body.onsites-desk .cw-rail-avatar-wrap .cw-avatar.cw-avatar-icon {
  opacity: 1;
}
/* Hide name/role until cache or /me paints —prevents Admin→zhang flash */
body.onsites-desk .cw-nav-foot .meta:not(.is-ready) {
  opacity: 0;
}
body.onsites-desk .cw-nav-foot .meta.is-ready {
  opacity: 1;
}
body.onsites-desk .cw-nav-foot .meta .name {
  font-family: var(--cw-display);
  letter-spacing: -0.02em;
}
body.onsites-desk .cw-nav-foot .meta .role {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
}

/* ——Workspace ——*/
body.onsites-desk .cw-workspace,
body.onsites-desk .cw-chat-workspace {
  position: relative;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden; /* scroll lives in list / messages, not page */
  background: transparent;
}
body.onsites-desk .cw-chat-workspace {
  display: grid;
  grid-template-columns: var(--cw-list-w) minmax(0, 1fr);
}

body.onsites-desk .cw-list-pane,
body.onsites-desk .cw-thread,
body.onsites-desk .cw-contact {
  background: #f4f6f9;
  border-color: var(--cw-hairline);
  backdrop-filter: none;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden; /* required so inner flex children can scroll */
  box-shadow: none;
}

body.onsites-desk .cw-list-pane,
body.onsites-desk .cw-thread {
  display: flex;
  flex-direction: column;
}

body.onsites-desk .cw-conv-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

body.onsites-desk .cw-thread > #threadBody {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.onsites-desk .cw-thread > #threadBody[hidden] {
  display: none !important;
}
body.onsites-desk .cw-contact-body[hidden] {
  display: none !important;
}
body.onsites-desk #emptyThread[hidden],
body.onsites-desk #contactEmpty[hidden] {
  display: none !important;
}

body.onsites-desk .cw-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: #0c0c0e;
  padding: 16px 20px 24px;
  /* Instant programmatic jumps (conv switch). New-message smooth is done via scrollTo(). */
  scroll-behavior: auto;
}

body.onsites-desk .cw-composer-wrap {
  flex-shrink: 0;
}

body.onsites-desk .cw-list-head,
body.onsites-desk .cw-thread-head {
  min-height: var(--cw-list-head-h);
  height: auto;
  padding: 10px var(--cw-list-head-pad-x);
  background: rgba(28, 28, 28, 0.72);
  border-bottom: 1px solid var(--cw-border);
  backdrop-filter: blur(14px);
}
body.onsites-desk .cw-list-head h2,
body.onsites-desk .cw-thread-head .title {
  font-family: var(--cw-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}
body.onsites-desk .cw-list-head h2,
body.onsites-desk .cw-workspace .cw-thread-head .title,
body.onsites-desk .cw-chat-workspace .cw-thread-head .title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.onsites-desk .cw-chip {
  border-radius: 4px;
  background: rgba(107, 155, 200, 0.14);
  color: var(--admin-glow);
}
body.onsites-desk .cw-chip.muted {
  background: rgba(255, 255, 255, 0.04);
  color: var(--cw-text-3);
  border-color: var(--cw-border);
}
body.onsites-desk .cw-chip.ok {
  background: rgba(34, 211, 166, 0.1);
  color: #7dffd0;
  border-color: rgba(34, 211, 166, 0.25);
}
body.onsites-desk .cw-action {
  border-radius: var(--cw-radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--cw-border);
  color: var(--cw-text-2);
  height: var(--cw-control-h);
  gap: 6px;
  font-family: var(--cw-font);
}
body.onsites-desk .cw-action:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--cw-text);
}
body.onsites-desk .cw-action-resolve {
  background: rgba(34, 211, 166, 0.1);
  border-color: rgba(34, 211, 166, 0.28);
  color: #7dffd0;
}
body.onsites-desk .cw-action-resolve:hover {
  background: rgba(34, 211, 166, 0.16);
  color: #9af0d8;
}
body.onsites-desk .cw-list-head h2 { font-size: 15px; margin: 0; }
body.onsites-desk .cw-list-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cw-text-3);
  margin-bottom: 2px;
}
body.onsites-desk .cw-count {
  background: rgba(255, 255, 255, 0.06);
  color: var(--cw-text-2);
  border-radius: 2px;
  border: 1px solid var(--cw-border);
}

body.onsites-desk .cw-tabs,
body.onsites-desk .cw-status-tabs {
  border-bottom-color: var(--cw-border);
  background: transparent;
}
body.onsites-desk .cw-tab {
  border-radius: var(--cw-radius-sm);
  color: var(--cw-text-3);
  font-size: 13px;
  letter-spacing: 0.02em;
}
body.onsites-desk .cw-tab:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--cw-text-2);
}
body.onsites-desk .cw-tab.active {
  background: rgba(107, 155, 200, 0.12);
  color: var(--admin-glow);
}

body.onsites-desk .cw-conv-card {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 3px solid transparent;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
body.onsites-desk .cw-conv-card:hover { background: rgba(255, 255, 255, 0.03); }
body.onsites-desk .cw-conv-card.active {
  background: rgba(15, 159, 122, 0.08);
  border-left-color: var(--admin-live);
  box-shadow: inset 0 0 0 1px rgba(15, 159, 122, 0.45);
}
body.onsites-desk .cw-conv-card.unread:not(.active) { border-left-color: var(--admin-live); }
body.onsites-desk .cw-conv-card .name {
  font-weight: 600;
  letter-spacing: -0.015em;
}
body.onsites-desk .cw-conv-card .time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--cw-text-3);
}
body.onsites-desk .cw-conv-card .preview { color: var(--cw-text-3); }

body.onsites-desk .cw-day-sep span {
  color: rgba(255, 255, 255, 0.32);
  background: transparent;
}
body.onsites-desk .cw-day-sep::before,
body.onsites-desk .cw-day-sep::after {
  background: rgba(255, 255, 255, 0.05);
}

body.onsites-desk .cw-typing--desk {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px 8px;
  padding: 7px 11px;
  width: fit-content;
  max-width: 70%;
  border: 1px solid var(--cw-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cw-text-2);
  font-size: 13px;
  font-weight: 500;
  animation: onsites-login-in 0.28s cubic-bezier(0.22, 0.9, 0.28, 1) both;
}
body.onsites-desk .cw-typing--desk[hidden] {
  display: none !important;
}
body.onsites-desk .cw-typing-dots {
  display: inline-flex;
  gap: 3px;
}
body.onsites-desk .cw-typing-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--admin-live);
  opacity: 0.5;
  animation: cw-typing-bounce 1.1s ease infinite;
}
body.onsites-desk .cw-typing-dots i:nth-child(2) { animation-delay: 0.15s; }
body.onsites-desk .cw-typing-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes cw-typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-3px); opacity: 1; }
}
body.onsites-desk .cw-post-avatar.tone-visitor { --av-h: 250; }
body.onsites-desk .cw-post-avatar.tone-agent { --av-h: 215; }
body.onsites-desk .cw-post-avatar.tone-member { --av-h: 175; }
body.onsites-desk .cw-post-name {
  font-family: var(--cw-font);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.01em;
}
body.onsites-desk .cw-post-you {
  background: rgba(11, 18, 28, 0.45);
  color: #d4e6f8;
  border: 1px solid rgba(184, 212, 240, 0.25);
}
body.onsites-desk .cw-post-time,
body.onsites-desk .cw-post-gutter-time {
  color: rgba(255, 255, 255, 0.38);
}
body.onsites-desk .cw-post-body {
  color: rgba(255, 255, 255, 0.88);
}
body.onsites-desk .cw-post-body .cw-attach {
  color: var(--admin-glow);
}
body.onsites-desk .cw-post--note {
  background: rgba(255, 200, 61, 0.08);
}
body.onsites-desk .cw-post--note:hover {
  background: rgba(255, 200, 61, 0.12);
}
body.onsites-desk .cw-post-note-icon {
  background: rgba(255, 200, 61, 0.15);
  color: #e8c547;
}
body.onsites-desk .cw-post--note .cw-post-name { color: #e8c547; }
body.onsites-desk .cw-post--note .cw-post-body { color: #f0d78c; }

body.onsites-desk .cw-composer-wrap {
  background: transparent;
  padding: 0 10px 10px;
}
body.onsites-desk .cw-reply-box {
  border-radius: var(--cw-radius);
  background: var(--cw-elev-1);
  border: 1px solid var(--cw-hairline);
  box-shadow: var(--cw-inset), 0 6px 18px rgba(0, 0, 0, 0.22);
}
body.onsites-desk .cw-reply-box.is-note {
  background: rgba(40, 34, 18, 0.92);
  border-color: rgba(240, 215, 140, 0.28);
}
body.onsites-desk .cw-reply-tab {
  border-radius: 8px;
  color: var(--cw-text-3);
}
body.onsites-desk .cw-reply-tab.active {
  background: rgba(107, 155, 200, 0.14);
  color: var(--admin-glow);
}
body.onsites-desk .cw-reply-box.is-note .cw-reply-tab.active {
  background: rgba(240, 215, 140, 0.12);
  color: #f0d78c;
}
body.onsites-desk .cw-reply-editor {
  color: var(--cw-text);
}
body.onsites-desk .cw-send-icon {
  border-radius: var(--cw-radius-sm);
  background: var(--admin-accent);
  color: #0b1218;
}
body.onsites-desk .cw-send-icon:hover {
  background: #7eacd4;
}

body.onsites-desk .cw-composer {
  border-radius: var(--cw-radius);
  background: var(--cw-elev-1);
  border: 1px solid var(--cw-hairline);
  box-shadow: var(--cw-inset);
}
body.onsites-desk .cw-composer.is-note {
  background: rgba(40, 34, 18, 0.9);
  border-color: rgba(240, 215, 140, 0.28);
}
body.onsites-desk .cw-composer-bar .chip {
  border-radius: var(--cw-radius-sm);
  background: transparent;
  color: var(--cw-text-3);
  border: 1px solid transparent;
}
body.onsites-desk .cw-composer-bar .chip.active {
  background: rgba(107, 155, 200, 0.14);
  color: var(--admin-glow);
  border-color: rgba(107, 155, 200, 0.25);
}
body.onsites-desk .cw-composer.is-note .chip.active {
  background: rgba(240, 215, 140, 0.12);
  color: #f0d78c;
  border-color: rgba(240, 215, 140, 0.25);
}
body.onsites-desk .cw-composer .cw-textarea {
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--cw-text);
}
body.onsites-desk .cw-composer .cw-textarea:focus {
  box-shadow: none;
  border: none;
}
body.onsites-desk .cw-file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--cw-text-3);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
body.onsites-desk .cw-file-btn:hover {
  color: var(--admin-glow);
  background: rgba(107, 155, 200, 0.1);
  border-color: rgba(107, 155, 200, 0.22);
}
body.onsites-desk .cw-emoji-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--cw-text-3);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
body.onsites-desk .cw-emoji-btn svg {
  display: block;
}
body.onsites-desk .cw-emoji-btn:hover,
body.onsites-desk .cw-emoji-btn.is-open {
  color: var(--admin-glow);
  background: rgba(107, 155, 200, 0.1);
  border-color: rgba(107, 155, 200, 0.22);
}
body.onsites-desk .cw-emoji-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
body.onsites-desk .cw-mention-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--cw-text-3);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
body.onsites-desk .cw-mention-btn svg {
  display: block;
}
body.onsites-desk .cw-mention-btn:hover,
body.onsites-desk .cw-mention-btn.is-open {
  color: var(--admin-glow);
  background: rgba(107, 155, 200, 0.1);
  border-color: rgba(107, 155, 200, 0.22);
}
body.onsites-desk .cw-mention-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
body.onsites-desk .cw-mention-btn[hidden] {
  display: none !important;
}
/* Fixed portal —escapes thread/composer overflow clipping */
body.onsites-desk .cw-emoji-picker,
.cw-emoji-picker {
  position: fixed;
  z-index: 2400;
  left: 0;
  top: 0;
  width: 308px;
  max-width: calc(100vw - 16px);
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(26, 35, 50, 0.12);
  box-shadow: 0 16px 40px rgba(21, 32, 51, 0.16);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: cw-emoji-pop 0.14s cubic-bezier(0.22, 0.9, 0.28, 1) both;
}
body.onsites-desk .cw-emoji-picker[hidden],
.cw-emoji-picker[hidden] {
  display: none !important;
}
@keyframes cw-emoji-pop {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
body.onsites-desk .cw-emoji-grid,
.cw-emoji-picker .cw-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 2px;
  max-height: min(220px, 40vh);
  overflow: auto;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
}
body.onsites-desk .cw-emoji-item,
.cw-emoji-picker .cw-emoji-item {
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.1s ease;
}
body.onsites-desk .cw-emoji-item:hover,
.cw-emoji-picker .cw-emoji-item:hover {
  background: rgba(61, 126, 176, 0.12);
}
body.onsites-desk .cw-emoji-item:active,
.cw-emoji-picker .cw-emoji-item:active {
  background: rgba(61, 126, 176, 0.2);
}
body.onsites-desk .cw-reply-box {
  position: relative;
  overflow: hidden;
}
/* Fixed portal —escapes composer overflow / does not push Reply tabs */
body.onsites-desk .cw-canned-picker {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2300;
  display: flex;
  flex-direction: column;
  width: min(560px, calc(100vw - 16px));
  height: min(340px, 48vh);
  max-height: min(340px, 48vh);
  margin: 0;
  background: #fff;
  border: 1px solid rgba(26, 35, 50, 0.12);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(26, 35, 50, 0.16);
  backdrop-filter: none;
  overflow: hidden;
  color: #152033;
  animation: onsites-login-in 0.16s cubic-bezier(0.22, 0.9, 0.28, 1) both;
}
body.onsites-desk .cw-canned-picker[hidden] {
  display: none !important;
}
body.onsites-desk .cw-canned-picker-head a,
body.onsites-desk .cw-canned-picker-title a {
  color: #2f6f9f;
  text-decoration: none;
  font-weight: 560;
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
}
body.onsites-desk .cw-canned-picker-head a:hover,
body.onsites-desk .cw-canned-picker-title a:hover {
  text-decoration: underline;
}
body.onsites-desk .cw-canned-picker-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0;
}
body.onsites-desk .cw-canned-empty {
  padding: 18px 14px;
  text-align: center;
  font-size: 13px;
  color: var(--cw-text-3);
  line-height: 1.5;
}
body.onsites-desk .cw-canned-empty a {
  color: var(--admin-glow);
}
body.onsites-desk .cw-canned-body {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
body.onsites-desk .cw-canned-rail {
  min-height: 0;
  overflow: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}
body.onsites-desk .cw-canned-folders {
  display: flex;
  flex-direction: column;
  padding: 4px 0 8px;
}
body.onsites-desk .cw-canned-rail-label {
  padding: 8px 10px 3px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cw-text-3);
}
body.onsites-desk .cw-canned-rail-label:not(:first-child) {
  margin-top: 4px;
}
body.onsites-desk .cw-canned-folder {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--cw-text-2);
  text-align: left;
  padding: 4px 10px;
  cursor: pointer;
  font: 600 13px/1.2 var(--cw-font);
}
body.onsites-desk .cw-canned-folder:hover {
  background: rgba(107, 155, 200, 0.1);
}
body.onsites-desk .cw-canned-folder.is-on {
  background: rgba(107, 155, 200, 0.16);
  color: var(--cw-text);
}
body.onsites-desk .cw-canned-folder-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.onsites-desk .cw-canned-folder-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--cw-text-3);
}
body.onsites-desk .cw-canned-folder--root .cw-canned-ico-svg {
  color: #6b8fad;
}
body.onsites-desk .cw-canned-folder--private .cw-canned-ico-svg {
  color: #9a7b4f;
}
body.onsites-desk .cw-canned-files {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
body.onsites-desk .cw-canned-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(72px, 38%);
  gap: 8px;
  align-items: center;
  padding: 4px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cw-text-3);
  flex-shrink: 0;
}
body.onsites-desk .cw-canned-col-meta {
  text-align: right;
}
body.onsites-desk .cw-canned-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(72px, 38%);
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 5px 12px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0;
  background: transparent;
  color: var(--cw-text-2);
  cursor: pointer;
  font-family: var(--cw-font);
  text-align: left;
}
body.onsites-desk .cw-canned-row:last-child {
  border-bottom: 0;
}
body.onsites-desk .cw-canned-row:hover,
body.onsites-desk .cw-canned-row.is-active {
  background: rgba(107, 155, 200, 0.14);
  color: var(--cw-text);
}
body.onsites-desk .cw-canned-ico,
body.onsites-desk .cw-canned-ico-svg {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  color: #c9a227;
  flex-shrink: 0;
}
body.onsites-desk .cw-canned-ico-svg--file {
  color: #7a93b0;
}
body.onsites-desk .cw-canned-name {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 0;
  font-size: 13px;
  color: var(--cw-text);
  overflow: hidden;
  white-space: nowrap;
}
body.onsites-desk .cw-canned-t {
  flex: 0 1 auto;
  min-width: 0;
  font-weight: 650;
  color: var(--cw-text);
  overflow: hidden;
  text-overflow: ellipsis;
}
body.onsites-desk .cw-canned-sep {
  flex: 0 0 auto;
  margin: 0 0.45em;
  font-weight: 500;
  color: var(--cw-text-3);
  opacity: 0.85;
}
body.onsites-desk .cw-canned-b {
  flex: 1 1 0;
  min-width: 0;
  font-weight: 450;
  color: var(--cw-text-3);
  overflow: hidden;
  text-overflow: ellipsis;
}
body.onsites-desk .cw-canned-b--solo {
  flex: 1 1 auto;
  font-weight: 550;
  color: var(--cw-text);
}
body.onsites-desk .cw-canned-meta {
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--cw-text-3);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.onsites-desk .cw-canned-picker-foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 5px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: var(--cw-text-3);
  flex-shrink: 0;
}
body.onsites-desk .cw-canned-picker-foot kbd {
  display: inline-block;
  margin-right: 1px;
  padding: 0 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
}

/* Canned picker —Settings-like FS (rail + files), fixed overlay */
body.onsites-desk .cw-canned-picker {
  display: flex;
  flex-direction: column;
  height: min(340px, 48vh);
  max-height: min(340px, 48vh);
  margin: 0;
  border: 1px solid rgba(26, 35, 50, 0.12);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(26, 35, 50, 0.16);
  overflow: hidden;
}
body.onsites-desk .cw-canned-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  padding: 7px 12px;
  border-bottom: 1px solid rgba(14, 21, 32, 0.08);
  background: #fafbfc;
}
body.onsites-desk .cw-canned-path {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: 13px;
  font-weight: 650;
  color: #152033;
}
body.onsites-desk .cw-canned-path-root {
  color: #8a93a3;
  font-weight: 600;
}
body.onsites-desk .cw-canned-path-sep {
  color: #c0c6d0;
  opacity: 1;
}
body.onsites-desk .cw-canned-path-leaf {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.onsites-desk .cw-canned-picker-head a {
  flex-shrink: 0;
  color: var(--admin-glow);
  text-decoration: none;
  font-size: 13px;
  font-weight: 560;
}
body.onsites-desk .cw-canned-picker-head a:hover {
  text-decoration: underline;
}
body.onsites-desk .cw-canned-picker-modes,
body.onsites-desk .cw-canned-mode,
body.onsites-desk .cw-canned-picker-tags,
body.onsites-desk .cw-canned-filter-chips,
body.onsites-desk .cw-canned-lib-tags,
body.onsites-desk .cw-canned-row-tags,
body.onsites-desk .cw-canned-chip,
body.onsites-desk .cw-canned-star {
  display: none;
}

body.onsites-desk .cw-banner {
  background: rgba(107, 155, 200, 0.08);
  border-bottom: 1px solid rgba(107, 155, 200, 0.2);
  color: var(--cw-text-2);
}

body.onsites-desk .cw-contact .hero .name {
  font-family: var(--cw-display);
  letter-spacing: -0.03em;
}
body.onsites-desk .cw-contact-actions {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body.onsites-desk .cw-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(34, 211, 166, 0.35);
  background: rgba(34, 211, 166, 0.08);
  color: #7dffd0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
body.onsites-desk .cw-status-pill.is-resolved {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cw-text-3);
}

body.onsites-desk .cw-empty { gap: 10px; }
body.onsites-desk .cw-empty-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cw-border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--admin-glow);
  font-family: var(--cw-display);
  font-size: 13px;
  margin-bottom: 4px;
}
body.onsites-desk .cw-empty strong {
  font-family: var(--cw-display);
  letter-spacing: -0.03em;
  color: var(--cw-text-2);
}
body.onsites-desk .cw-empty span {
  color: var(--cw-text-3);
  font-size: 13px;
  max-width: 240px;
  line-height: 1.5;
}

body.onsites-desk .cw-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #7dffd0;
  margin-right: 4px;
}
body.onsites-desk .cw-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--admin-live);
  box-shadow: 0 0 0 3px rgba(34, 211, 166, 0.16);
  animation: onsites-live 1.6s ease-in-out infinite;
}
@keyframes onsites-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

body.onsites-desk .cw-attach { color: var(--admin-glow); border-color: var(--cw-border); }
body.onsites-desk .cw-img { border-radius: 4px; border: 1px solid var(--cw-border); cursor: zoom-in; }
body.onsites-desk .cw-img-viewer-btn:hover,
body.onsites-desk .cw-img-viewer-nav:hover {
  border-color: rgba(15, 159, 122, 0.55);
}

body.onsites-desk .cw-room-create {
  padding: 12px;
  border-top: 1px solid var(--cw-border);
  display: flex;
  gap: 8px;
  background: rgba(28, 28, 28, 0.45);
}

/* ——Settings ——*/
body.onsites-desk .cw-shell > .cw-settings {
  min-height: 0;
  overflow: hidden;
}
body.onsites-desk .cw-settings {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  background: var(--cw-home-bg, #08090c);
}
body.onsites-desk .cw-settings-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  overflow: hidden;
  background: var(--cw-home-bg, #08090c);
}
body.onsites-desk .cw-settings-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px 8px 16px;
  border-right: 0;
  background: transparent;
  overflow: auto;
}
body.onsites-desk .cw-settings-nav-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 28px;
  padding: 0 10px 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--cw-text-2);
  text-align: left;
  cursor: pointer;
  font-family: var(--cw-font);
  transition: background var(--cw-duration) ease, color var(--cw-duration) ease;
}
body.onsites-desk .cw-settings-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--cw-text);
}
body.onsites-desk .cw-settings-nav-item.active {
  background: rgba(255, 255, 255, 0.11);
  color: var(--cw-text);
  box-shadow: none;
}
body.onsites-desk .cw-settings-nav-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
body.onsites-desk .cw-settings-nav-item.active .cw-settings-nav-label {
  color: inherit;
}
body.onsites-desk .cw-settings-nav-hint {
  display: none;
}
body.onsites-desk .cw-settings-nav-item.active .cw-settings-nav-hint {
  display: none;
}
body.onsites-desk .cw-settings-body {
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 0;
  background: #12141a;
  scrollbar-width: thin;
}
body.onsites-desk .cw-settings-body .panel {
  display: none;
  max-width: none;
  width: 100%;
  animation: cwSettingsIn var(--cw-duration) var(--cw-ease);
}
body.onsites-desk .cw-settings-body .panel.on {
  display: block;
}
@keyframes cwSettingsIn {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  body.onsites-desk .cw-settings-body .panel {
    animation: none;
  }
}
/* Settings sections = full-bleed strips (not cards) */
body.onsites-desk .cw-settings .card-block {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 22px var(--cw-page-inset-x) 26px;
  margin: 0;
  box-shadow: none;
  border-bottom: 1px solid rgba(14, 21, 32, 0.08);
}
body.onsites-desk .cw-settings .card-block:last-child {
  border-bottom: 0;
}
body.onsites-desk .card-block {
  background: var(--cw-elev-1);
  border: 1px solid var(--cw-hairline);
  border-radius: 10px;
  padding: 18px 20px 20px;
  margin-bottom: 14px;
  box-shadow: var(--cw-inset), 0 6px 20px rgba(0, 0, 0, 0.18);
}
body.onsites-desk .card-block-head {
  margin-bottom: 16px;
}
body.onsites-desk .cw-invite-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
body.onsites-desk .cw-members-panel > .card-block-head {
  margin-bottom: 18px;
}
body.onsites-desk .cw-members-invite {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0 20px;
  align-items: start;
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: var(--cw-radius);
  border: 1px solid var(--cw-hairline);
  background: var(--cw-elev-2);
  box-shadow: var(--cw-inset);
}
body.onsites-desk .cw-members-invite-pane {
  min-width: 0;
}
body.onsites-desk .cw-members-invite-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cw-text-3);
}
body.onsites-desk .cw-members-invite-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
body.onsites-desk .cw-members-invite-row .cw-input {
  flex: 1 1 140px;
  min-width: 0;
}
body.onsites-desk .cw-members-invite-row .cw-members-role {
  flex: 0 0 108px;
}
body.onsites-desk .cw-members-invite-row .cw-btn {
  flex: 0 0 auto;
}
body.onsites-desk .cw-members-link-hint {
  font-size: 13px;
}
body.onsites-desk .cw-members-invite-divider {
  width: 1px;
  align-self: stretch;
  background: var(--cw-hairline);
  margin: 2px 0;
}
body.onsites-desk .cw-members-invite-url {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: var(--cw-radius-sm);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--cw-hairline);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-all;
  color: #c5d8ec;
  box-shadow: var(--cw-inset);
}
body.onsites-desk .cw-members-invite .cw-form-status {
  margin: 8px 0 0;
  font-size: 13px;
}
body.onsites-desk .cw-members-list {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--cw-hairline);
}
body.onsites-desk .cw-settings .cw-member-online {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--cw-muted, #6b7280);
}
body.onsites-desk .cw-settings .cw-member-online[data-status="online"] {
  color: var(--cw-text, #111827);
}
body.onsites-desk .cw-settings .cw-member-accept-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 2px;
  border: 0;
  background: transparent;
  cursor: pointer;
  vertical-align: middle;
}
body.onsites-desk .cw-settings .cw-member-accept-switch:focus-visible {
  outline: 2px solid rgba(47, 158, 111, 0.45);
  outline-offset: 2px;
  border-radius: 999px;
}
body.onsites-desk .cw-settings .cw-member-accept-switch:disabled,
body.onsites-desk .cw-settings .cw-member-accept-switch.is-readonly {
  cursor: default;
  opacity: 0.85;
}
body.onsites-desk .cw-settings .cw-member-accept-track {
  position: relative;
  display: block;
  width: 36px;
  height: 22px;
  border-radius: 999px;
  background: #d1d5db;
  box-shadow: inset 0 0 0 1px rgba(26, 35, 50, 0.08);
  transition: background 0.18s ease;
}
body.onsites-desk .cw-settings .cw-member-accept-switch.is-on .cw-member-accept-track {
  background: #2f9e6f;
}
body.onsites-desk .cw-settings .cw-member-accept-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease;
}
body.onsites-desk .cw-settings .cw-member-accept-switch.is-on .cw-member-accept-knob {
  transform: translateX(14px);
}
body.onsites-desk .cw-members-list .cw-table-wrap {
  margin-top: 12px;
  border: none;
  background: transparent;
}
body.onsites-desk .cw-members-panel #adminOnlyHint {
  margin: -6px 0 12px;
}
@media (max-width: 960px) {
  body.onsites-desk .cw-members-invite {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  body.onsites-desk .cw-members-invite-divider {
    width: auto;
    height: 1px;
    margin: 0;
  }
}
body.onsites-desk .card-block-head h3,
body.onsites-desk .card-block > h3 {
  margin: 0;
  font-family: var(--cw-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
body.onsites-desk .card-block-desc {
  margin: 6px 0 0;
  color: var(--cw-text-3);
  font-size: 13px;
  line-height: 1.45;
  max-width: 46rem;
}
body.onsites-desk .card-block-desc code,
body.onsites-desk .cw-settings code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #b8d4f0;
}
body.onsites-desk .cw-profile-card .card-block-head {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(14, 21, 32, 0.08);
}
body.onsites-desk .cw-profile-identity {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(14, 21, 32, 0.08);
}
body.onsites-desk .cw-profile-identity .cw-avatar.lg {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  flex-shrink: 0;
  border: 1px solid rgba(14, 21, 32, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
body.onsites-desk .cw-profile-identity-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
body.onsites-desk .cw-profile-avatar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
body.onsites-desk .cw-profile-upload {
  cursor: pointer;
}
body.onsites-desk .cw-profile-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

/* ——Avatar crop modal ——*/
body.onsites-desk .cw-avatar-crop {
  position: fixed;
  inset: 0;
  z-index: 12050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
body.onsites-desk .cw-avatar-crop[hidden] {
  display: none !important;
}
body.onsites-desk .cw-avatar-crop-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 21, 32, 0.48);
}
body.onsites-desk .cw-avatar-crop-panel {
  position: relative;
  width: min(520px, 100%);
  background: #f4f7fb;
  border: 1px solid rgba(14, 21, 32, 0.1);
  box-shadow: 0 18px 48px rgba(14, 21, 32, 0.22);
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 720px);
}
body.onsites-desk .cw-avatar-crop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(14, 21, 32, 0.08);
  background: #fff;
}
body.onsites-desk .cw-avatar-crop-head strong {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #152033;
}
body.onsites-desk .cw-avatar-crop-x {
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b7585;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
body.onsites-desk .cw-avatar-crop-x:hover {
  color: #152033;
}
body.onsites-desk .cw-avatar-crop-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 16px;
  padding: 16px;
  min-height: 0;
  overflow: auto;
}
body.onsites-desk .cw-avatar-crop-stage {
  min-width: 0;
}
body.onsites-desk .cw-avatar-crop-viewport {
  position: relative;
  width: min(100%, min(56vh, 360px));
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0 auto;
  overflow: hidden;
  background: #1a2332;
  border: 1px solid rgba(14, 21, 32, 0.12);
  border-radius: 10px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
body.onsites-desk .cw-avatar-crop-viewport.is-dragging {
  cursor: grabbing;
}
body.onsites-desk .cw-avatar-crop-img {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  max-height: none;
  pointer-events: none;
  will-change: transform;
}
body.onsites-desk .cw-avatar-crop-frame {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
body.onsites-desk .cw-avatar-crop-hint {
  margin: 8px 0 0;
  font-size: 13px;
  text-align: center;
  color: #7b8494;
}
body.onsites-desk .cw-avatar-crop-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}
body.onsites-desk .cw-avatar-crop-preview-label,
body.onsites-desk .cw-avatar-crop-zoom-label {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a93a3;
}
body.onsites-desk .cw-avatar-crop-preview {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 1px solid rgba(14, 21, 32, 0.1);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  display: block;
}
body.onsites-desk .cw-avatar-crop-zoom-label {
  margin-top: 10px;
  align-self: stretch;
  text-align: center;
}
body.onsites-desk .cw-avatar-crop-zoom {
  width: 100%;
  accent-color: #2f6f9f;
  cursor: pointer;
}
body.onsites-desk .cw-avatar-crop-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(14, 21, 32, 0.08);
  background: #fff;
}
@media (max-width: 640px) {
  body.onsites-desk .cw-avatar-crop-body {
    grid-template-columns: 1fr;
  }
  body.onsites-desk .cw-avatar-crop-side {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 14px;
  }
  body.onsites-desk .cw-avatar-crop-zoom-label {
    margin-top: 0;
    width: 100%;
  }
}
body.onsites-desk .cw-profile-fields {
  min-width: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
body.onsites-desk .cw-pref-block {
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid rgba(14, 21, 32, 0.08);
}
body.onsites-desk .cw-pref-block .card-block-head {
  margin-bottom: 16px;
  padding-bottom: 0;
  border-bottom: 0;
}
body.onsites-desk .cw-pref-block .card-block-head h3 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #152033;
}
body.onsites-desk .cw-pref-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #3d4656;
}
body.onsites-desk .cw-pref-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
body.onsites-desk .cw-pref-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  margin: 0;
  border: 1px solid rgba(14, 21, 32, 0.12);
  background: #fff;
  color: #3d4656;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}
body.onsites-desk .cw-pref-radio:hover {
  border-color: rgba(47, 111, 159, 0.35);
}
body.onsites-desk .cw-pref-radio:has(input:checked) {
  border-color: rgba(47, 111, 159, 0.55);
  background: rgba(47, 111, 159, 0.06);
  color: #1d4f75;
}
body.onsites-desk .cw-pref-radio input {
  margin: 0;
  accent-color: #2f6f9f;
}
body.onsites-desk .cw-pref-block #prefTimePreview {
  margin-top: 8px;
}
body.onsites-desk .cw-profile-actions {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(14, 21, 32, 0.08);
}
body.onsites-desk .cw-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  max-width: 720px;
}
body.onsites-desk .cw-profile-grid .field--full {
  grid-column: 1 / -1;
}
body.onsites-desk .cw-profile-fields .field,
body.onsites-desk .row .field,
body.onsites-desk .cw-form-grid .field {
  margin: 0;
}
body.onsites-desk .cw-profile-fields .field label:not(.cw-btn),
body.onsites-desk .row .field label:not(.cw-btn),
body.onsites-desk .cw-form-grid .field label:not(.cw-btn) {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cw-text-3);
}
body.onsites-desk .cw-profile-actions {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(14, 21, 32, 0.08);
  max-width: 720px;
}
body.onsites-desk .cw-agent-who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
body.onsites-desk .cw-agent-who .cw-avatar {
  width: 24px;
  height: 24px;
}
body.onsites-desk .row,
body.onsites-desk .row--form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 0;
  align-items: flex-end;
}
body.onsites-desk .row .field {
  flex: 1 1 160px;
  min-width: 140px;
}
body.onsites-desk .field--sm { flex: 0 0 112px; min-width: 112px; }
body.onsites-desk .field--md { flex: 0 0 150px; min-width: 140px; }
body.onsites-desk .field--lg { flex: 0 0 220px; min-width: 180px; }
body.onsites-desk .field--color { flex: 0 0 120px; min-width: 100px; }
body.onsites-desk .cw-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin-bottom: 16px;
}
body.onsites-desk .cw-form-grid .field--span-2 {
  grid-column: 1 / -1;
}
body.onsites-desk .cw-form-grid .field--color,
body.onsites-desk .cw-form-grid .field--md {
  max-width: 180px;
}
body.onsites-desk .cw-input-color {
  padding: 4px 6px;
  height: 36px;
  cursor: pointer;
}
body.onsites-desk .cw-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 4px;
}
body.onsites-desk .row--form .cw-form-actions {
  margin-top: 0;
  padding-bottom: 1px;
}
body.onsites-desk .cw-form-actions--split {
  width: 100%;
  justify-content: space-between;
  margin-top: 14px;
}
body.onsites-desk .cw-form-status {
  margin: 0;
  font-size: 13px;
}
body.onsites-desk .cw-form-note,
body.onsites-desk .cw-admin-hint {
  margin: 12px 0 0;
}
body.onsites-desk .cw-admin-hint[hidden],
body.onsites-desk .cw-embed-warn[hidden],
body.onsites-desk .cw-form-status[hidden] {
  display: none !important;
}

/* —— AI models (LLM) settings —— */
body.onsites-desk .cw-llm-panel {
  max-width: 640px;
}
body.onsites-desk .cw-llm-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
body.onsites-desk .cw-llm-head .card-block-desc {
  margin-bottom: 0;
}
body.onsites-desk .cw-llm-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(14, 21, 32, 0.1);
  background: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 650;
  color: rgba(21, 32, 51, 0.72);
  white-space: nowrap;
}
body.onsites-desk .cw-llm-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: #94a3b8;
}
body.onsites-desk .cw-llm-status[data-status="ok"] {
  border-color: rgba(15, 159, 122, 0.22);
  background: rgba(15, 159, 122, 0.08);
  color: #0b7a5d;
}
body.onsites-desk .cw-llm-status[data-status="ok"] .cw-llm-status-dot {
  background: var(--admin-live, #0f9f7a);
}
body.onsites-desk .cw-llm-status[data-status="fail"] {
  border-color: rgba(212, 86, 102, 0.22);
  background: rgba(212, 86, 102, 0.08);
  color: #b43d4d;
}
body.onsites-desk .cw-llm-status[data-status="fail"] .cw-llm-status-dot {
  background: var(--cw-danger, #d45666);
}
body.onsites-desk .cw-llm-actions {
  margin-top: 4px;
  gap: 8px;
}

/* —— Widget AI toggle (settings) —— */
body.onsites-desk .cw-widget-ai-block {
  margin-top: 8px;
}
body.onsites-desk .cw-widget-ai-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 0;
}
body.onsites-desk .cw-widget-ai-copy {
  min-width: 0;
  flex: 1 1 auto;
}
body.onsites-desk .cw-widget-ai-copy .card-block-desc {
  margin-bottom: 0;
  max-width: 44ch;
}
body.onsites-desk .cw-widget-ai-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 0;
  padding: 6px 8px 6px 12px;
  border: 1px solid rgba(26, 35, 50, 0.1);
  border-radius: 999px;
  background: #fff;
  color: #6b7585;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
body.onsites-desk .cw-widget-ai-toggle:hover:not(:disabled) {
  border-color: rgba(26, 35, 50, 0.18);
  background: #fafbfc;
  color: #152033;
}
body.onsites-desk .cw-widget-ai-toggle:focus-visible {
  outline: 2px solid rgba(47, 158, 111, 0.4);
  outline-offset: 2px;
}
body.onsites-desk .cw-widget-ai-toggle:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
body.onsites-desk .cw-widget-ai-toggle.is-on {
  border-color: rgba(47, 158, 111, 0.28);
  background: rgba(47, 158, 111, 0.08);
  color: #0b7a5d;
}
body.onsites-desk .cw-widget-ai-toggle .cw-switch {
  background: #d1d5db;
  box-shadow: inset 0 0 0 1px rgba(26, 35, 50, 0.08);
}
body.onsites-desk .cw-widget-ai-toggle.is-on .cw-switch {
  background: #2f9e6f;
  box-shadow: none;
}
body.onsites-desk .cw-widget-ai-toggle .cw-switch-knob {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
body.onsites-desk .cw-widget-ai-block .cw-form-status {
  margin-top: 10px;
}
body.onsites-desk .cw-widget-ai-block .cw-admin-hint {
  margin-top: 10px;
}
@media (max-width: 640px) {
  body.onsites-desk .cw-widget-ai-head {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  body.onsites-desk .cw-widget-ai-toggle {
    align-self: flex-start;
    margin-top: 0;
  }
}

body.onsites-desk .cw-embed-warn {
  margin: 0 0 12px;
  color: #e0b46a;
  font-size: 13px;
  line-height: 1.4;
}
body.onsites-desk .cw-embed-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
}
body.onsites-desk .cw-embed-links a {
  color: var(--admin-glow);
  text-decoration: none;
}
body.onsites-desk .cw-embed-links a:hover {
  text-decoration: underline;
}
body.onsites-desk .cw-table-wrap {
  overflow: auto;
  margin: 0 -4px;
  border-radius: 6px;
}
body.onsites-desk table.cw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
body.onsites-desk table.cw-table th,
body.onsites-desk table.cw-table td {
  text-align: left;
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}
body.onsites-desk table.cw-table th {
  color: var(--cw-text-3);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
body.onsites-desk table.cw-table tr:last-child td {
  border-bottom: 0;
}
body.onsites-desk table.cw-table tr:hover td {
  background: rgba(107, 155, 200, 0.045);
}
body.onsites-desk table.cw-table .cw-btn {
  height: 28px;
  padding: 0 10px;
  font-size: 13px;
}
body.onsites-desk .muted { color: var(--cw-text-3); font-size: 13px; }
body.onsites-desk .embed-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  background: #0a0a0b;
  color: #c5d7e8;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 280px;
  overflow: auto;
}
body.onsites-desk .badge-off {
  color: #f0d78c;
  font-size: 13px;
  font-weight: 600;
}
body.onsites-desk .badge-on {
  color: #7dffd0;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 960px) {
  body.onsites-desk .cw-settings-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  body.onsites-desk .cw-settings-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--cw-border);
    overflow-x: auto;
  }
  body.onsites-desk .cw-settings-nav-item {
    flex: 0 0 auto;
    min-width: 120px;
    padding: 8px 12px;
  }
  body.onsites-desk .cw-settings-nav-item.active {
    box-shadow: inset 0 -2px 0 var(--admin-accent);
  }
  body.onsites-desk .cw-settings-nav-hint {
    display: none;
  }
  body.onsites-desk .cw-profile-identity {
    align-items: flex-start;
  }
  body.onsites-desk .cw-profile-grid {
    grid-template-columns: 1fr;
  }
  body.onsites-desk .cw-form-grid {
    grid-template-columns: 1fr;
  }
  body.onsites-desk .cw-form-grid .field--color,
  body.onsites-desk .cw-form-grid .field--md {
    max-width: none;
  }
}

/* ——Inbox list pane ——*/
body.onsites-desk .cw-list-top {
  flex-shrink: 0;
  min-height: var(--cw-list-head-h);
  box-sizing: border-box;
  padding: 12px var(--cw-list-head-pad-x) 12px;
  border-bottom: 1px solid var(--cw-border);
  background: rgba(20, 20, 22, 0.65);
}
body.onsites-desk .cw-list-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}
body.onsites-desk .cw-list-title-row h2 {
  margin: 0;
  font-family: var(--cw-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
body.onsites-desk .cw-list-title-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
body.onsites-desk .cw-status-dd {
  position: relative;
}
body.onsites-desk .cw-status-dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  color: var(--cw-text-3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: var(--cw-font);
  border-radius: var(--cw-radius-sm);
}
body.onsites-desk .cw-status-dd-btn:hover {
  color: var(--cw-text-2);
  border-color: rgba(255, 255, 255, 0.14);
}
body.onsites-desk .cw-status-dd-btn[aria-expanded="true"] {
  color: var(--admin-glow);
  border-color: rgba(107, 155, 200, 0.35);
}
body.onsites-desk .cw-status-dd-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  min-width: 120px;
  padding: 4px;
  border: 1px solid var(--cw-border);
  background: var(--cw-surface-1);
  border-radius: var(--cw-radius-sm);
}
body.onsites-desk .cw-status-dd-menu[hidden] {
  display: none !important;
}
body.onsites-desk .cw-status-dd-menu button {
  display: block;
  width: 100%;
  height: 28px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--cw-text-2);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  font-family: var(--cw-font);
  border-radius: 4px;
}
body.onsites-desk .cw-status-dd-menu button:hover,
body.onsites-desk .cw-status-dd-menu button[aria-selected="true"] {
  background: rgba(107, 155, 200, 0.12);
  color: var(--admin-glow);
}
body.onsites-desk .cw-status-seg {
  display: inline-flex;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--cw-radius-sm);
}
body.onsites-desk .cw-status-seg button {
  height: 24px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--cw-text-3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: var(--cw-font);
  border-radius: 4px;
}
body.onsites-desk .cw-status-seg button:hover {
  color: var(--cw-text-2);
}
body.onsites-desk .cw-status-seg button.on {
  background: rgba(107, 155, 200, 0.16);
  color: var(--admin-glow);
}
body.onsites-desk .cw-list-top .cw-count {
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  color: var(--cw-text-3);
  border-radius: var(--cw-radius-sm);
}
body.onsites-desk .cw-list-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body.onsites-desk .cw-inbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
body.onsites-desk .cw-inbox-kicker {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cw-text-3);
}
body.onsites-desk .cw-inbox-select {
  flex: 1;
  min-width: 0;
  height: 28px;
  padding: 0 28px 0 10px;
  border-radius: var(--cw-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.45)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
      right 8px center / 12px no-repeat,
    rgba(0, 0, 0, 0.22);
  color: var(--cw-text);
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  appearance: none;
  cursor: pointer;
}
body.onsites-desk .cw-inbox-select:hover,
body.onsites-desk .cw-inbox-select:focus {
  border-color: rgba(255, 255, 255, 0.16);
  outline: none;
}
body.onsites-desk .cw-scope-row {
  display: flex;
  gap: 2px;
  padding: 2px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--cw-radius-sm);
}
body.onsites-desk .cw-scope {
  flex: 1;
  height: 24px;
  padding: 0 4px;
  border: none;
  background: transparent;
  color: var(--cw-text-3);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--cw-font);
  letter-spacing: -0.02em;
  position: relative;
  border-radius: 4px;
  transition: color 0.14s ease, background 0.14s ease;
  white-space: nowrap;
}
body.onsites-desk .cw-scope:hover { color: var(--cw-text-2); }
body.onsites-desk .cw-scope.on {
  color: var(--cw-text);
  background: rgba(107, 155, 200, 0.12);
}
body.onsites-desk .cw-scope:focus-visible {
  outline: 1px solid rgba(107, 155, 200, 0.45);
  outline-offset: 1px;
}
body.onsites-desk .cw-scope.on::after { display: none; }
body.onsites-desk .cw-scope-n {
  margin-left: 3px;
  color: var(--cw-text-3);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 13px;
}
body.onsites-desk .cw-scope.on .cw-scope-n {
  color: var(--admin-glow);
}
body.onsites-desk .cw-scope.is-hot .cw-scope-n {
  color: #f0b429;
  animation: cwBadgePulse 1.4s ease-in-out infinite;
}
body.onsites-desk .cw-empty-list {
  height: 240px;
  padding: 28px 20px;
}
body.onsites-desk .cw-empty-list span {
  max-width: 220px;
  text-align: center;
  line-height: 1.45;
}
body.onsites-desk .cw-empty-list .cw-empty-cta {
  display: inline-flex;
  margin-top: 14px;
  height: 30px;
  padding: 0 12px;
  align-items: center;
  border: 1px solid rgba(107, 155, 200, 0.35);
  background: rgba(107, 155, 200, 0.12);
  color: var(--admin-glow);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--cw-font);
  border-radius: var(--cw-radius-sm);
  cursor: pointer;
}
body.onsites-desk .cw-empty-list .cw-empty-cta:hover {
  background: rgba(107, 155, 200, 0.2);
}

body.onsites-desk .cw-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  transform: translateX(-50%) translateY(8px);
  padding: 10px 16px;
  background: #ffffff;
  border: 1px solid rgba(15, 159, 122, 0.3);
  border-left: 3px solid var(--admin-live);
  border-radius: var(--cw-radius-sm);
  box-shadow: 0 10px 28px rgba(8, 12, 18, 0.16);
  color: #1f2a37;
  font-size: 13px;
  font-weight: 560;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
body.onsites-desk .cw-toast.on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
body.onsites-desk .cw-toast.cw-toast--actions.on {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(520px, calc(100vw - 24px));
}
body.onsites-desk .cw-toast-msg {
  flex: 1 1 auto;
  min-width: 0;
}
body.onsites-desk .cw-toast-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
body.onsites-desk .cw-toast-act {
  appearance: none;
  border: 0;
  background: transparent;
  color: #1a73e8;
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  padding: 4px 8px;
  cursor: pointer;
  white-space: nowrap;
}
body.onsites-desk .cw-toast-act:hover {
  text-decoration: underline;
}
body.onsites-desk .cw-toast-act--primary {
  background: rgba(26, 115, 232, 0.1);
  border-radius: 4px;
}

body.onsites-desk .cw-list-top .cw-search,
body.onsites-desk .cw-visitors-tools .cw-search {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 8px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--cw-radius-sm);
  transition: border-color 0.15s ease, background 0.15s ease;
}
body.onsites-desk .cw-list-top .cw-search:focus-within,
body.onsites-desk .cw-visitors-tools .cw-search:focus-within {
  border-color: rgba(107, 155, 200, 0.4);
  background: rgba(107, 155, 200, 0.06);
}
body.onsites-desk .cw-list-top .cw-search svg,
body.onsites-desk .cw-visitors-tools .cw-search svg {
  opacity: 0.38;
  flex-shrink: 0;
  color: var(--cw-text-3);
}
body.onsites-desk .cw-list-top .cw-search:focus-within svg,
body.onsites-desk .cw-visitors-tools .cw-search:focus-within svg {
  opacity: 0.9;
  color: var(--admin-glow);
}
body.onsites-desk .cw-list-top .cw-search input,
body.onsites-desk .cw-visitors-tools .cw-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--cw-text);
  font-size: 13px;
  font-family: var(--cw-font);
  outline: none;
}
body.onsites-desk .cw-list-top .cw-search input::placeholder,
body.onsites-desk .cw-visitors-tools .cw-search input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}
body.onsites-desk .cw-list-top .cw-search input::-webkit-search-cancel-button,
body.onsites-desk .cw-visitors-tools .cw-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

body.onsites-desk .cw-list-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
body.onsites-desk .cw-list-pane .cw-conv-list {
  flex: 1;
  min-height: 0;
}
body.onsites-desk .cw-list-pane .cw-conv-list.is-switching {
  /* Soft hint only —avoid the old 0.4 opacity "stutter" on tab switch */
  opacity: 0.92;
  pointer-events: none;
}

body.onsites-desk .cw-conv-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 9px 10px 9px 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  border-left: 2px solid transparent;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
body.onsites-desk .cw-conv-card:hover {
  background: rgba(255, 255, 255, 0.03);
}
body.onsites-desk .cw-conv-card.active {
  background: rgba(15, 159, 122, 0.08);
  border-left-color: var(--admin-live);
  box-shadow: inset 0 0 0 1px rgba(15, 159, 122, 0.45);
}
body.onsites-desk .cw-conv-card.unread:not(.active) {
  border-left-color: var(--admin-live);
}
body.onsites-desk .cw-conv-card.is-waiting {
  border-left-color: #e07a7a;
}
body.onsites-desk .cw-conv-card > .cw-avatar-wrap {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  margin-top: 1px;
}
body.onsites-desk .cw-conv-card > .cw-avatar-wrap > .cw-avatar {
  width: 100%;
  height: 100%;
}
body.onsites-desk .cw-presence-mark {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #64748b;
  border: 2px solid #1a2332;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 2;
}
body.onsites-desk .cw-presence-mark[data-status="online"] {
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: cwPresencePulse 1.85s ease-out infinite;
}
body.onsites-desk .cw-presence-mark[data-status="away"] {
  background: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.18);
}
body.onsites-desk .cw-presence-mark[data-status="offline"] {
  background: #94a3b8;
  opacity: 0.9;
}
@keyframes cwPresencePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  }
  65% {
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.onsites-desk .cw-presence-mark[data-status="online"] {
    animation: none;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.28);
  }
}
body.onsites-desk .cw-conv-card .body {
  min-width: 0;
}
body.onsites-desk .cw-conv-card .name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.onsites-desk .cw-conv-card .time {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}
body.onsites-desk .cw-conv-card .time.is-waiting {
  color: #f0a0a0;
  font-weight: 600;
}
body.onsites-desk .cw-conv-card .preview {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.36);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.onsites-desk .cw-conv-card.unread .preview {
  color: rgba(255, 255, 255, 0.62);
}
body.onsites-desk .cw-conv-card .meta-row {
  margin-top: 3px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.26);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.onsites-desk .cw-conv-card .badge-pos {
  top: 10px;
  right: 8px;
}

body.onsites-desk .cw-transfer-wrap { position: relative; }
body.onsites-desk .cw-transfer-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 200px;
  max-height: 260px;
  overflow: auto;
  z-index: 40;
  padding: 4px 0;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}
body.onsites-desk .cw-transfer-menu.on { display: block; }
body.onsites-desk .cw-transfer-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--cw-text-2);
  font-size: 13px;
  font-family: var(--cw-font);
  padding: 9px 14px;
  cursor: pointer;
  letter-spacing: -0.01em;
}
body.onsites-desk .cw-transfer-menu button:hover {
  background: rgba(107, 155, 200, 0.1);
  color: var(--cw-text);
}
body.onsites-desk .cw-transfer-menu button:disabled {
  opacity: 0.4;
  cursor: default;
}

body.onsites-desk .cw-seg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--cw-border);
}
body.onsites-desk .cw-seg button {
  height: 30px;
  border: none;
  background: rgba(17, 17, 19, 0.9);
  color: var(--cw-text-3);
  font-size: 13px;
  font-weight: 560;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: var(--cw-font);
  transition: background 0.12s ease, color 0.12s ease;
}
body.onsites-desk .cw-seg button:hover { color: var(--cw-text-2); }
body.onsites-desk .cw-seg button.on {
  background: rgba(107, 155, 200, 0.16);
  color: var(--admin-glow);
}
body.onsites-desk .cw-seg button[data-priority="high"].on {
  background: rgba(255, 107, 122, 0.14);
  color: #ff9aa5;
}

body.onsites-desk .cw-contact {
  display: flex;
  flex-direction: column;
  padding: 0 0 16px;
  gap: 0;
}
body.onsites-desk .cw-contact-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0 16px;
}
body.onsites-desk .cw-contact-hero {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0 14px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
body.onsites-desk .cw-contact-avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
}
body.onsites-desk .cw-contact-avatar.cw-avatar,
body.onsites-desk .cw-contact-avatar {
  width: 44px;
  height: 44px;
}
body.onsites-desk .cw-contact-avatar .cw-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.onsites-desk .cw-contact-avatar[hidden] {
  display: none !important;
}
body.onsites-desk .cw-contact-id {
  min-width: 0;
  flex: 1 1 auto;
}
body.onsites-desk .cw-contact-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
body.onsites-desk .cw-presence-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.22);
}
body.onsites-desk .cw-presence-dot[data-status="online"] {
  background: #34d399;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.25);
}
body.onsites-desk .cw-presence-dot[data-status="away"] {
  background: #fbbf24;
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.22);
}
body.onsites-desk .cw-contact-id .name {
  font-family: var(--cw-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--cw-text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.onsites-desk .cw-contact-id .email {
  margin-top: 2px;
  margin-left: 15px;
  font-size: 13px;
  color: var(--cw-text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.onsites-desk .cw-contact-meta {
  margin-top: 6px;
  margin-left: 15px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--cw-text-3);
  font-variant-numeric: tabular-nums;
}
body.onsites-desk .cw-contact-sec-label {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cw-text-3);
}
body.onsites-desk .cw-contact-sec-label--trail {
  margin-top: 12px;
  margin-bottom: 4px;
}
body.onsites-desk .cw-contact-block {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
body.onsites-desk .cw-contact-block h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cw-text-3);
}
body.onsites-desk .cw-contact-compact .cw-kv {
  margin-bottom: 0;
}
body.onsites-desk .cw-contact-pinned {
  padding: 12px 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
body.onsites-desk .cw-contact-pin-row {
  display: grid;
  grid-template-columns: 16px minmax(64px, auto) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 32px;
  margin-bottom: 4px;
}
body.onsites-desk .cw-contact-pin-row:last-child { margin-bottom: 0; }
body.onsites-desk .cw-contact-pin-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: var(--cw-text-2);
  opacity: 0.9;
}
body.onsites-desk .cw-contact-pin-ico svg { display: block; }
body.onsites-desk .cw-contact-pin-k {
  font-size: 13px;
  color: var(--cw-text-3);
}
body.onsites-desk .cw-contact-pin-v {
  font-size: 13px;
  font-weight: 600;
  color: var(--cw-text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
body.onsites-desk .cw-contact-pin-v.is-csat {
  color: #f0b429;
}
body.onsites-desk .cw-contact-sticky-acc > summary .cw-contact-sticky-preview {
  flex: 1;
  min-width: 0;
  margin-left: 4px;
  margin-right: 8px;
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}
body.onsites-desk .cw-contact-sticky-agents {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.35;
}
body.onsites-desk .cw-contact-sticky-input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 72px;
  max-height: 180px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--cw-home-note-border, rgba(251, 191, 36, 0.28));
  background: var(--cw-home-note-bg, #1a1810);
  color: var(--cw-home-note-text, #fcd34d);
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  resize: vertical;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
body.onsites-desk .cw-contact-sticky-input::placeholder {
  color: var(--cw-home-note-text, #fcd34d);
  opacity: 0.55;
}
body.onsites-desk .cw-contact-sticky-input:focus {
  outline: none;
  border-color: var(--cw-home-accent, #6b9fff);
  box-shadow: 0 0 0 3px var(--cw-home-accent-soft, rgba(107, 159, 255, 0.12));
}
body.onsites-desk .cw-contact-acc {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
body.onsites-desk .cw-contact-acc[hidden] {
  display: none !important;
}
body.onsites-desk .cw-contact-acc > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
  color: var(--cw-text);
}
body.onsites-desk .cw-contact-acc > summary::-webkit-details-marker { display: none; }
body.onsites-desk .cw-contact-acc > summary::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.4;
  transition: transform 0.15s ease;
}
body.onsites-desk .cw-contact-acc[open] > summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}
body.onsites-desk .cw-contact-acc > summary:hover {
  color: var(--cw-text);
}
body.onsites-desk .cw-contact-acc > summary:hover::after {
  opacity: 0.7;
}
body.onsites-desk .cw-contact-acc-ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: var(--cw-text);
  opacity: 0.9;
}
body.onsites-desk .cw-contact-acc-ico svg {
  display: block;
}
body.onsites-desk .cw-contact-acc-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: inherit;
}
body.onsites-desk .cw-contact-acc-body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  overflow: hidden;
  padding: 0 0 0 26px;
  transition:
    grid-template-rows 0.22s var(--cw-rail-ease, ease),
    opacity 0.2s ease,
    padding 0.22s var(--cw-rail-ease, ease);
}
body.onsites-desk .cw-contact-acc[open] > .cw-contact-acc-body {
  grid-template-rows: 1fr;
  opacity: 1;
  padding-bottom: 14px;
}
body.onsites-desk .cw-contact-acc-body > * {
  min-height: 0;
}
body.onsites-desk .cw-contact-acc .cw-contact-sec-label--trail {
  margin-top: 10px;
}
body.onsites-desk .cw-contact-labels-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}
body.onsites-desk .cw-contact-labels {
  display: contents;
}
body.onsites-desk .cw-contact-label-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  height: 30px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  border: 1px solid #e6e6e6;
  background: #f3f3f3;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}
body.onsites-desk .cw-contact-label-chip:hover {
  background: #ebebeb;
  border-color: #dcdcdc;
}
body.onsites-desk .cw-contact-label-ico {
  flex: 0 0 auto;
  color: #1a1a1a;
  opacity: 0.92;
}
body.onsites-desk .cw-contact-label-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.onsites-desk .cw-contact-label-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  color: #1a1a1a;
  cursor: pointer;
  flex: 0 0 auto;
}
body.onsites-desk .cw-contact-label-plus:hover {
  background: #f7f7f7;
  border-color: #d0d0d0;
}
body.onsites-desk .cw-contact-label-plus[hidden],
body.onsites-desk .cw-contact-label-inline-input[hidden] {
  display: none !important;
}
body.onsites-desk .cw-contact-label-inline-input {
  box-sizing: border-box;
  width: 148px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  color: var(--cw-text);
  font: inherit;
  font-size: 13px;
}
body.onsites-desk .cw-contact-label-inline-input:focus {
  outline: none;
  border-color: var(--cw-home-accent);
  box-shadow: 0 0 0 3px var(--cw-home-accent-soft);
}
body.onsites-desk .cw-contact-label-add {
  margin-top: 8px;
}
body.onsites-desk .cw-contact-label-add-row {
  margin-top: 2px;
}
body.onsites-desk .cw-contact-label-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}
body.onsites-desk .cw-contact-labels-empty {
  margin: 0;
  font-size: 13px;
}
body.onsites-desk .cw-contact-crm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
body.onsites-desk .cw-contact-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--cw-home-border-strong, rgba(255, 255, 255, 0.14));
  background: var(--cw-home-surface);
  color: var(--cw-text);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
body.onsites-desk .cw-contact-mini-btn:hover {
  background: var(--cw-home-hover);
}
body.onsites-desk .cw-contact-mini-btn.is-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--cw-text-3);
}
body.onsites-desk .cw-contact-mini-btn.is-ghost:hover {
  background: var(--cw-home-hover);
  color: var(--cw-text);
}
body.onsites-desk .cw-contact-mini-btn.is-primary {
  border-color: transparent;
  background: var(--cw-home-accent);
  color: #fff;
}
body.onsites-desk .cw-contact-mini-btn.is-primary:hover {
  background: var(--cw-home-accent-hover);
}
body.onsites-desk .cw-contact-mini-btn:disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}
body.onsites-desk .cw-contact-label-picker {
  margin-top: 10px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--cw-home-border);
  background: var(--cw-home-surface-2);
  max-height: 320px;
  overflow: auto;
}
body.onsites-desk .cw-contact-label-create {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--cw-home-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body.onsites-desk .cw-contact-label-create-title {
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  color: var(--cw-text-2);
}
body.onsites-desk .cw-contact-label-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
body.onsites-desk .cw-contact-label-color {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
body.onsites-desk .cw-contact-label-color.is-on {
  border-color: var(--cw-text);
  box-shadow: 0 0 0 2px var(--cw-home-surface-2), 0 0 0 3px var(--cw-text);
}
body.onsites-desk .cw-contact-label-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--cw-text-2);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
body.onsites-desk .cw-contact-label-pick:hover {
  background: var(--cw-home-hover);
}
body.onsites-desk .cw-contact-label-pick.is-on {
  color: var(--cw-text);
  background: var(--cw-home-active, var(--cw-home-hover));
}
body.onsites-desk .cw-contact-label-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #64748b;
  flex: 0 0 auto;
}
body.onsites-desk .cw-contact-crm-name {
  font-size: 13px;
  font-weight: 650;
  color: var(--cw-text);
}
body.onsites-desk .cw-contact-crm-meta {
  margin-top: 2px;
  font-size: 13px;
  color: var(--cw-text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.onsites-desk .cw-contact-crm-empty p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
}
body.onsites-desk .cw-contact-crm-search,
body.onsites-desk .cw-contact-crm-form {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body.onsites-desk .cw-contact-crm-search[hidden],
body.onsites-desk .cw-contact-crm-form[hidden],
body.onsites-desk .cw-contact-crm-card[hidden],
body.onsites-desk .cw-contact-crm-account-empty[hidden] {
  display: none;
}
body.onsites-desk .cw-contact-crm-form-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}
body.onsites-desk .cw-contact-crm-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--cw-text-3);
}
body.onsites-desk .cw-contact-crm-account {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--cw-home-border);
}
body.onsites-desk .cw-contact-crm-account-title {
  font-size: 12px;
  font-weight: 650;
  color: var(--cw-text-2);
  margin-bottom: 8px;
}
body.onsites-desk .cw-contact-crm-card {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--cw-home-border);
  background: var(--cw-home-surface);
}
body.onsites-desk .cw-contact-crm-card.is-nested {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--cw-home-border);
  background: var(--cw-home-surface-2);
}
body.onsites-desk .cw-contact-crm-account-empty {
  padding: 10px;
  border-radius: 10px;
  border: 1px dashed var(--cw-home-border-strong, var(--cw-home-border));
  background: transparent;
}
body.onsites-desk .cw-contact-crm-account-empty p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.4;
}
body.onsites-desk .cw-contact-crm-empty > .cw-contact-crm-actions,
body.onsites-desk .cw-contact-crm-search > .cw-contact-crm-actions,
body.onsites-desk .cw-contact-crm-form > .cw-contact-crm-actions,
body.onsites-desk .cw-contact-crm-account-empty > .cw-contact-crm-actions {
  margin-top: 2px;
}
body.onsites-desk .cw-contact-crm-input {
  box-sizing: border-box;
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--cw-home-border-strong, var(--cw-home-border));
  background: var(--cw-home-surface);
  color: var(--cw-text);
  font: inherit;
  font-size: 13px;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
body.onsites-desk .cw-contact-crm-input::placeholder {
  color: var(--cw-home-faint, var(--cw-text-3));
}
body.onsites-desk .cw-contact-crm-input:focus {
  outline: none;
  border-color: var(--cw-home-accent);
  box-shadow: 0 0 0 3px var(--cw-home-accent-soft);
}
body.onsites-desk .cw-contact-crm-results {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 160px;
  overflow: auto;
}
body.onsites-desk .cw-contact-crm-results:empty {
  display: none;
}
body.onsites-desk .cw-contact-crm-hit {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
body.onsites-desk .cw-contact-crm-hit:hover {
  background: var(--cw-home-hover);
}
body.onsites-desk .cw-contact-crm-hit-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--cw-text);
}
body.onsites-desk .cw-contact-crm-hit-meta {
  font-size: 12px;
  color: var(--cw-text-3);
}
body.onsites-desk .cw-live-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}
body.onsites-desk .cw-presence-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #94a3b8;
}
body.onsites-desk .cw-presence-label[data-status="online"] { color: #34d399; }
body.onsites-desk .cw-presence-label[data-status="away"] { color: #fbbf24; }
body.onsites-desk .cw-live-stat {
  font-size: 13px;
  color: var(--cw-text-3);
  white-space: nowrap;
}
body.onsites-desk .cw-live-page {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
body.onsites-desk .cw-live-page:hover {
  border-color: transparent;
  background: transparent;
}
body.onsites-desk .cw-live-page:hover .cw-live-page-v {
  color: #a8c8ff;
}
body.onsites-desk .cw-live-page[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.72;
}
body.onsites-desk .cw-live-page-k {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cw-text-3);
}
body.onsites-desk .cw-live-page-v {
  flex: 1 1 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--cw-text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.onsites-desk .cw-live-dwell {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--cw-text-3);
  font-variant-numeric: tabular-nums;
}
body.onsites-desk .cw-trail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
body.onsites-desk .cw-trail-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
  padding: 5px 0;
  position: relative;
}
body.onsites-desk .cw-trail-item:not(:last-child)::before {
  display: none;
}
body.onsites-desk .cw-trail-dot {
  display: none;
}
body.onsites-desk .cw-trail-item.is-current .cw-trail-dot {
  background: #34d399;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.22);
}
body.onsites-desk .cw-trail-body {
  min-width: 0;
}
body.onsites-desk .cw-trail-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--cw-text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}
body.onsites-desk .cw-trail-item.is-current .cw-trail-title {
  font-weight: 600;
  color: var(--cw-text);
}
body.onsites-desk .cw-trail-meta {
  margin-top: 0;
  font-size: 13px;
  color: var(--cw-text-3);
  line-height: 1.3;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
body.onsites-desk .cw-contact .cw-kv {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  justify-content: stretch;
  margin-bottom: 7px;
}
body.onsites-desk .cw-contact .cw-kv:last-child { margin-bottom: 0; }
body.onsites-desk .cw-kv {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
body.onsites-desk .cw-kv:last-child { margin-bottom: 0; }
body.onsites-desk .cw-kv .k {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--cw-text-3);
}
body.onsites-desk .cw-contact .cw-kv .k {
  width: auto;
}
body.onsites-desk .cw-kv .v {
  text-align: right;
  font-size: 13px;
  font-weight: 560;
  color: var(--cw-text-2);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.onsites-desk .cw-contact .cw-kv .v {
  text-align: left;
  font-weight: 500;
}
body.onsites-desk .cw-kv .v.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 500;
  color: #c5d7e8;
}
body.onsites-desk .cw-kv .v.muted {
  color: var(--cw-text-3);
  font-weight: 500;
  white-space: normal;
  word-break: break-all;
  text-align: left;
  line-height: 1.4;
}
body.onsites-desk .cw-kv .v.link {
  color: var(--admin-glow);
  text-decoration: none;
  white-space: normal;
  word-break: break-all;
  text-align: left;
  line-height: 1.4;
  font-weight: 500;
}
body.onsites-desk .cw-kv .v.link:hover { color: #a8c8ff; }
body.onsites-desk .cw-kv .v.link[aria-disabled="true"] {
  color: var(--cw-text-3);
  pointer-events: none;
}
body.onsites-desk .cw-kv .v.is-csat {
  color: #f0b429;
}
body.onsites-desk .cw-kv-stack {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
body.onsites-desk .cw-contact .cw-kv-stack {
  display: flex;
  grid-template-columns: none;
}
body.onsites-desk .cw-kv-stack .v,
body.onsites-desk .cw-kv-stack .v.link {
  text-align: left;
}
body.onsites-desk .cw-device-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}
body.onsites-desk .cw-device-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--cw-text-2);
  font-size: 13px;
  font-weight: 560;
}
body.onsites-desk .cw-contact-tech {
  margin-top: 0;
  padding-top: 0;
}
body.onsites-desk .cw-contact-tech .cw-kv { margin-bottom: 8px; }
body.onsites-desk .cw-contact-preview {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--admin-glow);
  text-decoration: none;
}
body.onsites-desk .cw-contact-preview:hover { color: #a8c8ff; }
body.onsites-desk .cw-contact .cw-seg {
  display: flex;
  width: 100%;
  border-radius: var(--cw-radius-sm);
  overflow: hidden;
}
body.onsites-desk .cw-contact .cw-seg button {
  flex: 1;
  border-radius: 0;
}

/* ——Flash / unassigned queue ——*/
body.onsites-desk .cw-conv-card.is-flash {
  animation: cwFlashPulse 1.1s ease-in-out 3;
  background: rgba(34, 211, 166, 0.1);
  border-left-color: var(--admin-live);
}
body.onsites-desk .cw-conv-card.is-unassigned .meta-row {
  color: #f0b429;
}
@keyframes cwFlashPulse {
  0%, 100% { box-shadow: inset 0 0 0 0 transparent; }
  50% { box-shadow: inset 3px 0 0 0 var(--admin-live); }
}

body.onsites-desk .cw-scope-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(240, 180, 41, 0.2);
  color: #f0b429;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}
body.onsites-desk .cw-scope-badge.is-hot {
  animation: cwBadgePulse 1.4s ease-in-out infinite;
}
@keyframes cwBadgePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

body.onsites-desk .cw-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  margin-left: 6px;
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cw-text-3);
  font-family: var(--cw-font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}
body.onsites-desk .cw-contact .v.is-csat {
  color: #f0b429;
  letter-spacing: 0.04em;
}

body.onsites-desk .cw-shell > .cw-visitors {
  min-height: 0;
  overflow: hidden;
}
body.onsites-desk .cw-visitors {
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 40% at 0% 0%, rgba(79, 143, 196, 0.1), transparent 55%),
    linear-gradient(180deg, #e9edf3 0%, #e2e7ef 100%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
body.onsites-desk .cw-visitors-head {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: var(--cw-page-inset-y) var(--cw-page-inset-x) 14px;
  border-bottom: 1px solid var(--cw-hairline);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
body.onsites-desk .cw-visitors-head-text .cw-list-eyebrow {
  margin-bottom: 2px;
}
body.onsites-desk .cw-visitors-head h1 {
  margin: 0;
  font-family: var(--cw-display);
  font-size: var(--cw-page-head-h1);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #152033;
}
body.onsites-desk .cw-visitors-head .muted {
  margin: 4px 0 0;
  color: var(--cw-text-3);
  font-size: 13px;
  line-height: 1.4;
  max-width: 42rem;
}
body.onsites-desk .cw-visitors-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
}
body.onsites-desk .cw-visitors-body > * {
  width: 100%;
  max-width: none;
}
body.onsites-desk .cw-visitors-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
body.onsites-desk .cw-visitors-tools .cw-search {
  min-width: 220px;
}
body.onsites-desk .cw-visitors-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 8px var(--cw-page-inset-x);
  border-bottom: 1px solid rgba(14, 21, 32, 0.06);
  background: rgba(244, 246, 249, 0.92);
}
body.onsites-desk .cw-visitors-filters {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 8px;
  background: rgba(26, 35, 50, 0.06);
}
body.onsites-desk .cw-visitors-filter {
  border: 0;
  border-radius: 6px;
  padding: 5px 10px;
  font: 600 13px/1 var(--cw-font);
  color: #6b7585;
  background: transparent;
  cursor: pointer;
}
body.onsites-desk .cw-visitors-filter:hover {
  color: #152033;
}
body.onsites-desk .cw-visitors-filter.on {
  background: #fff;
  color: #152033;
  box-shadow: 0 1px 2px rgba(14, 21, 32, 0.08);
}
body.onsites-desk .cw-visitors-count {
  font-size: 13px;
  font-weight: 600;
  color: #7b8494;
  letter-spacing: 0.02em;
}
body.onsites-desk .cw-visitors-split {
  flex: 1;
  min-height: 0;
  position: relative;
  display: grid;
  --cw-visitors-journey-w: min(380px, 38vw);
  grid-template-columns: minmax(0, 1fr) var(--cw-visitors-journey-w);
  overflow: hidden;
}
/* Draggable divider on the journey panel's left edge (mail-panel pattern) */
body.onsites-desk .cw-visitors-resizer {
  position: absolute;
  right: calc(var(--cw-visitors-journey-w) - 4.5px);
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 64px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--cw-home-faint);
  cursor: ew-resize;
  touch-action: none;
  opacity: 0.9;
  transition: opacity 0.15s ease, background 0.15s ease;
  z-index: 12;
}
body.onsites-desk .cw-visitors-resizer::before {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  top: -8px;
  bottom: -8px;
  border-radius: 999px;
}
body.onsites-desk .cw-visitors-split:hover .cw-visitors-resizer,
body.onsites-desk .cw-visitors-resizer:hover,
body.onsites-desk .cw-visitors-resizer.is-dragging {
  opacity: 1;
}
body.onsites-desk .cw-visitors-resizer:hover,
body.onsites-desk .cw-visitors-resizer.is-dragging {
  background: var(--cw-home-accent-text, var(--cw-home-text));
}
body.onsites-desk.cw-visitors-resizing,
body.onsites-desk.cw-visitors-resizing * {
  cursor: ew-resize !important;
  user-select: none !important;
}
body.onsites-desk .cw-visitors-main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid rgba(14, 21, 32, 0.08);
}
body.onsites-desk .cw-visitors-meta {
  margin: 0;
  padding: 10px var(--cw-page-inset-x);
  color: var(--cw-text-3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(14, 21, 32, 0.06);
  background: rgba(244, 246, 249, 0.92);
}
body.onsites-desk .cw-visitors-table-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: none;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #f4f6f9;
}
body.onsites-desk .cw-visitors-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
body.onsites-desk .cw-visitors-table th,
body.onsites-desk .cw-visitors-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
  box-sizing: border-box;
}
body.onsites-desk .cw-visitors-table th:first-child,
body.onsites-desk .cw-visitors-table td:first-child {
  padding-left: var(--cw-page-inset-x);
}
body.onsites-desk .cw-visitors-table th:last-child,
body.onsites-desk .cw-visitors-table td:last-child {
  padding-right: 14px;
}
body.onsites-desk .cw-visitors-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cw-text-3);
  background: var(--cw-surface-2, var(--cw-surface-1));
  border-bottom: 1px solid var(--cw-border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
body.onsites-desk .cw-visitors-table td {
  vertical-align: middle;
  border-bottom: 1px solid rgba(14, 21, 32, 0.06);
  color: #1a2332;
  background: #f7f9fc;
}
body.onsites-desk .cw-visitors-table--radar thead th {
  background: #eef2f7;
  color: #8a93a3;
  border-bottom-color: rgba(14, 21, 32, 0.08);
}
body.onsites-desk .cw-visitors-table--radar tbody tr {
  cursor: pointer;
  transition: background 0.12s ease;
}
body.onsites-desk .cw-visitors-table--radar tbody tr:hover td {
  background: #eef4fa;
}
body.onsites-desk .cw-visitors-table--radar tbody tr.is-selected td {
  background: #e7eef7;
}
body.onsites-desk .cw-visitors-table--radar tbody tr.is-selected td:first-child {
  box-shadow: inset 3px 0 0 #2f6f9f;
}
body.onsites-desk .cw-visitors-table--radar th:nth-child(1),
body.onsites-desk .cw-visitors-table--radar td:nth-child(1) { width: 24%; }
body.onsites-desk .cw-visitors-table--radar th:nth-child(2),
body.onsites-desk .cw-visitors-table--radar td:nth-child(2) { width: 14%; }
body.onsites-desk .cw-visitors-table--radar th:nth-child(3),
body.onsites-desk .cw-visitors-table--radar td:nth-child(3) { width: 22%; }
body.onsites-desk .cw-visitors-table--radar th:nth-child(4),
body.onsites-desk .cw-visitors-table--radar td:nth-child(4) { width: 24%; }
body.onsites-desk .cw-visitors-table--radar th:nth-child(5),
body.onsites-desk .cw-visitors-table--radar td:nth-child(5) { width: 18%; }
body.onsites-desk .cw-visitors-table--radar td {
  padding-top: 12px;
  padding-bottom: 12px;
}
body.onsites-desk .cw-visitors-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
body.onsites-desk .cw-visitors-av {
  position: relative;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #2f6f9f;
  background: linear-gradient(160deg, #e8f1f8, #dfeaf4);
  border: 1px solid rgba(47, 111, 159, 0.14);
}
body.onsites-desk .cw-visitors-av::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #94a3b8;
  border: 2px solid #f7f9fc;
}
body.onsites-desk .cw-visitors-av[data-status="online"]::after {
  background: #0f9f7a;
}
body.onsites-desk .cw-visitors-av[data-status="away"]::after {
  background: #d97706;
}
body.onsites-desk .cw-visitors-table--radar tbody tr:hover .cw-visitors-av::after {
  border-color: #eef4fa;
}
body.onsites-desk .cw-visitors-table--radar tbody tr.is-selected .cw-visitors-av::after {
  border-color: #e7eef7;
}
body.onsites-desk .cw-visitors-person-text {
  min-width: 0;
}
body.onsites-desk .cw-visitors-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-weight: 650;
  font-size: 13px;
  letter-spacing: -0.02em;
  color: #152033;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.onsites-desk .cw-visitors-name .cw-visitors-flag {
  flex: 0 0 auto;
  font-size: 13px;
  line-height: 1;
}
body.onsites-desk .cw-visitors-sub {
  margin-top: 2px;
  font-size: 13px;
  color: #8a93a3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.onsites-desk .cw-visitors-where {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  font-weight: 550;
  color: #3d4656;
}
body.onsites-desk .cw-visitors-flag {
  font-size: 13px;
  line-height: 1;
}
body.onsites-desk .cw-journey-cell {
  min-width: 0;
}
body.onsites-desk .cw-mini-path {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-bottom: 5px;
  height: 10px;
}
body.onsites-desk .cw-mini-path.is-empty {
  width: 28px;
  height: 3px;
  margin-bottom: 6px;
  border-radius: 99px;
  background: rgba(26, 35, 50, 0.1);
}
body.onsites-desk .cw-mini-node {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b6c0ce;
  flex: 0 0 auto;
}
body.onsites-desk .cw-mini-node.is-current {
  background: #0f9f7a;
  box-shadow: 0 0 0 3px rgba(15, 159, 122, 0.16);
}
body.onsites-desk .cw-mini-line {
  width: 11px;
  height: 1px;
  background: rgba(26, 35, 50, 0.16);
  flex: 0 0 auto;
}
body.onsites-desk .cw-visitors-page {
  font-size: 13px;
  font-weight: 600;
  color: #152033;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
body.onsites-desk .cw-visitors-page.is-muted {
  color: #9aa3b2;
  font-weight: 500;
}
body.onsites-desk .cw-visitors-status-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
body.onsites-desk .cw-presence-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: #64748b;
  background: rgba(100, 116, 139, 0.1);
}
body.onsites-desk .cw-presence-pill[data-status="online"] {
  color: #0b7a5c;
  background: rgba(15, 159, 122, 0.12);
}
body.onsites-desk .cw-presence-pill[data-status="away"] {
  color: #b45309;
  background: rgba(217, 119, 6, 0.12);
}
body.onsites-desk .cw-visitors-link--row {
  font-size: 13px;
  font-weight: 600;
  color: #2f6f9f;
  text-decoration: none;
}
body.onsites-desk .cw-visitors-link--row:hover {
  color: #1d4f75;
  text-decoration: underline;
}
body.onsites-desk .cw-visitors-journey {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background:
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(47, 111, 159, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 35% at 0% 100%, rgba(15, 159, 122, 0.06), transparent 50%),
    #e6edf5;
  padding: 16px;
}
body.onsites-desk .cw-journey-empty {
  margin: auto;
  text-align: center;
  padding: 28px 16px;
  color: #7b8494;
  max-width: 220px;
}
body.onsites-desk .cw-journey-empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #2f6f9f;
  background: rgba(47, 111, 159, 0.1);
  border: 1px solid rgba(47, 111, 159, 0.14);
}
body.onsites-desk .cw-journey-empty strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #152033;
  margin-bottom: 4px;
}
body.onsites-desk .cw-journey-empty span {
  font-size: 13px;
  line-height: 1.45;
}
body.onsites-desk .cw-journey-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}
body.onsites-desk .cw-journey-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  padding: 0;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(14, 21, 32, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 14px 32px rgba(26, 35, 50, 0.06);
  overflow: visible;
}
body.onsites-desk .cw-journey-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 14px;
  background: linear-gradient(180deg, #fbfcfe 0%, #fff 100%);
}
body.onsites-desk .cw-journey-identity {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
body.onsites-desk .cw-journey-avatar {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #2f6f9f;
  background: linear-gradient(160deg, #eaf3fa, #d7e6f3);
  border: 1px solid rgba(47, 111, 159, 0.16);
}
body.onsites-desk .cw-journey-avatar::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #94a3b8;
  border: 2px solid #fff;
}
body.onsites-desk .cw-journey-avatar[data-status="online"]::after {
  background: #0f9f7a;
  box-shadow: 0 0 0 3px rgba(15, 159, 122, 0.18);
}
body.onsites-desk .cw-journey-avatar[data-status="away"]::after {
  background: #d97706;
}
body.onsites-desk .cw-journey-id {
  min-width: 0;
  flex: 1;
  padding-top: 1px;
}
body.onsites-desk .cw-journey-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
body.onsites-desk .cw-journey-name {
  font-family: var(--cw-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #152033;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
body.onsites-desk .cw-journey-email {
  margin-top: 3px;
  font-size: 13px;
  color: #8a93a3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.onsites-desk .cw-journey-seen {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
}
body.onsites-desk .cw-visitors-came {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -0.01em;
  color: var(--cw-text, #e8eaed);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  cursor: default;
}
body.onsites-desk .cw-visitors-came.is-action {
  color: #2f6fed;
  cursor: pointer;
}
body.onsites-desk .cw-visitors-came.is-action:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.onsites-desk .cw-visitors-came.is-muted,
body.onsites-desk .cw-visitors-came:disabled {
  font-weight: 500;
  color: #8a93a3;
  cursor: default;
  text-decoration: none;
}
body.onsites-desk .cw-came-link {
  display: inline-block;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: default;
}
body.onsites-desk .cw-came-link.is-action {
  color: #2f6fed;
  cursor: pointer;
}
body.onsites-desk .cw-came-link.is-action:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.onsites-desk .cw-chip.is-came {
  cursor: pointer;
}
body.onsites-desk .cw-journey-foot.is-came-action {
  cursor: pointer;
}
body.onsites-desk .cw-journey-foot.is-came-action:hover {
  color: #2f6fed;
}
.cw-came-pop {
  position: fixed;
  z-index: 12000;
  width: min(360px, calc(100vw - 24px));
  padding: 12px 12px 10px;
  border-radius: 10px;
  background: #fff;
  color: #1a2332;
  border: 1px solid rgba(26, 35, 50, 0.12);
  box-shadow: 0 12px 32px rgba(26, 35, 50, 0.16);
}
.cw-came-pop-head {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a93a3;
  margin-bottom: 8px;
}
.cw-came-pop-url {
  display: block;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.45;
  color: #1a5fd0;
  word-break: break-all;
  text-decoration: none;
  max-height: 7.5em;
  overflow: auto;
}
.cw-came-pop-url:hover {
  text-decoration: underline;
}
.cw-came-pop-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  justify-content: flex-end;
}
.cw-came-pop-actions .cw-btn {
  height: 28px;
  padding: 0 10px;
  font-size: 13px;
}
body.onsites-desk .cw-journey-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
body.onsites-desk .cw-journey-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #3d4656;
  background: #f1f4f8;
  border: 1px solid rgba(26, 35, 50, 0.06);
}
body.onsites-desk .cw-journey-chip.is-chat {
  color: #0b7a5c;
  background: rgba(15, 159, 122, 0.1);
  border-color: rgba(15, 159, 122, 0.18);
}
body.onsites-desk .cw-journey-now {
  margin: 2px 12px 0;
  padding: 14px 14px 13px;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(47, 111, 159, 0.08), rgba(47, 111, 159, 0.02) 55%),
    #f5f8fc;
  border: 1px solid rgba(47, 111, 159, 0.12);
}
body.onsites-desk .cw-journey-now[data-live="1"] {
  background:
    linear-gradient(145deg, rgba(15, 159, 122, 0.1), rgba(15, 159, 122, 0.02) 55%),
    #f3faf7;
  border-color: rgba(15, 159, 122, 0.22);
}
body.onsites-desk .cw-journey-now-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7b8494;
  margin-bottom: 6px;
}
body.onsites-desk .cw-journey-now[data-live="1"] .cw-journey-now-kicker {
  color: #0b7a5c;
}
body.onsites-desk .cw-journey-now-title {
  font-family: var(--cw-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #152033;
  line-height: 1.2;
  word-break: break-word;
}
body.onsites-desk .cw-journey-now-meta {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7585;
  font-variant-numeric: tabular-nums;
}
body.onsites-desk .cw-journey-path-wrap {
  min-width: 0;
  padding: 14px 16px 8px;
  flex: 0 0 auto;
}
body.onsites-desk .cw-journey-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a93a3;
  margin-bottom: 10px;
}
body.onsites-desk .cw-journey-earlier {
  margin: -2px 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
}
body.onsites-desk .cw-journey-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}
body.onsites-desk .cw-journey-timeline[hidden] {
  display: none !important;
}
body.onsites-desk .cw-timeline-step {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  min-height: 36px;
}
body.onsites-desk .cw-timeline-rail {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 4px;
}
body.onsites-desk .cw-timeline-rail::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: -4px;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(26, 35, 50, 0.12);
}
body.onsites-desk .cw-timeline-step:last-child .cw-timeline-rail::before {
  display: none;
}
body.onsites-desk .cw-timeline-dot {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #a8b3c2;
  box-sizing: border-box;
}
body.onsites-desk .cw-timeline-step.is-current .cw-timeline-dot {
  border-color: #0f9f7a;
  background: #0f9f7a;
  box-shadow: 0 0 0 4px rgba(15, 159, 122, 0.16);
}
body.onsites-desk .cw-timeline-step.is-last .cw-timeline-dot {
  border-color: #2f6f9f;
  background: #2f6f9f;
}
body.onsites-desk .cw-timeline-body {
  min-width: 0;
  padding-bottom: 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
body.onsites-desk .cw-timeline-step:last-child .cw-timeline-body {
  padding-bottom: 2px;
}
body.onsites-desk .cw-timeline-title {
  font-size: 13px;
  font-weight: 650;
  color: #1a2332;
  letter-spacing: -0.01em;
  min-width: 0;
  word-break: break-word;
}
body.onsites-desk .cw-timeline-step.is-current .cw-timeline-title {
  color: #0b7a5c;
}
body.onsites-desk .cw-timeline-dwell {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 650;
  color: #7b8494;
  font-variant-numeric: tabular-nums;
}
body.onsites-desk .cw-timeline-dwell.is-muted {
  font-weight: 550;
  color: #a0a8b5;
}
body.onsites-desk .cw-journey-path-empty {
  padding: 14px;
  border-radius: 12px;
  background: #f6f8fb;
  border: 1px dashed rgba(26, 35, 50, 0.12);
  color: #8a93a3;
}
body.onsites-desk .cw-journey-path-empty strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: #3d4656;
  margin-bottom: 2px;
}
body.onsites-desk .cw-journey-path-empty span {
  font-size: 13px;
  line-height: 1.4;
}
body.onsites-desk .cw-journey-foot {
  margin-top: auto;
  padding: 12px 16px;
  border-top: 1px solid rgba(26, 35, 50, 0.06);
  font-size: 13px;
  line-height: 1.45;
  color: #8a93a3;
  word-break: break-word;
  background: #fafbfc;
}
body.onsites-desk .cw-journey-actions {
  padding: 0 16px 16px;
  background: #fafbfc;
}
body.onsites-desk .cw-journey-chat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
@media (max-width: 960px) {
  body.onsites-desk .cw-visitors-split {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(280px, 48%);
  }
  body.onsites-desk .cw-visitors-resizer {
    display: none;
  }
  body.onsites-desk .cw-visitors-main {
    border-right: 0;
    border-bottom: 1px solid rgba(14, 21, 32, 0.08);
  }
}
body.onsites-desk .cw-visitors-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}
body.onsites-desk .cw-visitors-name {
  font-weight: 600;
  letter-spacing: -0.01em;
}
body.onsites-desk .cw-visitors-cell {
  line-height: 1.35;
}
body.onsites-desk .cw-visitors-sub {
  margin-top: 3px;
  font-size: 13px;
  color: var(--cw-text-3);
}
body.onsites-desk .cw-visitors-sub.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}
body.onsites-desk .cw-visitors-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cw-text-3);
  border: 1px solid var(--cw-border);
}
body.onsites-desk .cw-visitors-pill.is-open {
  color: var(--admin-accent, #8eb8ff);
  border-color: rgba(142, 184, 255, 0.35);
}
body.onsites-desk .cw-visitors-actions {
  white-space: nowrap;
  text-align: right;
}
body.onsites-desk .cw-visitors-link {
  color: var(--admin-accent, #8eb8ff);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}
body.onsites-desk .cw-visitors-link:hover {
  text-decoration: underline;
}
body.onsites-desk .cw-leave-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(14, 21, 32, 0.06);
}
body.onsites-desk .cw-leave-tab {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 6px 12px;
  border-radius: 8px;
  background: transparent;
  color: var(--cw-text-3, #6b7280);
  font: 600 13px/1.1 var(--cw-font);
  cursor: pointer;
}
body.onsites-desk .cw-leave-tab.is-on {
  background: #fff;
  color: var(--cw-text-1, #111827);
  box-shadow: 0 1px 2px rgba(14, 21, 32, 0.08);
}
/* Offline messages —note feed (read-only leave notes) */
body.onsites-desk .cw-shell > .cw-offline-desk {
  min-width: 0;
  min-height: 0;
}
body.onsites-desk .cw-offline-desk {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: transparent;
}
body.onsites-desk .cw-offline-head {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: var(--cw-page-inset-y) var(--cw-page-inset-x) 14px;
  border-bottom: 1px solid rgba(14, 21, 32, 0.08);
  background: var(--cw-glass-paper);
  box-shadow: inset 0 1px 0 var(--cw-glass-edge);
  backdrop-filter: blur(var(--cw-glass-blur)) saturate(1.1);
  -webkit-backdrop-filter: blur(var(--cw-glass-blur)) saturate(1.1);
}
body.onsites-desk .cw-offline-head-text .cw-list-eyebrow {
  margin-bottom: 2px;
}
body.onsites-desk .cw-offline-head h1 {
  margin: 0;
  font-family: var(--cw-display);
  font-size: var(--cw-page-head-h1);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #152033;
}
body.onsites-desk .cw-offline-head .muted {
  margin: 4px 0 0;
  color: var(--cw-text-3);
  font-size: 13px;
  line-height: 1.4;
  max-width: 36rem;
}
body.onsites-desk .cw-offline-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}
body.onsites-desk .cw-offline-tools .cw-search {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 240px;
  width: 240px;
  min-width: 148px;
  max-width: 240px;
  height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid rgba(26, 35, 50, 0.1);
  color-scheme: light;
  box-sizing: border-box;
}
body.onsites-desk .cw-offline-tools .cw-search:focus-within {
  border-color: rgba(61, 126, 176, 0.45);
  box-shadow: 0 0 0 3px rgba(61, 126, 176, 0.12);
}
body.onsites-desk .cw-offline-tools .cw-search svg {
  flex-shrink: 0;
  color: #8a93a3;
}
body.onsites-desk .cw-offline-tools .cw-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #1a2332;
  font-size: 13px;
  font-family: var(--cw-font);
}
body.onsites-desk .cw-offline-tools .cw-search input::placeholder {
  color: #9aa3b2;
}
body.onsites-desk .cw-offline-tools .cw-search input::-webkit-search-cancel-button {
  filter: none;
}
body.onsites-desk .cw-offline-tools .cw-btn {
  flex-shrink: 0;
  white-space: nowrap;
}
body.onsites-desk .cw-offline-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 8px var(--cw-page-inset-x);
  border-bottom: 1px solid rgba(14, 21, 32, 0.06);
  background: rgba(244, 246, 249, 0.92);
}
body.onsites-desk .cw-offline-body {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body.onsites-desk .cw-offline-meta {
  margin: 0;
  padding: 0;
  color: var(--cw-text-3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 0;
  background: transparent;
}
body.onsites-desk .cw-offline-feed {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
body.onsites-desk .cw-offline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 32px;
  align-items: start;
  padding: 18px var(--cw-page-inset-x);
  border-bottom: 1px solid rgba(14, 21, 32, 0.07);
  background: #f7f9fc;
  transition: background 0.12s ease;
}
body.onsites-desk .cw-offline-row:hover {
  background: #eef4fa;
}
body.onsites-desk .cw-offline-row.is-focus {
  background: #e7eef7;
  box-shadow: inset 3px 0 0 var(--admin-accent, #2f6f9f);
}
body.onsites-desk .cw-offline-row-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body.onsites-desk .cw-offline-row-note {
  margin: 0;
  max-width: 44rem;
  font-size: 13px;
  line-height: 1.55;
  color: #1e293b;
  white-space: pre-wrap;
  word-break: break-word;
}
body.onsites-desk .cw-offline-row-who {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
body.onsites-desk .cw-offline-row-name {
  font-size: 13px;
  font-weight: 650;
  color: #334155;
}
body.onsites-desk .cw-offline-row-email {
  font-size: 13px;
  color: var(--admin-accent, #2f6f9f);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 22rem;
}
body.onsites-desk .cw-offline-row-email:hover {
  text-decoration: underline;
}
body.onsites-desk .cw-offline-row-email.is-missing {
  color: #94a3b8;
  font-style: italic;
}
body.onsites-desk .cw-offline-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
}
body.onsites-desk .cw-offline-row-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.04);
  color: #64748b;
  font-size: 13px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.onsites-desk .cw-offline-row-chip.is-link {
  color: #475569;
  text-decoration: none;
}
body.onsites-desk .cw-offline-row-chip.is-link:hover {
  color: var(--admin-accent, #2f6f9f);
  text-decoration: underline;
}
body.onsites-desk .cw-offline-row-when {
  font-size: 13px;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}
body.onsites-desk .cw-offline-row-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
  padding-top: 2px;
}
body.onsites-desk .cw-offline-row-side time,
body.onsites-desk .cw-offline-row-clock {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
body.onsites-desk .cw-offline-row-action {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: 650 13px/1.2 var(--cw-font);
  color: var(--admin-accent, #2f6f9f);
  cursor: pointer;
}
body.onsites-desk .cw-offline-row-action:hover {
  text-decoration: underline;
}
body.onsites-desk .cw-offline-empty {
  position: absolute;
  inset: 44px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
  color: var(--cw-text-3);
  pointer-events: none;
}
body.onsites-desk .cw-offline-empty strong {
  color: #152033;
  font-size: 13px;
}
body.onsites-desk .cw-offline-empty[hidden] {
  display: none !important;
}
@media (max-width: 800px) {
  body.onsites-desk .cw-offline-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  body.onsites-desk .cw-offline-row-side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
}
body.onsites-desk .cw-visitors-empty {
  position: absolute;
  inset: 48px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
}
body.onsites-desk .cw-visitors-empty[hidden] {
  display: none !important;
}
body.onsites-desk .cw-visitors-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  padding: 10px var(--cw-page-inset-x);
  flex-shrink: 0;
  border-top: 1px solid rgba(14, 21, 32, 0.08);
  background: rgba(244, 246, 249, 0.96);
}
body.onsites-desk .cw-visitors-pager[hidden] {
  display: none !important;
}
body.onsites-desk .cw-visitors-pager .cw-btn {
  min-width: 88px;
  height: 32px;
}
body.onsites-desk .cw-visitors-pager .cw-btn:disabled {
  opacity: 0.45;
  cursor: default;
}
body.onsites-desk .cw-visitors-pager-info {
  font-size: 13px;
  color: var(--cw-text-3);
  font-variant-numeric: tabular-nums;
  min-width: 140px;
  text-align: center;
}
@media (max-width: 960px) {
  body.onsites-desk .cw-visitors {
    padding: 0;
  }
  body.onsites-desk .cw-visitors-table th:nth-child(2),
  body.onsites-desk .cw-visitors-table td:nth-child(2) {
    display: none;
  }
}

/* ——Dashboard —— Live Overview ——*/
body.onsites-desk .cw-dash {
  --dash-line: rgba(21, 32, 51, 0.1);
  --dash-line-strong: rgba(21, 32, 51, 0.16);
  --dash-ink: #121820;
  --dash-muted: #6a7384;
  --dash-soft: #8b93a2;
  --dash-paper: #f4f6f8;
  --dash-accent: #1f6aa5;
  --dash-warn: #b84848;
  --dash-live: #16a34a;
  --dash-glass: #ffffff;
  --dash-glass-strong: #ffffff;
  --dash-glass-edge: rgba(255, 255, 255, 0.8);
  --dash-blur: 0;
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--dash-ink);
  background: var(--dash-paper);
}

body.onsites-desk .cw-dash-head {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px var(--cw-page-inset-x) 14px;
  border-bottom: 1px solid var(--dash-line);
  background: var(--dash-paper);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.onsites-desk .cw-dash-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: transparent;
  scrollbar-width: thin;
}
body.onsites-desk .cw-dash-inner {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0 0 36px;
}

/* —— Live Overview (Chatwoot-style) —— */
body.onsites-desk .cw-dash-head--quiet {
  align-items: center;
  padding: 10px var(--cw-page-inset-x) 10px;
}
body.onsites-desk .cw-dash-head--quiet .cw-dash-updated {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dash-soft);
  margin: 0;
}
body.onsites-desk .cw-dash-head-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dash-ink);
}
body.onsites-desk .cw-dash-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}
body.onsites-desk .cw-dash-overview {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px var(--cw-page-inset-x) 36px;
  max-width: none;
  width: 100%;
}
body.onsites-desk .cw-dash-inner--full {
  max-width: none;
  width: 100%;
  padding: 0 0 28px;
}
body.onsites-desk .cw-dash--fullscreen .cw-dash-live {
  border-bottom: 1px solid var(--dash-line);
  background: #fff;
}
body.onsites-desk .cw-dash--fullscreen .cw-dash-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
body.onsites-desk .cw-dash--fullscreen .cw-dash-kpi {
  border-radius: 0;
  border: 0;
  border-right: 1px solid var(--dash-line);
  background: transparent;
  padding: 14px var(--cw-page-inset-x) 12px;
}
body.onsites-desk .cw-dash--fullscreen .cw-dash-kpi:last-child {
  border-right: 0;
}
body.onsites-desk .cw-dash--fullscreen .cw-dash-kpi > em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 12px;
  color: var(--dash-muted);
}
body.onsites-desk .cw-dash-traffic {
  border-bottom: 1px solid var(--dash-line);
  background: rgba(255, 255, 255, 0.55);
  padding: 16px var(--cw-page-inset-x) 18px;
}
body.onsites-desk .cw-dash-panel--heat {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
body.onsites-desk .cw-dash-panel--heat .cw-dash-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
body.onsites-desk .cw-dash-heat.is-days {
  display: grid;
  grid-template-columns: repeat(30, minmax(0, 1fr));
  gap: 3px;
}
body.onsites-desk .cw-dash-heat.is-day,
body.onsites-desk .cw-dash-heat.is-week {
  display: grid;
  grid-template-columns: 40px repeat(24, minmax(0, 1fr));
  gap: 3px;
  align-items: stretch;
}
body.onsites-desk .cw-dash-heat-hour {
  font-size: 9px;
  color: var(--dash-soft);
  text-align: center;
}
body.onsites-desk .cw-dash-ticks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
}
body.onsites-desk .cw-dash-tick-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: center;
}
body.onsites-desk .cw-dash-tick-name {
  font-size: 12px;
  font-weight: 650;
  color: var(--dash-muted);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.onsites-desk .cw-dash-tick-rail {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  min-height: 22px;
  border-bottom: 1px solid rgba(21, 32, 51, 0.08);
  padding-bottom: 2px;
}
body.onsites-desk .cw-dash-tick-rail > i {
  width: 2px;
  height: 14px;
  background: #3d6f9e;
  opacity: 0.88;
  display: block;
  flex: 0 0 auto;
}
body.onsites-desk .cw-dash-tick-row.is-hero .cw-dash-tick-rail > i {
  background: #1a4a75;
  height: 18px;
}
body.onsites-desk .cw-dash-tick-rail > i.is-mark {
  outline: 1px solid rgba(26, 74, 117, 0.25);
  outline-offset: 1px;
}
body.onsites-desk .cw-dash-tick-row strong {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
body.onsites-desk .cw-dash-waffle {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(120px, 0.9fr);
  gap: 12px;
  align-items: start;
  min-height: 120px;
}
body.onsites-desk .cw-dash-waffle-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;
}
body.onsites-desk .cw-dash-waffle-grid > i {
  aspect-ratio: 1;
  border-radius: 2px;
  display: block;
  background: #c5d4e8;
}
body.onsites-desk .cw-dash-waffle-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body.onsites-desk .cw-dash-waffle-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  font-size: 12px;
}
body.onsites-desk .cw-dash-waffle-item > i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
body.onsites-desk .cw-dash-waffle-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--dash-muted);
}
body.onsites-desk .cw-dash-waffle-item b {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
body.onsites-desk .cw-dash-secondary--trio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  body.onsites-desk .cw-dash--fullscreen .cw-dash-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body.onsites-desk .cw-dash-secondary--trio {
    grid-template-columns: 1fr;
  }
  body.onsites-desk .cw-dash-waffle {
    grid-template-columns: 1fr;
  }
}
body.onsites-desk .cw-dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
body.onsites-desk .cw-dash-kpi {
  background: #fff;
  border: 1px solid var(--dash-line);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
body.onsites-desk .cw-dash-kpi > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--dash-muted);
}
body.onsites-desk .cw-dash-kpi > strong {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--dash-ink);
}
body.onsites-desk .cw-dash-kpi.is-hot > strong {
  color: #b84848;
}
body.onsites-desk .cw-dash-agent-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 2px;
}
body.onsites-desk .cw-dash-agent-pills em {
  font-style: normal;
  font-size: 12px;
  color: var(--dash-muted);
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
body.onsites-desk .cw-dash-agent-pills b {
  font-size: 18px;
  font-weight: 700;
  color: var(--dash-ink);
  font-variant-numeric: tabular-nums;
}
body.onsites-desk .cw-dash-agent-pills .is-online b { color: #16a34a; }
body.onsites-desk .cw-dash-agent-pills .is-busy b { color: #ca8a04; }
body.onsites-desk .cw-dash-agent-pills .is-offline b { color: var(--dash-soft); }

body.onsites-desk .cw-dash-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 14px;
  align-items: stretch;
}
body.onsites-desk .cw-dash-panel {
  background: #fff;
  border: 1px solid var(--dash-line);
  border-radius: 12px;
  padding: 16px 16px 14px;
  min-width: 0;
}
body.onsites-desk .cw-dash-panel-head {
  margin-bottom: 12px;
}
body.onsites-desk .cw-dash-panel-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--dash-ink);
}
body.onsites-desk .cw-dash-panel-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--dash-muted);
}
body.onsites-desk .cw-dash-panel-note {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--dash-soft);
}
body.onsites-desk .cw-dash-agents-wrap {
  max-height: 320px;
  overflow: auto;
}
body.onsites-desk .cw-dash-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}
body.onsites-desk .cw-dash-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dash-soft);
}
body.onsites-desk .cw-dash-status.is-online::before { background: #16a34a; }
body.onsites-desk .cw-dash-status.is-busy::before { background: #ca8a04; }
body.onsites-desk .cw-dash-status.is-offline { color: var(--dash-soft); }

body.onsites-desk .cw-dash-heat-wrap {
  position: relative;
  overflow-x: auto;
}
body.onsites-desk .cw-dash-heat {
  display: grid;
  grid-template-columns: 44px repeat(24, minmax(14px, 1fr));
  gap: 3px;
  min-width: 420px;
}
body.onsites-desk .cw-dash-heat-day {
  font-size: 10px;
  font-weight: 600;
  color: var(--dash-muted);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 4px;
}
body.onsites-desk .cw-dash-heat-cell {
  aspect-ratio: 1;
  border-radius: 2px;
  background: #eef1f4;
  min-height: 14px;
  cursor: default;
}
body.onsites-desk .cw-dash-heat-hours {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: repeat(24, minmax(14px, 1fr));
  gap: 3px;
  margin-top: 4px;
}
body.onsites-desk .cw-dash-heat-hours span {
  font-size: 9px;
  color: var(--dash-soft);
  text-align: center;
}
body.onsites-desk .cw-dash-heat-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--dash-muted);
}
body.onsites-desk .cw-dash-heat-legend i {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  display: block;
}
body.onsites-desk .cw-dash-heat-legend i:nth-child(2) { background: #eef1f4; }
body.onsites-desk .cw-dash-heat-legend i:nth-child(3) { background: #c5d4e8; }
body.onsites-desk .cw-dash-heat-legend i:nth-child(4) { background: #7fa3c9; }
body.onsites-desk .cw-dash-heat-legend i:nth-child(5) { background: #3d6f9e; }
body.onsites-desk .cw-dash-heat-legend i:nth-child(6) { background: #1a4a75; }
body.onsites-desk .cw-dash-heat-tip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  background: #121820;
  color: #fff;
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

body.onsites-desk .cw-dash-panel--map .cw-dash-map-shell {
  height: 240px;
}
body.onsites-desk .cw-dash-panel--map .cw-dash-map {
  height: 240px;
}
body.onsites-desk .cw-dash-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 4px 2px 0;
  font-size: 12px;
  color: var(--dash-muted);
}
body.onsites-desk .cw-dash-foot strong {
  color: var(--dash-ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-left: 4px;
}
body.onsites-desk .cw-dash-foot em {
  font-style: normal;
  color: var(--dash-soft);
  margin-left: 4px;
}
@media (max-width: 1100px) {
  body.onsites-desk .cw-dash-kpis {
    grid-template-columns: 1fr 1fr;
  }
  body.onsites-desk .cw-dash-main {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  body.onsites-desk .cw-dash-kpis {
    grid-template-columns: 1fr;
  }
}

body.onsites-desk .cw-dash-head-text .cw-list-eyebrow {
  margin-bottom: 2px;
  letter-spacing: 0.14em;
}
body.onsites-desk .cw-dash-head h1 {
  margin: 0;
  font-family: var(--cw-display);
  font-size: var(--cw-page-head-h1);
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--dash-ink);
  line-height: 1;
}
body.onsites-desk .cw-dash-head .muted {
  margin: 5px 0 0;
  color: var(--dash-muted);
  font-size: 13px;
  line-height: 1.4;
  max-width: 42rem;
}
body.onsites-desk .cw-dash-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 1px;
}

/* Underline segmented control —line, not chip */
body.onsites-desk .cw-dash-range {
  display: inline-flex;
  align-items: stretch;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--dash-line);
  background: transparent;
  border-radius: 0;
  gap: 0;
}
body.onsites-desk .cw-dash-range button {
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: var(--dash-muted);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--cw-font);
  border-radius: 0;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
body.onsites-desk .cw-dash-range button:hover { color: var(--dash-ink); }
body.onsites-desk .cw-dash-range button.on {
  background: transparent;
  color: var(--dash-ink);
  box-shadow: none;
  border-bottom-color: var(--dash-ink);
}
body.onsites-desk .cw-dash-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  border-radius: 99px !important;
  border-color: var(--dash-line) !important;
  background: var(--dash-paper) !important;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.onsites-desk .cw-dash-refresh svg {
  color: var(--dash-muted);
  flex-shrink: 0;
  transition: color 0.15s ease, transform 0.35s ease;
}
body.onsites-desk .cw-dash-refresh:hover svg {
  color: var(--dash-ink);
  transform: rotate(-28deg);
}

/* Live —frosted pane + ruled columns */
body.onsites-desk .cw-dash-live {
  background: var(--dash-glass);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    inset 0 1px 0 var(--dash-glass-edge),
    0 1px 0 rgba(21, 32, 51, 0.04);
  backdrop-filter: blur(var(--dash-blur)) saturate(1.18);
  -webkit-backdrop-filter: blur(var(--dash-blur)) saturate(1.18);
}
body.onsites-desk .cw-dash-band-label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px var(--cw-page-inset-x) 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
}
body.onsites-desk .cw-dash-band-label > span:first-child {
  flex-shrink: 0;
  font-family: var(--cw-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dash-ink);
}
body.onsites-desk .cw-dash-band-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(21, 32, 51, 0.16), rgba(21, 32, 51, 0.04));
  min-width: 24px;
}
body.onsites-desk .cw-dash-band-hint {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--dash-soft);
  font-variant-numeric: tabular-nums;
}
body.onsites-desk .cw-dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  background: transparent;
}
body.onsites-desk .cw-stat {
  position: relative;
  padding: 18px var(--cw-page-inset-x) 20px;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset -1px 0 0 rgba(21, 32, 51, 0.06);
  border-radius: 0;
  min-width: 0;
  transition: background 0.18s ease;
}
body.onsites-desk .cw-stat:hover {
  background: rgba(255, 255, 255, 0.28);
}
body.onsites-desk .cw-stat:last-child { border-right: 0; }
body.onsites-desk .cw-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 20px;
  width: 0;
  background: transparent;
  transition: width 0.15s ease, background 0.15s ease;
}
body.onsites-desk .cw-stat.is-hot {
  background: transparent;
}
body.onsites-desk .cw-stat.is-hot::before {
  width: 2px;
  background: var(--dash-warn);
}
body.onsites-desk .cw-stat--live.is-hot {
  background: transparent;
}
body.onsites-desk .cw-stat--live.is-hot::before {
  width: 2px;
  background: var(--dash-live);
}
body.onsites-desk .cw-stat .k {
  display: block;
  margin: 0 0 10px;
  color: var(--dash-soft);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
body.onsites-desk .cw-stat strong {
  display: block;
  font-family: var(--cw-display);
  font-size: clamp(30px, 2.8vw, 40px);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--dash-ink);
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}
body.onsites-desk .cw-stat--warn strong { color: var(--dash-warn); }
body.onsites-desk .cw-stat--live strong { color: var(--dash-live); }
body.onsites-desk .cw-stat em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 13px;
  color: var(--dash-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.2em;
}
body.onsites-desk .cw-dash-period {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(21, 32, 51, 0.04);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.18);
}
body.onsites-desk .cw-dash-period-item {
  padding: 14px var(--cw-page-inset-x) 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: inset -1px 0 0 rgba(21, 32, 51, 0.05);
  min-width: 0;
}
body.onsites-desk .cw-dash-period-item:last-child { border-right: 0; }
body.onsites-desk .cw-dash-period-item .k {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dash-soft);
}
body.onsites-desk .cw-dash-period-item strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--dash-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
body.onsites-desk .cw-dash-period-item em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 13px;
  color: var(--dash-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.15em;
}

/* Work stage —glass split */
body.onsites-desk .cw-dash-work {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.78fr);
  gap: 0;
  margin: 0;
  align-items: stretch;
  border-bottom: 1px solid rgba(255, 255, 255, 0.48);
  min-height: min(52vh, 460px);
  background: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 0 var(--dash-glass-edge);
  backdrop-filter: blur(var(--dash-blur)) saturate(1.15);
  -webkit-backdrop-filter: blur(var(--dash-blur)) saturate(1.15);
}
body.onsites-desk .cw-dash-work > .cw-dash-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
body.onsites-desk .cw-dash-work > .cw-dash-panel--chart {
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset -1px 0 0 rgba(21, 32, 51, 0.06);
  padding: 22px var(--cw-page-inset-x) 24px;
}
body.onsites-desk .cw-dash-work > .cw-dash-panel--agents {
  padding: 22px 22px 18px;
  background: rgba(255, 255, 255, 0.16);
}
body.onsites-desk .cw-dash-panel--chart .cw-dash-chart-shell {
  flex: 1;
  min-height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 0 0 1px rgba(21, 32, 51, 0.04);
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  padding: 12px 8px 8px;
}
body.onsites-desk .cw-dash-panel--agents .cw-table-wrap {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: auto;
  scrollbar-width: thin;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 0 0 1px rgba(21, 32, 51, 0.04);
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  margin: 0;
}
body.onsites-desk .cw-dash-panel--agents .cw-dash-table th,
body.onsites-desk .cw-dash-panel--agents .cw-dash-table td {
  padding: 10px 12px;
  font-size: 13px;
}
body.onsites-desk .cw-dash-panel--agents .cw-dash-table thead th {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1;
  border-bottom: 1px solid var(--dash-line-strong);
}

/* Insights */
body.onsites-desk .cw-dash-insights {
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(var(--dash-blur)) saturate(1.12);
  -webkit-backdrop-filter: blur(var(--dash-blur)) saturate(1.12);
  box-shadow: inset 0 1px 0 var(--dash-glass-edge);
}
body.onsites-desk .cw-dash-insights > .cw-dash-band-label {
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}
body.onsites-desk .cw-dash-insights > .cw-dash-band-label:first-child {
  border-top: 0;
}
body.onsites-desk .cw-dash-section-label {
  display: none;
}
body.onsites-desk .cw-dash-secondary {
  display: grid;
  gap: 0;
  margin: 0;
  border-bottom: 1px solid var(--dash-line-strong);
}
body.onsites-desk .cw-dash-secondary--duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body.onsites-desk .cw-dash-secondary--trio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 0;
}
body.onsites-desk .cw-dash-secondary--geo {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  border-bottom: 1px solid var(--dash-line-strong);
  align-items: stretch;
}
body.onsites-desk .cw-dash-panel--map {
  display: flex;
  flex-direction: column;
  padding: 0;
  min-height: 0;
}
body.onsites-desk .cw-dash-panel-head--map,
body.onsites-desk .cw-dash-panel-head--pie {
  padding: 16px var(--cw-page-inset-x) 8px;
  margin: 0;
  border-bottom: 0;
  box-shadow: none;
}
body.onsites-desk .cw-dash-panel-head--map {
  align-items: flex-start;
}
body.onsites-desk .cw-dash-geo-mode {
  display: inline-flex;
  align-items: stretch;
  margin-top: 8px;
  border-bottom: 1px solid var(--dash-line);
  gap: 0;
}
body.onsites-desk .cw-dash-geo-mode button {
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: var(--dash-muted);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--cw-font);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
body.onsites-desk .cw-dash-geo-mode button:hover {
  color: var(--dash-ink);
}
body.onsites-desk .cw-dash-geo-mode button.on {
  color: var(--dash-ink);
  border-bottom-color: var(--dash-ink);
}
body.onsites-desk .cw-dash-panel-head--pie {
  justify-content: center;
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
body.onsites-desk .cw-dash-panel--countries {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0 12px 20px;
}
body.onsites-desk .cw-dash-map-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
body.onsites-desk .cw-dash-map-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--dash-muted);
}
body.onsites-desk .cw-dash-map-stat strong {
  font-family: var(--cw-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--dash-ink);
}
body.onsites-desk .cw-dash-panel--countries .cw-dash-pie-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  flex: 1;
  min-height: 280px;
  gap: 14px;
  padding: 4px 4px 8px;
}
body.onsites-desk .cw-dash-pie-chart {
  width: 200px;
  height: 200px;
  max-width: 100%;
  flex-shrink: 0;
  margin: 0 auto;
}
body.onsites-desk .cw-dash-pie-svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: none;
}
body.onsites-desk .cw-dash-pie-slice {
  stroke: #f3f5f8;
  stroke-width: 2;
  transform-origin: 100px 100px;
  animation: cw-dash-pie-in 0.45s ease both;
  animation-delay: var(--pie-delay, 0ms);
  transition: opacity 0.15s ease, filter 0.15s ease;
}
body.onsites-desk .cw-dash-pie-slice.is-hot {
  filter: brightness(1.06);
  opacity: 1;
}
body.onsites-desk .cw-dash-pie-hub {
  fill: #fff;
}
body.onsites-desk .cw-dash-pie-hub-n {
  fill: var(--dash-ink);
  font-family: var(--cw-display);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
body.onsites-desk .cw-dash-pie-hub-l {
  fill: #8a93a3;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
body.onsites-desk .cw-dash-pie-empty {
  display: grid;
  place-items: center;
  width: 200px;
  height: 200px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px dashed rgba(26, 35, 50, 0.14);
  color: var(--dash-muted);
  font-size: 13px;
}
body.onsites-desk .cw-dash-pie-empty-note {
  text-align: center;
  color: var(--dash-muted);
  font-size: 13px;
  padding: 8px 0;
}
body.onsites-desk .cw-dash-pie-legend {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  min-width: 0;
}
body.onsites-desk .cw-dash-pie-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 8px;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}
body.onsites-desk .cw-dash-pie-item:hover,
body.onsites-desk .cw-dash-pie-item.is-hot {
  background: rgba(26, 35, 50, 0.05);
}
body.onsites-desk .cw-dash-pie-item--static {
  cursor: default;
}
body.onsites-desk .cw-dash-pie-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
}
body.onsites-desk .cw-dash-pie-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
body.onsites-desk .cw-dash-pie-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
body.onsites-desk .cw-dash-pie-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--dash-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.onsites-desk .cw-dash-pie-line {
  font-size: 13px;
  color: var(--dash-muted);
}
body.onsites-desk .cw-dash-pie-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}
@keyframes cw-dash-pie-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
body.onsites-desk .cw-dash-map-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: #7a8494;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
body.onsites-desk .cw-dash-map-legend--float {
  position: absolute;
  left: var(--cw-page-inset-x);
  bottom: 12px;
  z-index: 2;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
body.onsites-desk .cw-dash-map-legend-bar {
  display: block;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #a8c4d8 0%, #6a9fbf 40%, #3a789e 72%, #1a4d6e 100%);
  box-shadow: none;
}
body.onsites-desk .cw-dash-map-shell {
  position: relative;
  flex: 1;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: #edf2f7;
  border: 0;
  box-shadow: none;
  min-height: 280px;
}
body.onsites-desk .cw-dash-map {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 280px;
  height: 100%;
  aspect-ratio: 900 / 441;
  padding: 0 0 20px;
  box-sizing: border-box;
}
body.onsites-desk .cw-dash-map-svg {
  display: block;
  width: 100%;
  height: 100%;
}
body.onsites-desk .cw-dash-map-ocean {
  pointer-events: none;
}
body.onsites-desk .cw-dash-map-country {
  fill: #d5dde6;
  stroke: #edf2f7;
  stroke-width: 0.45;
  vector-effect: non-scaling-stroke;
  paint-order: stroke fill;
  transition:
    fill 0.2s ease,
    stroke 0.15s ease,
    stroke-width 0.15s ease,
    opacity 0.3s ease;
}
body.onsites-desk .cw-dash-map-country.has-data {
  animation: cw-dash-map-in 0.4s ease both;
  animation-delay: var(--map-delay, 0ms);
}
@keyframes cw-dash-map-in {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}
body.onsites-desk .cw-dash-map-country.has-data:hover,
body.onsites-desk .cw-dash-map-country.is-hot {
  stroke: #1a4d6e;
  stroke-width: 1;
  filter: none;
}
body.onsites-desk .cw-dash-map-tip {
  position: absolute;
  z-index: 4;
  min-width: 132px;
  max-width: 200px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(18, 24, 32, 0.92);
  color: #fff;
  border: 0;
  box-shadow: 0 8px 20px rgba(15, 23, 36, 0.18);
  pointer-events: none;
  font-size: 13px;
  line-height: 1.35;
}
body.onsites-desk .cw-dash-map-tip-top {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
body.onsites-desk .cw-dash-map-tip-meta {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 500;
}
body.onsites-desk .cw-dash-map-fallback {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 24px;
  text-align: center;
  color: var(--dash-muted);
  font-size: 13px;
}
body.onsites-desk .cw-dash-panel {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--dash-line);
  border-radius: 0;
  box-shadow: none;
  padding: 18px var(--cw-page-inset-x) 26px;
  min-width: 0;
}
body.onsites-desk .cw-dash-secondary > .cw-dash-panel:last-child {
  border-right: 0;
}
body.onsites-desk .cw-dash-panel--wide {
  margin-bottom: 0;
}
body.onsites-desk .cw-dash-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 1px 0 rgba(21, 32, 51, 0.05);
}
body.onsites-desk .cw-dash-panel-head h2 {
  margin: 0;
  font-family: var(--cw-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dash-ink);
}
body.onsites-desk .cw-dash-panel-sub {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--dash-muted);
  line-height: 1.35;
}
body.onsites-desk .cw-dash-panel-desc {
  display: none;
}
body.onsites-desk .cw-dash-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--dash-accent);
  text-decoration: none;
}
body.onsites-desk .cw-dash-link:hover {
  text-decoration: underline;
}
body.onsites-desk .cw-dash-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--dash-muted);
}
body.onsites-desk .cw-dash-legend span::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  border-radius: 0;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--dash-accent);
}
body.onsites-desk .cw-dash-legend .is-created::before { background: #1f6aa5; }
body.onsites-desk .cw-dash-legend .is-resolved::before { background: #0a7a5c; }
body.onsites-desk .cw-dash-legend .is-vmsg::before { background: #8b93a2; }
body.onsites-desk .cw-dash-legend .is-amsg::before { background: #1f6aa5; }
body.onsites-desk .cw-dash-chart-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
body.onsites-desk .cw-dash-metric {
  display: inline-flex;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--dash-line);
  background: transparent;
  border-radius: 0;
}
body.onsites-desk .cw-dash-metric button {
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: var(--dash-muted);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--cw-font);
  border-radius: 0;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
body.onsites-desk .cw-dash-metric button:hover { color: var(--dash-ink); }
body.onsites-desk .cw-dash-metric button.on {
  background: transparent;
  color: var(--dash-ink);
  box-shadow: none;
  border-bottom-color: var(--dash-ink);
}
body.onsites-desk .cw-dash-chart-shell {
  position: relative;
  width: 100%;
  min-height: 220px;
}
body.onsites-desk .cw-dash-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 220px;
  overflow: visible;
}
body.onsites-desk .cw-dash-svg-grid {
  stroke: rgba(21, 32, 51, 0.1);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
body.onsites-desk .cw-dash-svg-base {
  stroke: rgba(21, 32, 51, 0.22);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
body.onsites-desk .cw-dash-svg-ylabel,
body.onsites-desk .cw-dash-svg-xlabel {
  fill: #8b93a2;
  font-size: 13px;
  font-family: var(--cw-font);
}
body.onsites-desk .cw-dash-svg-bar { opacity: 1; }
body.onsites-desk .cw-dash-svg-hit {
  fill: transparent;
  cursor: crosshair;
}
body.onsites-desk .cw-dash-svg-hit.is-active {
  fill: rgba(31, 106, 165, 0.06);
}
body.onsites-desk .cw-dash-tip {
  position: absolute;
  z-index: 5;
  min-width: 112px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 10px 28px rgba(21, 32, 51, 0.12);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  color: #4b5568;
  font-size: 13px;
  line-height: 1.45;
  pointer-events: none;
}
body.onsites-desk .cw-dash-tip[hidden] { display: none !important; }
body.onsites-desk .cw-dash-tip strong {
  display: block;
  margin-bottom: 4px;
  color: var(--dash-ink);
  font-size: 13px;
}
body.onsites-desk .cw-dash-chart-foot {
  margin-top: 10px;
  font-size: 13px;
  color: var(--dash-muted);
}
body.onsites-desk .cw-dash-table th,
body.onsites-desk .cw-dash-table td {
  padding: 10px 8px;
  font-size: 13px;
}
body.onsites-desk .cw-dash table.cw-table th {
  color: var(--dash-soft);
  font-weight: 650;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--dash-line-strong);
}
body.onsites-desk .cw-dash table.cw-table td {
  border-bottom: 1px solid var(--dash-line);
  color: #1a2332;
}
body.onsites-desk .cw-dash table.cw-table tr:hover td {
  background: transparent;
  box-shadow: inset 2px 0 0 var(--dash-accent);
}
body.onsites-desk .cw-dash-table tr.is-heavy td {
  background: transparent;
  box-shadow: inset 2px 0 0 var(--dash-warn);
}
body.onsites-desk .cw-dash-load-cell {
  min-width: 72px;
}
body.onsites-desk .cw-dash-load-n {
  display: inline-block;
  min-width: 14px;
  margin-right: 6px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
body.onsites-desk .cw-dash-load-track {
  display: inline-block;
  vertical-align: middle;
  width: 48px;
  height: 2px;
  border-radius: 0;
  background: var(--dash-line);
  overflow: hidden;
}
body.onsites-desk .cw-dash-load-track i {
  display: block;
  height: 100%;
  border-radius: 0;
  background: var(--dash-accent);
}
body.onsites-desk .cw-dash-empty-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 0;
  color: var(--dash-muted);
  text-align: left;
}
body.onsites-desk .cw-dash-empty-card strong {
  color: var(--dash-ink);
  font-size: 13px;
}
body.onsites-desk .cw-dash-empty-card span {
  font-size: 13px;
}
body.onsites-desk .cw-dash-bars {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
body.onsites-desk .cw-dash-bar-row {
  display: grid;
  grid-template-columns: minmax(72px, 0.9fr) minmax(0, 1.4fr) 28px;
  gap: 10px;
  align-items: center;
}
body.onsites-desk .cw-dash-bar-label {
  font-size: 13px;
  color: #2a3344;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: capitalize;
}
body.onsites-desk .cw-dash-bar-track {
  height: 2px;
  border-radius: 0;
  background: var(--dash-line);
  overflow: hidden;
}
body.onsites-desk .cw-dash-bar-fill {
  height: 100%;
  border-radius: 0;
  background: var(--dash-ink);
  min-width: 0;
  transition: width 0.35s ease;
}
body.onsites-desk .cw-dash-bar-fill.is-csat {
  background: var(--dash-accent);
}
body.onsites-desk .cw-dash-bar-val {
  font-size: 13px;
  color: var(--dash-muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
body.onsites-desk .cw-dash-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
body.onsites-desk .cw-dash-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 10px 0 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13px;
  color: var(--dash-ink);
}
body.onsites-desk .cw-dash-tag i {
  width: 8px;
  height: 2px;
  border-radius: 1px;
}
body.onsites-desk .cw-dash-tag b { font-weight: 650; }
body.onsites-desk .cw-dash-tag em {
  font-style: normal;
  color: var(--dash-muted);
  font-variant-numeric: tabular-nums;
}
body.onsites-desk .cw-dash-csat { margin-bottom: 10px; }
body.onsites-desk .cw-dash-low-title {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--dash-line);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dash-soft);
}
body.onsites-desk .cw-dash-low-item {
  display: block;
  padding: 9px 0;
  font-size: 13px;
  color: #2a3344;
  text-decoration: none;
  border-bottom: 1px solid var(--dash-line);
  transition: color 0.15s ease;
}
body.onsites-desk .cw-dash-low-item:hover { color: var(--dash-accent); }
body.onsites-desk .cw-dash-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  position: relative;
}
body.onsites-desk .cw-dash-split > :first-child {
  padding-right: 20px;
  border-right: 1px solid var(--dash-line);
}
body.onsites-desk .cw-dash-empty,
body.onsites-desk .cw-dash-empty-cell {
  margin: 0;
  padding: 8px 0;
  color: var(--dash-muted);
  font-size: 13px;
  text-align: left;
}
body.onsites-desk .cw-dash-updated {
  margin: 0;
  padding: 16px var(--cw-page-inset-x) 0;
  text-align: right;
  font-size: 13px;
  color: var(--dash-soft);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

@media (max-width: 1100px) {
  body.onsites-desk .cw-dash-inner {
    padding: 0 0 56px;
  }
  body.onsites-desk .cw-settings-head,
  body.onsites-desk .cw-visitors-head,
  body.onsites-desk .cw-dash-head,
  body.onsites-desk .cw-requests-head {
    padding: 18px 16px 12px;
  }
  body.onsites-desk .cw-visitors-body {
    padding-left: 16px;
    padding-right: 16px;
  }
  body.onsites-desk .cw-dash-kpis,
  body.onsites-desk .cw-dash-period {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.onsites-desk .cw-stat:nth-child(2n),
  body.onsites-desk .cw-dash-period-item:nth-child(2n) {
    border-right: 0;
  }
  body.onsites-desk .cw-stat:nth-child(-n + 2),
  body.onsites-desk .cw-dash-period-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--dash-line);
  }
  body.onsites-desk .cw-dash-period-item {
    padding: 12px 16px;
  }
  body.onsites-desk .cw-dash-work {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  body.onsites-desk .cw-dash-work > .cw-dash-panel--chart {
    border-right: 0;
    border-bottom: 1px solid var(--dash-line-strong);
  }
  body.onsites-desk .cw-dash-secondary--duo,
  body.onsites-desk .cw-dash-secondary--trio,
  body.onsites-desk .cw-dash-secondary--geo {
    grid-template-columns: 1fr;
  }
  body.onsites-desk .cw-dash-secondary > .cw-dash-panel {
    border-right: 0;
    border-bottom: 1px solid var(--dash-line);
  }
  body.onsites-desk .cw-dash-secondary > .cw-dash-panel:last-child {
    border-bottom: 0;
  }
}
@media (max-width: 800px) {
  body.onsites-desk .cw-dash-inner {
    padding: 0 0 72px;
  }
  body.onsites-desk .cw-dash-period {
    grid-template-columns: 1fr 1fr;
  }
  body.onsites-desk .cw-dash-split {
    grid-template-columns: 1fr;
  }
  body.onsites-desk .cw-dash-split > :first-child {
    padding-right: 0;
    border-right: 0;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--dash-line);
  }
  body.onsites-desk .cw-stat strong {
    font-size: 31px;
  }
}

@media (max-width: 1100px) {
  body.onsites-desk .cw-action span { display: none; }
  body.onsites-desk .cw-action { width: 34px; padding: 0; justify-content: center; }
  body.onsites-desk .cw-action .cw-kbd { display: none; }
  body.onsites-desk .cw-action-resolve span { display: inline; }
  body.onsites-desk .cw-action-resolve {
    width: auto;
    padding: 0 10px;
  }
  body.onsites-desk .cw-details-wide-only { display: none !important; }
}

@media (max-width: 960px) {
  body.onsites-desk .cw-workspace {
    grid-template-columns: var(--cw-list-w) 1fr;
  }
  body.onsites-desk .cw-contact { display: none; }
}

/* ——Redesign: thread chrome ——*/
body.onsites-desk .cw-thread-body:not([hidden]) {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
body.onsites-desk .cw-contact-body:not([hidden]) {
  display: flex;
  flex-direction: column;
}
body.onsites-desk .cw-thread-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 14px;
}
body.onsites-desk .cw-thread-back {
  display: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--cw-text-2);
  border-radius: var(--cw-radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}
body.onsites-desk .cw-thread-back:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--cw-text);
}
body.onsites-desk .cw-thread-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
body.onsites-desk .cw-thread-meta {
  min-width: 0;
  flex: 1;
}
body.onsites-desk .cw-thread-meta .title {
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.onsites-desk .cw-thread-meta .sub {
  margin-top: 2px;
  font-size: 13px;
  color: var(--cw-text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.onsites-desk .cw-thread-meta .sub[hidden] {
  display: none !important;
}
body.onsites-desk .cw-thread-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Thread messages —compact readable column */
body.onsites-desk .cw-post-avatar,
body.onsites-desk .cw-post-gutter .cw-avatar {
  display: none !important;
}
body.onsites-desk .cw-post-gutter-time {
  display: none;
}

body.onsites-desk .cw-post:not(.cw-post--note) {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  width: 100%;
  max-width: none;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
}
body.onsites-desk .cw-post:not(.cw-post--note) .cw-post-gutter {
  display: none;
}

body.onsites-desk .cw-post--them {
  align-items: flex-start;
  padding-right: 2.5rem;
}
body.onsites-desk .cw-post--me {
  align-items: flex-end;
  padding-left: 1.25rem;
}

body.onsites-desk .cw-post-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}
body.onsites-desk .cw-post--them .cw-post-row {
  justify-content: flex-start;
  width: 100%;
}
body.onsites-desk .cw-post--me .cw-post-row {
  justify-content: flex-end;
  width: 100%;
}

body.onsites-desk .cw-post--in {
  animation: cw-desk-post-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes cw-desk-post-in {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.onsites-desk .cw-post--in {
    animation: none;
  }
}

body.onsites-desk .cw-post-bubble {
  width: fit-content;
  max-width: min(32rem, calc(100% - 32px));
  min-width: 0;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 12px;
  box-sizing: border-box;
  word-break: break-word;
}

/* Visitor —left */
body.onsites-desk .cw-post--them .cw-post-bubble {
  background: #232428;
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom-left-radius: 4px;
}

/* Agent —right */
body.onsites-desk .cw-post--me .cw-post-bubble {
  background: #255a8f;
  color: #f2f7fc;
  border: 1px solid rgba(142, 184, 255, 0.18);
  border-bottom-right-radius: 4px;
}

body.onsites-desk .cw-post-bubble.cw-md .cw-md-p {
  margin: 0 0 0.55em;
}
body.onsites-desk .cw-post-bubble.cw-md .cw-md-p:last-child {
  margin-bottom: 0;
}
body.onsites-desk .cw-post-bubble.cw-md .cw-md-ul,
body.onsites-desk .cw-post-bubble.cw-md .cw-md-ol {
  margin: 0.35em 0 0.55em;
  padding-left: 1.25em;
}
body.onsites-desk .cw-post-bubble.cw-md .cw-md-ul li,
body.onsites-desk .cw-post-bubble.cw-md .cw-md-ol li {
  margin: 0.2em 0;
}
body.onsites-desk .cw-post-bubble.cw-md .cw-md-h {
  margin: 0.15em 0 0.4em;
  font-size: 1.02em;
  font-weight: 700;
}
body.onsites-desk .cw-post-bubble.cw-md .cw-md-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.08em 0.28em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}
body.onsites-desk .cw-post-bubble.cw-md .cw-md-pre {
  margin: 0.4em 0 0.55em;
  padding: 8px 10px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.86em;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
body.onsites-desk .cw-post-bubble.cw-md .cw-md-a {
  color: #9fd0ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* AI bot — warm stone (not agent blue, not visitor charcoal) */
body.onsites-desk .cw-post--ai .cw-post-bubble,
body.onsites-desk .cw-post--me.cw-post--ai .cw-post-bubble {
  background: #3a372f;
  color: #f2eee6;
  border: 1px solid rgba(210, 180, 120, 0.22);
  box-shadow: none;
  border-radius: 12px;
  border-bottom-right-radius: 4px;
}
body.onsites-desk .cw-post--ai .cw-post-bubble::before {
  content: none;
  display: none;
}
body.onsites-desk .cw-post-bubble--ai {
  position: relative;
  overflow: hidden;
}
body.onsites-desk .cw-post--ai .cw-post-bubble.cw-md .cw-md-a {
  color: #e6c88a;
}
body.onsites-desk .cw-post--ai .cw-post-bubble.cw-md .cw-md-code,
body.onsites-desk .cw-post--ai .cw-post-bubble.cw-md .cw-md-pre {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(210, 180, 120, 0.14);
}
body.onsites-desk .cw-post-face--ai-mark {
  background: #4a453a !important;
  color: #e8d9b0 !important;
  border-color: rgba(210, 180, 120, 0.35) !important;
}
body.onsites-desk .cw-post-who.is-ai {
  color: rgba(232, 217, 176, 0.75);
}
body.onsites-desk .cw-ai-badge {
  display: inline-flex;
  align-items: center;
  height: 15px;
  padding: 0 5px;
  margin-right: 2px;
  border-radius: 4px;
  font: 650 0.56rem/1 var(--cw-font);
  letter-spacing: 0.06em;
  color: #2a2418;
  background: #d4c19a;
  border: 0;
}
body.onsites-desk .cw-post--ai .cw-stream-cursor,
body.onsites-desk .cw-post--me.cw-post--ai .cw-stream-cursor {
  background: rgba(232, 217, 176, 0.55);
}
body.onsites-desk .cw-stream-cursor {
  display: inline-block;
  width: 1.5px;
  height: 0.92em;
  margin-left: 2px;
  vertical-align: -0.1em;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.45);
  animation: cw-desk-stream-blink 1s ease-in-out infinite;
}
@keyframes cw-desk-stream-blink {
  0%, 40% { opacity: 1; }
  60%, 100% { opacity: 0.15; }
}
body.onsites-desk .cw-post.is-streaming .cw-post-bubble {
  min-height: 1.35em;
}

body.onsites-desk .cw-post-face,
body.onsites-desk .cw-post-face-spacer {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
body.onsites-desk .cw-post-face {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #1a3348;
  border: 1px solid rgba(107, 155, 200, 0.35);
  color: #b8d4f0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  user-select: none;
  overflow: hidden;
}
body.onsites-desk .cw-post-face--photo {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
  color: transparent;
  font-size: 0;
  padding: 0;
}
body.onsites-desk .cw-post-face--photo .cw-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}
body.onsites-desk .cw-post-face-spacer {
  visibility: hidden;
}

body.onsites-desk .cw-post--them.cw-post--cont .cw-post-bubble,
body.onsites-desk .cw-post--them.cw-post--mid .cw-post-bubble,
body.onsites-desk .cw-post--them.cw-post--end .cw-post-bubble {
  border-top-left-radius: 4px;
}
body.onsites-desk .cw-post--me.cw-post--cont .cw-post-bubble,
body.onsites-desk .cw-post--me.cw-post--mid .cw-post-bubble,
body.onsites-desk .cw-post--me.cw-post--end .cw-post-bubble {
  border-top-right-radius: 4px;
}

body.onsites-desk .cw-post--cont:not(.cw-post--note),
body.onsites-desk .cw-post--mid:not(.cw-post--note) {
  margin-bottom: 2px;
}
body.onsites-desk .cw-post--start:not(.cw-post--note) {
  margin-top: 0;
  margin-bottom: 2px;
}
body.onsites-desk .cw-post--end:not(.cw-post--note),
body.onsites-desk .cw-post--single:not(.cw-post--note) {
  margin-top: 0;
  margin-bottom: 10px;
}

body.onsites-desk .cw-post-body {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: inherit;
}

body.onsites-desk .cw-post-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 0 2px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.34);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  max-width: min(32rem, 100%);
}
body.onsites-desk .cw-post--me .cw-post-meta {
  justify-content: flex-end;
  padding-right: 32px;
}
body.onsites-desk .cw-post--them .cw-post-meta {
  justify-content: flex-start;
  padding-left: 30px;
}
body.onsites-desk .cw-post-who {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.42);
}
body.onsites-desk .cw-post--me .cw-post-who {
  color: rgba(142, 184, 255, 0.7);
}
body.onsites-desk .cw-post-meta-sep {
  opacity: 0.45;
}
body.onsites-desk .cw-receipt {
  display: inline-flex;
  align-items: center;
  gap: 0;
  vertical-align: -1px;
  color: rgba(113, 113, 122, 0.9);
  line-height: 1;
}
body.onsites-desk .cw-receipt.is-read {
  color: var(--cw-brand, #6b9bc8);
}
body.onsites-desk .cw-receipt.is-failed {
  color: #e57373;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
body.onsites-desk .cw-receipt svg {
  display: block;
  margin-left: -4px;
}
body.onsites-desk .cw-receipt svg:first-child {
  margin-left: 0;
}
body.onsites-desk .cw-post-time {
  color: rgba(255, 255, 255, 0.28);
}

body.onsites-desk .cw-post--note {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-self: center;
  max-width: min(28rem, 92%);
  width: 100%;
  margin: 10px auto 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(240, 215, 140, 0.14);
  background: rgba(240, 215, 140, 0.07);
  column-gap: 10px;
  box-shadow: none;
}
body.onsites-desk .cw-post--note .cw-post-gutter {
  display: flex;
  width: 28px;
  min-width: 28px;
  margin: 0;
  padding-top: 2px;
}

body.onsites-desk .cw-action-icon {
  width: 32px;
  padding: 0;
  justify-content: center;
}
body.onsites-desk .cw-action-ghost {
  background: transparent;
}
body.onsites-desk .cw-more-wrap {
  position: relative;
}
body.onsites-desk .cw-more-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  min-width: 180px;
  padding: 4px;
  background: #161618;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  box-shadow: var(--cw-shadow);
}
body.onsites-desk .cw-more-menu[hidden] { display: none !important; }
body.onsites-desk .cw-more-menu > button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: var(--cw-text-2);
  font-size: 13px;
  font-family: var(--cw-font);
  cursor: pointer;
  border-radius: 4px;
  text-align: left;
}
body.onsites-desk .cw-more-menu > button:hover {
  background: rgba(107, 155, 200, 0.1);
  color: var(--cw-text);
}
body.onsites-desk .cw-more-menu > button[hidden] { display: none !important; }
body.onsites-desk .cw-more-menu .cw-transfer-menu {
  position: static;
  display: none;
  margin-top: 2px;
  border: 0;
  box-shadow: none;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}
body.onsites-desk .cw-more-menu .cw-transfer-menu.on {
  display: block;
}
body.onsites-desk .cw-more-menu .cw-transfer-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: var(--cw-text-2);
  font-size: 13px;
  font-family: var(--cw-font);
  cursor: pointer;
}
body.onsites-desk .cw-more-menu .cw-transfer-menu button:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--cw-text);
}
body.onsites-desk .cw-reply-box {
  border-radius: var(--cw-radius);
}
body.onsites-desk .cw-send-icon {
  border-radius: var(--cw-radius-sm);
}
body.onsites-desk .cw-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 180px;
  padding: 2px 4px 2px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
}
body.onsites-desk .cw-file-chip[hidden] { display: none !important; }
body.onsites-desk .cw-file-chip .cw-reply-hint {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.onsites-desk .cw-file-clear {
  width: 20px;
  height: 20px;
  border: 0;
  background: transparent;
  color: var(--cw-text-3);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  border-radius: 4px;
}
body.onsites-desk .cw-file-clear:hover {
  color: var(--cw-text);
  background: rgba(255, 255, 255, 0.06);
}

body.onsites-desk .cw-empty-mark { display: none; }
body.onsites-desk .cw-empty {
  gap: 6px;
  padding: 40px 28px;
}
body.onsites-desk #emptyThread {
  max-width: 320px;
  margin: auto;
}
body.onsites-desk .cw-empty strong {
  font-family: var(--cw-display);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--cw-text-2);
}
body.onsites-desk .cw-empty span {
  max-width: 280px;
  line-height: 1.5;
  font-size: 13px;
  color: var(--cw-text-3);
}

body.onsites-desk .cw-list-loading,
body.onsites-desk .cw-thread-loading {
  height: 2px;
  flex-shrink: 0;
  background: linear-gradient(90deg, transparent, var(--admin-glow), transparent);
  background-size: 200% 100%;
  animation: cwLoadBar 0.9s linear infinite;
}
body.onsites-desk .cw-list-loading[hidden],
body.onsites-desk .cw-thread-loading[hidden] {
  display: none !important;
}
@keyframes cwLoadBar {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Conversation switch: keep prior thread dimmed (no shimmer blink) */
body.onsites-desk .cw-messages.is-thread-switching {
  opacity: 0.48;
  pointer-events: none;
  transition: opacity 0.12s ease;
}
@media (prefers-reduced-motion: reduce) {
  body.onsites-desk .cw-messages.is-thread-switching {
    transition: none;
    opacity: 0.62;
  }
}

/* Static placeholders only when there is nothing to keep on screen */
body.onsites-desk .cw-msg-skel {
  display: flex;
  margin: 10px 0;
}
body.onsites-desk .cw-msg-skel.is-me {
  justify-content: flex-end;
}
body.onsites-desk .cw-msg-skel-bubble {
  display: block;
  width: min(42%, 220px);
  height: 44px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.06);
}
body.onsites-desk .cw-msg-skel:nth-child(2) .cw-msg-skel-bubble { width: min(56%, 280px); }
body.onsites-desk .cw-msg-skel:nth-child(3) .cw-msg-skel-bubble { width: min(34%, 160px); height: 32px; }
body.onsites-desk .cw-msg-skel:nth-child(5) .cw-msg-skel-bubble { width: min(48%, 240px); }

body.onsites-desk .cw-confirm {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(480px, calc(100vw - 32px));
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--cw-border);
  border-left: 3px solid var(--admin-accent);
  border-radius: var(--cw-radius-sm);
  box-shadow: 0 10px 28px rgba(8, 12, 18, 0.16);
  color: #1f2a37;
  font-size: 13px;
}
body.onsites-desk .cw-confirm[hidden] { display: none !important; }
body.onsites-desk .cw-confirm-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
body.onsites-desk .cw-confirm .cw-btn {
  height: 30px;
  border-radius: var(--cw-radius-sm);
}

/* Contact drawer */
body.onsites-desk .cw-contact-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
}
body.onsites-desk .cw-contact-drawer[hidden] { display: none !important; }
body.onsites-desk .cw-contact-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
body.onsites-desk .cw-contact-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 92vw);
  display: flex;
  flex-direction: column;
  background: #111113;
  border-left: 1px solid var(--cw-border);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
}
body.onsites-desk .cw-contact-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--cw-border);
  flex-shrink: 0;
}
body.onsites-desk .cw-contact-drawer-head strong {
  font-family: var(--cw-display);
  font-size: 13px;
}
body.onsites-desk .cw-contact-drawer-close {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--cw-text-3);
  font-size: 13px;
  cursor: pointer;
  border-radius: var(--cw-radius-sm);
}
body.onsites-desk .cw-contact-drawer-close:hover {
  color: var(--cw-text);
  background: rgba(255, 255, 255, 0.05);
}
body.onsites-desk .cw-contact-drawer-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
body.onsites-desk .cw-contact-drawer-body .cw-contact-body {
  display: flex !important;
  height: auto;
  min-height: 100%;
}

/* Connect channel drawer (right sheet over desk) */
body.onsites-desk .cw-connect-channel-drawer {
  position: fixed;
  inset: 0;
  z-index: 72;
}
body.onsites-desk .cw-connect-channel-drawer[hidden] {
  display: none !important;
}
body.onsites-desk .cw-connect-channel-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
body.onsites-desk .cw-connect-channel-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(720px, 94vw);
  display: flex;
  flex-direction: column;
  background: #0a0b0e;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.5);
}
body.onsites-desk .cw-connect-channel-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  background: #0c0d11;
}
body.onsites-desk .cw-connect-channel-drawer-head strong {
  font-family: var(--cw-display, inherit);
  font-size: 14px;
  font-weight: 650;
  color: #f0f1f4;
  letter-spacing: -0.01em;
}
body.onsites-desk .cw-connect-channel-drawer-close {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #9aa3b2;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}
body.onsites-desk .cw-connect-channel-drawer-close:hover {
  color: #f0f1f4;
  background: rgba(255, 255, 255, 0.06);
}
body.onsites-desk .cw-connect-channel-drawer-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body.onsites-desk .cw-connect-channel-frame {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #0a0b0e;
}

/* Mobile bottom nav */
body.onsites-desk .cw-mobile-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  height: 52px;
  padding: 0 8px env(safe-area-inset-bottom, 0);
  background: rgba(14, 14, 16, 0.96);
  border-top: 1px solid var(--cw-border);
  backdrop-filter: blur(12px);
}
body.onsites-desk .cw-mobile-nav-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cw-text-3);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--cw-radius-sm);
  padding: 0 2px;
  text-align: center;
  line-height: 1.15;
}
body.onsites-desk .cw-mobile-nav-item.on,
body.onsites-desk .cw-mobile-nav-item:hover {
  color: var(--admin-glow);
}

@media (min-width: 1101px) {
  body.onsites-desk #detailsBtn { display: none; }
}

/* Home desk: Details toggles the contact rail on desktop too */
body.onsites-desk.cw-home-page .cw-workspace.cw-home #detailsBtn {
  display: inline-flex !important;
}

body.onsites-desk.cw-home-page .cw-workspace.cw-home.is-team-mode #detailsBtn,
body.onsites-desk.cw-home-page .cw-workspace.cw-home.is-ai-mode #detailsBtn,
body.onsites-desk.cw-home-page .cw-workspace.cw-home.is-offline-mode #detailsBtn {
  display: none !important;
}

@media (max-width: 1100px) {
  body.onsites-desk #detailsBtn { display: inline-flex; }
}

@media (max-width: 800px) {
  body.onsites-desk .cw-shell {
    grid-template-columns: 1fr;
    padding-bottom: 52px;
  }
  body.onsites-desk .cw-rail { display: none; }
  body.onsites-desk .cw-nav { display: none; }
  body.onsites-desk .cw-mobile-nav { display: flex; }
  body.onsites-desk .cw-workspace {
    grid-template-columns: 1fr;
  }
  body.onsites-desk .cw-workspace:not(.cw-home):not(.is-thread) .cw-thread {
    display: none;
  }
  body.onsites-desk .cw-workspace:not(.cw-home).is-thread .cw-list-pane {
    display: none;
  }
  body.onsites-desk .cw-chat-workspace {
    grid-template-columns: 1fr;
  }
  body.onsites-desk .cw-chat-workspace:not(.is-thread) .cw-thread {
    display: none;
  }
  body.onsites-desk .cw-chat-workspace.is-thread .cw-list-pane {
    display: none;
  }
  body.onsites-desk .cw-thread-back {
    display: inline-flex;
  }
  body.onsites-desk .cw-list-pane,
  body.onsites-desk .cw-thread {
    width: 100%;
    max-width: none;
  }
  body.onsites-desk .cw-toast,
  body.onsites-desk .cw-confirm {
    bottom: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.onsites-desk .cw-scope.is-hot .cw-scope-n,
  body.onsites-desk .cw-conv-card.is-flash,
  body.onsites-desk .cw-scope-badge.is-hot,
  body.onsites-desk .cw-list-loading,
  body.onsites-desk .cw-thread-loading,
  body.onsites-desk .cw-nav-indicator.is-ready,
  body.onsites-desk .cw-list-pane .cw-conv-list {
    animation: none !important;
    transition: none !important;
  }
}

/* ——Incoming desk alerts ——*/
body.onsites-desk .cw-incoming-toast {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: min(360px, calc(100vw - 28px));
  padding: 12px;
  background: #141416;
  border: 1px solid var(--cw-border);
  border-left: 3px solid var(--admin-accent);
  border-radius: var(--cw-radius-sm);
  color: var(--cw-text);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}
body.onsites-desk .cw-incoming-toast.on {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
body.onsites-desk .cw-incoming-toast[hidden] {
  display: none !important;
}
body.onsites-desk .cw-incoming-toast-mark {
  flex-shrink: 0;
  margin-top: 1px;
  padding: 2px 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--admin-glow);
  border: 1px solid rgba(107, 155, 200, 0.35);
  background: rgba(107, 155, 200, 0.1);
}
body.onsites-desk .cw-incoming-toast-body {
  min-width: 0;
  flex: 1;
}
body.onsites-desk .cw-incoming-toast-title {
  display: block;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
body.onsites-desk .cw-incoming-toast-text {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--cw-text-3);
  line-height: 1.35;
}
body.onsites-desk .cw-incoming-toast-x {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: var(--cw-text-3);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
body.onsites-desk .cw-incoming-toast-x:hover {
  color: var(--cw-text);
}
body.onsites-desk .cw-alert-perm {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 210;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(520px, calc(100vw - 24px));
  padding: 10px 12px;
  background: #161618;
  border: 1px solid var(--cw-border);
  border-left: 3px solid #f0b429;
  color: var(--cw-text-2);
  font-size: 13px;
}
body.onsites-desk .cw-alert-perm-btn {
  flex-shrink: 0;
  height: 28px;
  padding: 0 10px;
  border: 0;
  background: var(--admin-accent);
  color: #0b0b0c;
  font-size: 13px;
  font-weight: 650;
  font-family: var(--cw-font);
  cursor: pointer;
}
body.onsites-desk .cw-alert-perm-x {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: var(--cw-text-3);
  font-size: 13px;
  cursor: pointer;
}

body.onsites-desk .cw-alert-switches {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 520px;
  margin-bottom: 14px;
}
body.onsites-desk .cw-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--cw-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
body.onsites-desk .cw-switch-row:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}
body.onsites-desk .cw-switch-row:disabled {
  opacity: 0.72;
  cursor: default;
}
body.onsites-desk .cw-switch-row-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
body.onsites-desk .cw-switch-row-text strong {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--cw-text);
}
body.onsites-desk .cw-switch-row-hint {
  font-size: 13px;
  line-height: 1.35;
  color: var(--cw-text-3);
}
body.onsites-desk .cw-switch {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: background 0.18s ease;
}
body.onsites-desk .cw-switch-row.is-on .cw-switch {
  background: #2f9e6f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
body.onsites-desk .cw-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f4f4f5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease;
}
body.onsites-desk .cw-switch-row.is-on .cw-switch-knob {
  transform: translateX(16px);
}

/* ——Inbox chat layout polish ——*/
body.onsites-desk .cw-day-sep {
  margin: 22px 0 16px;
  max-width: none;
  width: 100%;
  align-self: stretch;
}
body.onsites-desk .cw-day-sep span {
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.32);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}
body.onsites-desk .cw-day-sep::before,
body.onsites-desk .cw-day-sep::after {
  background: rgba(255, 255, 255, 0.05);
}

body.onsites-desk .cw-thread-head {
  min-height: 52px;
  padding: 10px 16px;
  gap: 12px;
}
body.onsites-desk .cw-thread-meta .title {
  font-family: var(--cw-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
body.onsites-desk .cw-thread-meta .sub {
  font-size: 13px;
  margin-top: 3px;
}
body.onsites-desk .cw-thread-actions {
  gap: 8px;
}
body.onsites-desk .cw-status-pill {
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 13px;
  letter-spacing: 0.06em;
}
body.onsites-desk .cw-banner {
  padding: 8px 16px;
  font-size: 13px;
  line-height: 1.4;
}

body.onsites-desk .cw-composer-wrap {
  padding: 0 16px 16px;
  background: transparent;
  display: block;
}
body.onsites-desk .cw-composer-wrap .cw-reply-box {
  width: 100%;
  max-width: none;
}
body.onsites-desk .cw-reply-box {
  border-radius: 10px;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  transition: border-color 0.15s ease;
}
body.onsites-desk .cw-reply-box:focus-within {
  border-color: rgba(107, 155, 200, 0.35);
  box-shadow: none;
}
body.onsites-desk .cw-reply-box.is-note {
  background: #1a1812;
  border-color: rgba(240, 215, 140, 0.22);
}
body.onsites-desk .cw-reply-box.is-note:focus-within {
  border-color: rgba(240, 215, 140, 0.4);
  box-shadow: none;
}
body.onsites-desk .cw-reply-tabs {
  gap: 4px;
  padding: 10px 10px 0;
}
body.onsites-desk .cw-reply-tab {
  height: 28px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.12s ease, background 0.12s ease;
}
body.onsites-desk .cw-reply-tab:hover {
  color: var(--cw-text-2);
  background: rgba(255, 255, 255, 0.04);
}
body.onsites-desk .cw-reply-tab.active {
  background: rgba(107, 155, 200, 0.16);
  color: var(--admin-glow);
}
body.onsites-desk .cw-reply-editor {
  min-height: 76px;
  padding: 10px 14px 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--cw-text);
}
body.onsites-desk .cw-reply-editor::placeholder {
  color: rgba(255, 255, 255, 0.28);
}
body.onsites-desk .cw-reply-foot {
  padding: 4px 10px 10px;
}
body.onsites-desk .cw-composer-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
body.onsites-desk .cw-send-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  transition: background 0.14s ease;
}
body.onsites-desk .cw-send-icon:hover:not(:disabled) {
  background: #7eacd4;
  transform: none;
}
/* Save draft — side composer: icon-only, matches send / tool buttons */
body.onsites-desk .cw-mail-save-draft {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--cw-text-2, #aab6c5);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
body.onsites-desk .cw-mail-save-draft:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.26);
  color: var(--cw-text, #e8eef7);
}
body.onsites-desk .cw-mail-save-draft:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
body.onsites-desk .cw-mail-save-draft svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
body.onsites-desk .cw-mail-save-draft[hidden],
body.onsites-desk .cw-mail-discard-draft[hidden],
body.onsites-desk .cw-mail-fs-save[hidden],
body.onsites-desk .cw-mail-fs-close[hidden] {
  display: none;
}
body.onsites-desk .cw-mail-discard-draft {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: transparent;
  color: var(--cw-text-3, #7d8a9c);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
body.onsites-desk .cw-mail-discard-draft:hover:not(:disabled) {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fda4a4;
}
body.onsites-desk .cw-mail-compose-empty {
  margin: 28px 18px;
  text-align: left;
  opacity: 0.85;
}
body.onsites-desk .cw-mail-compose-empty strong {
  display: block;
  font-size: 15px;
  font-weight: 650;
  margin-bottom: 6px;
}
body.onsites-desk .cw-mail-compose-empty span {
  font-size: 13px;
  color: var(--cw-text-3, #7d8a9c);
}
body.onsites-desk .cw-typing--desk {
  margin: 8px 0 10px;
  align-self: flex-start;
  width: auto;
  max-width: none;
  border-radius: 12px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding-left: 2px;
}

body.onsites-desk .cw-conv-card {
  position: relative;
}
body.onsites-desk .cw-conv-card .row1 {
  gap: 6px;
  margin-bottom: 1px;
}
body.onsites-desk .cw-conv-card.unread .name {
  font-weight: 700;
  color: var(--cw-text);
}
body.onsites-desk .cw-conv-card .preview {
  padding-right: 18px;
}
body.onsites-desk .cw-conv-card .badge-pos {
  top: auto;
  bottom: 10px;
  right: 8px;
}
body.onsites-desk .cw-conv-card.active {
  box-shadow: inset 0 0 0 1px rgba(15, 159, 122, 0.45);
}
body.onsites-desk .cw-list-head {
  flex-shrink: 0;
  padding: 10px var(--cw-list-head-pad-x);
  min-height: var(--cw-list-head-h);
}
body.onsites-desk .cw-chat-workspace {
  min-width: 0;
}
body.onsites-desk .cw-chat-workspace .cw-list-pane,
body.onsites-desk .cw-chat-workspace .cw-thread {
  min-width: 0;
}
body.onsites-desk .cw-chat-workspace .cw-conv-card {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
body.onsites-desk .cw-chat-workspace .cw-conv-card > .cw-avatar-wrap {
  display: none;
}
body.onsites-desk .cw-room-create {
  flex-shrink: 0;
  padding: 8px;
  gap: 6px;
}
body.onsites-desk .cw-room-create .cw-input {
  min-width: 0;
  flex: 1;
  height: 32px;
  font-size: 13px;
}
body.onsites-desk .cw-room-create .cw-btn {
  flex-shrink: 0;
  height: 32px;
  padding: 0 10px;
  font-size: 13px;
}

body.onsites-desk .cw-contact {
  padding: 14px 14px 18px;
  background: #eef2f7;
}
body.onsites-desk .cw-contact-hero {
  padding-bottom: 12px;
  margin-bottom: 0;
}
body.onsites-desk .cw-contact-id .name {
  font-size: 13px;
}
body.onsites-desk .cw-contact-id .email {
  margin-top: 2px;
  font-size: 13px;
}
body.onsites-desk .cw-contact-meta {
  margin-top: 6px;
  color: #7b8494;
}
body.onsites-desk .cw-contact-block {
  padding: 12px 0;
}
body.onsites-desk .cw-contact-block h3 {
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}
body.onsites-desk .cw-kv {
  margin-bottom: 5px;
}
body.onsites-desk .cw-device-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}
body.onsites-desk .cw-device-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 4px;
  border: 1px solid rgba(26, 35, 50, 0.1);
  background: #fff;
  color: var(--cw-text-2);
  font-size: 13px;
  font-weight: 500;
}
body.onsites-desk .cw-empty#emptyThread,
body.onsites-desk .cw-empty#contactEmpty {
  padding: 48px 28px;
}
body.onsites-desk .cw-empty#emptyThread strong,
body.onsites-desk .cw-empty#contactEmpty strong {
  font-size: 13px;
}

/* ——Conversations: Precision Ops cold paper ——*/
body.onsites-desk .cw-workspace {
  --cw-text: #152033;
  --cw-text-2: #3d4656;
  --cw-text-3: #7b8494;
  --cw-hairline: rgba(14, 21, 32, 0.1);
  --cw-border: rgba(14, 21, 32, 0.1);
  --cw-border-strong: rgba(14, 21, 32, 0.18);
  --cw-elev-1: #ffffff;
  --cw-elev-2: #eef2f7;
  --cw-inset: none;
  --admin-accent: #2f6f9f;
  --admin-glow: #2f6f9f;
  --admin-live: #0f9f7a;
  color: var(--cw-text);
  color-scheme: light;
  background: transparent;
}

body.onsites-desk .cw-workspace > .cw-list-pane,
body.onsites-desk .cw-workspace > #pane-admin > .cw-list-pane {
  background: rgba(244, 246, 249, 0.92);
  border-right: 1px solid rgba(14, 21, 32, 0.08);
  box-shadow: none;
}

body.onsites-desk .cw-list-top {
  min-height: var(--cw-list-head-h);
  box-sizing: border-box;
  padding: 10px var(--cw-list-head-pad-x) 10px;
  border-bottom: 1px solid rgba(14, 21, 32, 0.08);
  background: var(--cw-glass-paper);
  border-bottom-color: rgba(14, 21, 32, 0.08);
  box-shadow: inset 0 1px 0 var(--cw-glass-edge);
  backdrop-filter: blur(var(--cw-glass-blur)) saturate(1.1);
  -webkit-backdrop-filter: blur(var(--cw-glass-blur)) saturate(1.1);
}
body.onsites-desk .cw-list-title-row {
  margin-bottom: 10px;
}
body.onsites-desk .cw-list-title-row h2 {
  font-size: 13px;
  letter-spacing: -0.04em;
  color: #152033;
}
body.onsites-desk .cw-list-tools {
  gap: 9px;
}
body.onsites-desk .cw-status-dd-btn {
  background: #fff;
  border-color: rgba(26, 35, 50, 0.12);
  color: #5b6575;
}
body.onsites-desk .cw-status-dd-btn:hover {
  color: #1a2332;
  border-color: rgba(26, 35, 50, 0.2);
}
body.onsites-desk .cw-status-dd-btn[aria-expanded="true"] {
  color: #2f6fa3;
  border-color: rgba(61, 126, 176, 0.4);
}
body.onsites-desk .cw-status-dd-menu {
  background: #fff;
  border-color: rgba(26, 35, 50, 0.12);
  box-shadow: 0 12px 28px rgba(26, 35, 50, 0.12);
}
body.onsites-desk .cw-status-dd-menu button {
  color: #3d4656;
}
body.onsites-desk .cw-status-dd-menu button:hover,
body.onsites-desk .cw-status-dd-menu button[aria-selected="true"] {
  background: rgba(61, 126, 176, 0.1);
  color: #2f6fa3;
}
body.onsites-desk .cw-scope-row {
  padding: 3px;
  background: #e8ecf2;
  border: 1px solid rgba(26, 35, 50, 0.08);
  border-radius: var(--cw-radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
body.onsites-desk .cw-scope {
  height: 28px;
  font-size: 13px;
  border-radius: var(--cw-radius-sm);
  color: #6b7585;
}
body.onsites-desk .cw-scope:hover {
  color: #1a2332;
}
body.onsites-desk .cw-scope.on {
  color: #1a2332;
  background: #fff;
  box-shadow: 0 1px 3px rgba(26, 35, 50, 0.08);
}
body.onsites-desk .cw-scope.on .cw-scope-n {
  color: #2f6fa3;
}
body.onsites-desk .cw-scope-n {
  color: #8a93a3;
}
body.onsites-desk .cw-list-top .cw-search {
  height: 32px;
  padding: 0 10px;
  border-radius: var(--cw-radius);
  border-color: rgba(26, 35, 50, 0.1);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
body.onsites-desk .cw-list-top .cw-search:focus-within {
  border-color: rgba(61, 126, 176, 0.45);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(61, 126, 176, 0.12);
}
body.onsites-desk .cw-list-top .cw-search svg {
  color: #8a93a3;
  opacity: 1;
}
body.onsites-desk .cw-list-top .cw-search:focus-within svg {
  color: #2f6fa3;
}
body.onsites-desk .cw-list-top .cw-search input {
  color: #1a2332;
}
body.onsites-desk .cw-list-top .cw-search input::placeholder {
  color: #9aa3b2;
}
body.onsites-desk .cw-inbox-kicker {
  color: #8a93a3;
}
body.onsites-desk .cw-inbox-select {
  height: 30px;
  border-radius: var(--cw-radius);
  border-color: rgba(26, 35, 50, 0.1);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237b8494' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
      right 8px center / 12px no-repeat,
    #fff;
  color: #1a2332;
  box-shadow: none;
}
body.onsites-desk .cw-inbox-select:hover,
body.onsites-desk .cw-inbox-select:focus {
  border-color: rgba(26, 35, 50, 0.2);
  outline: none;
}

body.onsites-desk .cw-conv-list {
  padding: 4px 0 10px;
  background: transparent;
}
body.onsites-desk .cw-workspace .cw-conv-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  margin: 0;
  padding: 9px 12px 9px 10px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  transition:
    background 0.14s var(--cw-ease),
    border-color 0.14s var(--cw-ease),
    box-shadow 0.14s var(--cw-ease);
}
body.onsites-desk .cw-workspace .cw-conv-card:hover {
  background: rgba(255, 255, 255, 0.55);
  border-color: transparent;
}
body.onsites-desk .cw-workspace .cw-conv-card.active {
  background: rgba(15, 159, 122, 0.06);
  border-color: rgba(15, 159, 122, 0.55);
  box-shadow: none;
}
body.onsites-desk .cw-workspace .cw-conv-card.active .name {
  color: #0b6b52;
}
body.onsites-desk .cw-workspace .cw-conv-card.unread:not(.active) {
  background: rgba(15, 159, 122, 0.04);
  border-color: transparent;
  box-shadow: inset 2px 0 0 0 var(--admin-live);
}
body.onsites-desk .cw-workspace .cw-conv-card.is-waiting:not(.active) {
  border-color: transparent;
  box-shadow: inset 2px 0 0 0 #d45666;
  background: rgba(212, 86, 102, 0.04);
}
body.onsites-desk .cw-workspace .cw-conv-card .name {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.025em;
  color: #152033;
}
body.onsites-desk .cw-workspace .cw-conv-card .time {
  color: #8a93a3;
}
body.onsites-desk .cw-workspace .cw-conv-card .preview {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.4;
  color: #7b8494;
}
body.onsites-desk .cw-workspace .cw-conv-card.unread .preview {
  color: #3d4656;
}
body.onsites-desk .cw-workspace .cw-conv-card .meta-row {
  color: #9aa3b2;
}
body.onsites-desk .cw-workspace .cw-conv-card > .cw-avatar-wrap {
  width: 32px;
  height: 32px;
}
body.onsites-desk .cw-workspace .cw-conv-card > .cw-avatar-wrap > .cw-avatar {
  width: 100%;
  height: 100%;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(26, 35, 50, 0.08);
}
body.onsites-desk .cw-workspace .cw-presence-mark {
  right: -2px;
  bottom: -2px;
  width: 12px;
  height: 12px;
  border-color: #eef2f7;
}
body.onsites-desk .cw-workspace .cw-conv-card.active .cw-presence-mark {
  border-color: #e8f6f1;
}
body.onsites-desk .cw-workspace .cw-presence-mark[data-status="online"] {
  background: #0f9f7a;
  animation-name: cwPresencePulseLight;
}
body.onsites-desk .cw-workspace .cw-presence-mark[data-status="away"] {
  background: #d97706;
}
body.onsites-desk .cw-workspace .cw-presence-mark[data-status="offline"] {
  background: #94a3b8;
}
@keyframes cwPresencePulseLight {
  0% {
    box-shadow: 0 0 0 0 rgba(15, 159, 122, 0.45);
  }
  65% {
    box-shadow: 0 0 0 7px rgba(15, 159, 122, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(15, 159, 122, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.onsites-desk .cw-workspace .cw-presence-mark[data-status="online"] {
    animation: none;
    box-shadow: 0 0 0 2px rgba(15, 159, 122, 0.25);
  }
}

/* Thread canvas */
body.onsites-desk .cw-workspace > .cw-thread,
body.onsites-desk .cw-workspace > #pane-admin > .cw-thread {
  background: rgba(238, 242, 247, 0.94);
  border-right: 1px solid rgba(14, 21, 32, 0.08);
}
body.onsites-desk .cw-workspace .cw-thread-head {
  min-height: 52px;
  padding: 10px 16px;
  background: var(--cw-glass-paper);
  border-bottom: 1px solid rgba(14, 21, 32, 0.08);
  backdrop-filter: blur(var(--cw-glass-blur)) saturate(1.1);
  -webkit-backdrop-filter: blur(var(--cw-glass-blur)) saturate(1.1);
  box-shadow: inset 0 1px 0 var(--cw-glass-edge);
}
body.onsites-desk .cw-workspace .cw-thread-meta .title {
  font-size: 13px;
  letter-spacing: -0.04em;
  color: #152033;
}
body.onsites-desk .cw-workspace .cw-thread-meta .sub {
  color: #7b8494;
}
body.onsites-desk .cw-workspace .cw-action {
  height: 30px;
  border-radius: var(--cw-radius);
  background: #fff;
  border-color: rgba(26, 35, 50, 0.12);
  color: #4b5568;
  transition: background var(--cw-duration) ease, border-color var(--cw-duration) ease,
    color var(--cw-duration) ease;
}
body.onsites-desk .cw-workspace .cw-action:hover {
  background: #f4f6f9;
  color: #1a2332;
  border-color: rgba(26, 35, 50, 0.18);
}
body.onsites-desk .cw-workspace .cw-action-resolve {
  background: rgba(15, 159, 122, 0.1);
  border-color: rgba(15, 159, 122, 0.28);
  color: #0c7d60;
}
body.onsites-desk .cw-workspace .cw-action-resolve:hover {
  background: rgba(15, 159, 122, 0.16);
  color: #096650;
}
body.onsites-desk .cw-workspace .cw-status-pill {
  height: 22px;
  border-radius: var(--cw-radius-sm);
  letter-spacing: 0.05em;
  background: rgba(15, 159, 122, 0.1);
  border-color: rgba(15, 159, 122, 0.28);
  color: #0c7d60;
}
body.onsites-desk .cw-workspace .cw-status-pill.is-resolved {
  background: rgba(26, 35, 50, 0.05);
  border-color: rgba(26, 35, 50, 0.12);
  color: #5b6575;
}
body.onsites-desk .cw-workspace .cw-kbd {
  background: rgba(26, 35, 50, 0.06);
  color: #6b7585;
  border-color: rgba(26, 35, 50, 0.1);
}

body.onsites-desk .cw-workspace .cw-messages {
  padding: 16px 18px 24px;
  background: linear-gradient(180deg, #e8ecf2 0%, #e2e8f0 100%);
}
body.onsites-desk .cw-workspace .cw-post--them .cw-post-bubble {
  background: #fff;
  color: #1a2332;
  border: 1px solid rgba(14, 21, 32, 0.08);
  box-shadow: none;
}
body.onsites-desk .cw-workspace .cw-post--me .cw-post-bubble {
  background: #2f6f9f;
  color: #f7fbff;
  border: 1px solid rgba(47, 111, 159, 0.35);
  box-shadow: none;
}
/* AI must win over agent-blue in light inbox */
body.onsites-desk .cw-workspace .cw-post--ai .cw-post-bubble,
body.onsites-desk .cw-workspace .cw-post--me.cw-post--ai .cw-post-bubble {
  background: #f4efe4;
  color: #2c281f;
  border: 1px solid rgba(160, 130, 70, 0.28);
  box-shadow: none;
}
body.onsites-desk .cw-workspace .cw-post--ai .cw-post-who.is-ai {
  color: #8a7340;
}
body.onsites-desk .cw-workspace .cw-post--ai .cw-ai-badge {
  color: #2a2418;
  background: #e0c98a;
}
body.onsites-desk .cw-workspace .cw-post-face--ai-mark {
  background: #e8dfc8 !important;
  color: #6b5a32 !important;
  border-color: rgba(160, 130, 70, 0.4) !important;
}
body.onsites-desk .cw-workspace .cw-post--ai .cw-post-bubble.cw-md .cw-md-a {
  color: #8a6518;
}
body.onsites-desk .cw-workspace .cw-post--ai .cw-stream-cursor {
  background: rgba(106, 90, 50, 0.45);
}
body.onsites-desk .cw-workspace .cw-post-bubble {
  padding: 11px 15px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.55;
}
body.onsites-desk .cw-workspace .cw-post--them .cw-post-bubble {
  border-bottom-left-radius: 5px;
}
body.onsites-desk .cw-workspace .cw-post--me .cw-post-bubble {
  border-bottom-right-radius: 5px;
}
body.onsites-desk .cw-workspace .cw-post-meta {
  color: #6b7585;
}
body.onsites-desk .cw-workspace .cw-post-who {
  color: #3d4656;
}
body.onsites-desk .cw-workspace .cw-post--me .cw-post-who {
  color: #2f6f9f;
}
body.onsites-desk .cw-workspace .cw-post-meta-sep {
  opacity: 0.75;
  color: #8a93a3;
}
body.onsites-desk .cw-workspace .cw-post-time {
  color: #6b7585;
}
body.onsites-desk .cw-workspace .cw-post--note {
  background: rgba(240, 196, 80, 0.12);
  border-radius: 10px;
}
body.onsites-desk .cw-workspace .cw-post--note .cw-post-name {
  color: #9a7418;
}
body.onsites-desk .cw-workspace .cw-post--note .cw-post-body {
  color: #6d5414;
}
body.onsites-desk .cw-workspace .cw-day-sep {
  margin: 26px 0 18px;
}
body.onsites-desk .cw-workspace .cw-day-sep span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(26, 35, 50, 0.08);
  color: #7b8494;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
body.onsites-desk .cw-workspace .cw-day-sep::before,
body.onsites-desk .cw-workspace .cw-day-sep::after {
  background: rgba(26, 35, 50, 0.08);
}

body.onsites-desk .cw-workspace .cw-composer-wrap {
  padding: 4px 18px 18px;
}
body.onsites-desk .cw-workspace .cw-composer-wrap {
  background: transparent;
}
body.onsites-desk .cw-workspace .cw-reply-box {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(var(--cw-glass-blur)) saturate(1.1);
  -webkit-backdrop-filter: blur(var(--cw-glass-blur)) saturate(1.1);
}
body.onsites-desk .cw-workspace .cw-reply-box:focus-within {
  border-color: rgba(47, 111, 159, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 0 0 2px rgba(47, 111, 159, 0.12);
}
body.onsites-desk .cw-workspace .cw-reply-box.is-note {
  background: #fffdf5;
  border-color: rgba(196, 160, 60, 0.35);
}
body.onsites-desk .cw-workspace .cw-reply-tabs {
  padding: 10px 12px 0;
}
body.onsites-desk .cw-workspace .cw-reply-tab {
  height: 30px;
  border-radius: var(--cw-radius);
  color: #7b8494;
}
body.onsites-desk .cw-workspace .cw-reply-tab:hover {
  color: #3d4656;
  background: rgba(26, 35, 50, 0.04);
}
body.onsites-desk .cw-workspace .cw-reply-tab.active {
  background: rgba(61, 126, 176, 0.12);
  color: #2f6fa3;
}
body.onsites-desk .cw-workspace .cw-reply-box.is-note .cw-reply-tab.active {
  background: rgba(240, 196, 80, 0.18);
  color: #8a6a12;
}
body.onsites-desk .cw-workspace .cw-reply-editor {
  min-height: 84px;
  padding: 12px 16px 10px;
  font-size: 13px;
  color: #1a2332;
}
body.onsites-desk .cw-workspace .cw-reply-editor::placeholder {
  color: #9aa3b2;
}
body.onsites-desk .cw-workspace .cw-file-btn,
body.onsites-desk .cw-workspace .cw-emoji-btn,
body.onsites-desk .cw-workspace .cw-mention-btn {
  color: #7b8494;
}
body.onsites-desk .cw-workspace .cw-file-btn:hover,
body.onsites-desk .cw-workspace .cw-emoji-btn:hover,
body.onsites-desk .cw-workspace .cw-emoji-btn.is-open,
body.onsites-desk .cw-workspace .cw-mention-btn:hover,
body.onsites-desk .cw-workspace .cw-mention-btn.is-open {
  color: #2f6fa3;
  background: rgba(61, 126, 176, 0.1);
  border-color: rgba(61, 126, 176, 0.22);
}
body.onsites-desk .cw-workspace .cw-send-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--cw-steel);
  color: #fff;
  box-shadow: none;
  transition: background var(--cw-duration) var(--cw-ease);
}
body.onsites-desk .cw-workspace .cw-send-icon:hover {
  background: var(--cw-steel-hi);
}
body.onsites-desk .cw-canned-picker {
  background: #fff;
  border-color: rgba(26, 35, 50, 0.12);
  box-shadow: 0 18px 44px rgba(26, 35, 50, 0.16);
}
body.onsites-desk .cw-canned-picker-head {
  background: #fafbfc;
  border-bottom-color: rgba(14, 21, 32, 0.08);
}
body.onsites-desk .cw-canned-path-root,
body.onsites-desk .cw-canned-path-sep {
  color: #8a93a3;
}
body.onsites-desk .cw-canned-path-leaf {
  color: #152033;
}
body.onsites-desk .cw-canned-rail {
  background: #f7f9fc;
  border-right-color: rgba(14, 21, 32, 0.08);
}
body.onsites-desk .cw-canned-rail-label {
  color: #9aa3b2;
}
body.onsites-desk .cw-canned-folder {
  color: #3a4556;
}
body.onsites-desk .cw-canned-folder:hover {
  background: #eef2f7;
}
body.onsites-desk .cw-canned-folder.is-on {
  background: rgba(61, 126, 176, 0.14);
  color: #152033;
}
body.onsites-desk .cw-canned-folder-count {
  color: #8a93a3;
}
body.onsites-desk .cw-canned-cols {
  background: #fafbfc;
  border-bottom-color: rgba(14, 21, 32, 0.07);
  color: #9aa3b2;
}
body.onsites-desk .cw-canned-row {
  border-bottom-color: rgba(14, 21, 32, 0.045);
}
body.onsites-desk .cw-canned-row:hover,
body.onsites-desk .cw-canned-row.is-active {
  background: rgba(61, 126, 176, 0.1);
}
body.onsites-desk .cw-canned-name {
  color: #152033;
}
body.onsites-desk .cw-canned-t {
  color: #152033;
}
body.onsites-desk .cw-canned-sep {
  color: #9aa3b2;
}
body.onsites-desk .cw-canned-b {
  color: #8a93a3;
}
body.onsites-desk .cw-canned-b--solo {
  color: #152033;
}
body.onsites-desk .cw-canned-meta,
body.onsites-desk .cw-canned-ico {
  color: #8a93a3;
}
body.onsites-desk .cw-canned-ico-svg {
  color: #d4a017;
}
body.onsites-desk .cw-canned-folder--root .cw-canned-ico-svg,
body.onsites-desk .cw-canned-ico-svg--file {
  color: #5b7fa3;
}
body.onsites-desk .cw-canned-folder--private .cw-canned-ico-svg {
  color: #9a7b4f;
}
body.onsites-desk .cw-canned-picker-foot {
  border-top-color: rgba(14, 21, 32, 0.08);
  color: #8a93a3;
}
body.onsites-desk .cw-canned-picker-foot kbd {
  border-color: rgba(26, 35, 50, 0.12);
  background: #f4f6f9;
}
body.onsites-desk .cw-workspace .cw-banner {
  background: #fff7ed;
  color: #9a3412;
  border-bottom: 1px solid rgba(154, 52, 18, 0.12);
}

/* Contact rail —solid dossier strip (no blur) */
body.onsites-desk .cw-workspace > .cw-contact,
body.onsites-desk .cw-workspace > #pane-admin > .cw-contact {
  background: #eef2f7;
  padding: 14px 14px 18px;
  box-shadow: none;
  border-left: 1px solid rgba(14, 21, 32, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.onsites-desk .cw-workspace .cw-contact-hero {
  padding: 2px 0 12px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(26, 35, 50, 0.08);
}
body.onsites-desk .cw-workspace .cw-contact-id .name {
  font-size: 13px;
  letter-spacing: -0.035em;
  color: #152033;
}
body.onsites-desk .cw-workspace .cw-contact-id .email {
  margin-left: 15px;
  color: #7b8494;
}
body.onsites-desk .cw-workspace .cw-contact-meta {
  margin-left: 15px;
  color: #7b8494;
}
body.onsites-desk .cw-workspace .cw-contact-sec-label {
  color: #8a93a3;
}
body.onsites-desk .cw-workspace .cw-contact-block {
  padding: 12px 0;
  border-bottom: 1px solid rgba(26, 35, 50, 0.06);
}
body.onsites-desk .cw-workspace .cw-contact-block:last-child {
  border-bottom: 0;
}
body.onsites-desk .cw-workspace .cw-contact-block h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a93a3;
}
body.onsites-desk .cw-workspace .cw-kv {
  margin-bottom: 7px;
}
body.onsites-desk .cw-workspace .cw-kv .k {
  color: #8a93a3;
  font-size: 13px;
}
body.onsites-desk .cw-workspace .cw-kv .v {
  color: #1a2332;
  font-size: 13px;
}
body.onsites-desk .cw-workspace .cw-kv .v.muted {
  color: #7b8494;
}
body.onsites-desk .cw-workspace .cw-kv .v.link {
  color: #2f6fa3;
}
body.onsites-desk .cw-workspace .cw-kv .v.mono {
  color: #3d4656;
}
body.onsites-desk .cw-workspace .cw-live-page {
  border: 0;
  background: transparent;
}
body.onsites-desk .cw-workspace .cw-live-page:hover {
  border-color: transparent;
  background: transparent;
}
body.onsites-desk .cw-workspace .cw-live-page:hover .cw-live-page-v {
  color: #2f6f9f;
}
body.onsites-desk .cw-workspace .cw-live-page-v { color: #152033; }
body.onsites-desk .cw-workspace .cw-live-dwell { color: #8a93a3; }
body.onsites-desk .cw-workspace .cw-live-stat { color: #8a93a3; }
body.onsites-desk .cw-workspace .cw-trail-title { color: #3d4656; }
body.onsites-desk .cw-workspace .cw-trail-item.is-current .cw-trail-title { color: #152033; }
body.onsites-desk .cw-workspace .cw-trail-meta { color: #8a93a3; }
body.onsites-desk .cw-workspace .cw-contact-tech summary { color: #152033; }
body.onsites-desk .cw-workspace .cw-contact-acc > summary { color: #152033; }
body.onsites-desk .cw-workspace .cw-contact-acc-ico { color: #1a2332; }
body.onsites-desk .cw-workspace .cw-contact-pinned {
  border-bottom-color: rgba(26, 35, 50, 0.08);
}
body.onsites-desk .cw-workspace .cw-contact-acc {
  border-bottom-color: rgba(26, 35, 50, 0.08);
}
body.onsites-desk .cw-workspace .cw-contact-pin-k { color: #8a93a3; }
body.onsites-desk .cw-workspace .cw-contact-pin-ico { color: #6b7585; }
body.onsites-desk .cw-workspace .cw-contact-pin-v { color: #1a2332; }
body.onsites-desk .cw-workspace .cw-contact-pin-v.is-csat { color: #c98a12; }
body.onsites-desk .cw-workspace .cw-side-tab { color: #8a93a3; }
body.onsites-desk .cw-workspace .cw-side-tab.is-active { color: #152033; }
body.onsites-desk .cw-workspace .cw-side-tab.is-active::after { background: #2f6f9f; }
body.onsites-desk .cw-workspace .cw-contact-preview { color: #2f6f9f; }
body.onsites-desk .cw-workspace .cw-contact-preview:hover { color: #1d4f75; }
body.onsites-desk .cw-workspace .cw-chip {
  background: rgba(61, 126, 176, 0.1);
  color: #2f6fa3;
}
body.onsites-desk .cw-workspace .cw-chip.muted {
  background: rgba(26, 35, 50, 0.05);
  color: #6b7585;
  border-color: rgba(26, 35, 50, 0.1);
}
body.onsites-desk .cw-workspace .cw-device-chip {
  border-radius: var(--cw-radius-sm);
  border-color: rgba(26, 35, 50, 0.1);
  background: #fff;
  color: #4b5568;
  height: 22px;
  padding: 0 7px;
  font-size: 13px;
}
body.onsites-desk .cw-workspace .cw-seg {
  background: rgba(26, 35, 50, 0.08);
  border-color: rgba(26, 35, 50, 0.1);
  border-radius: var(--cw-radius);
  overflow: hidden;
}
body.onsites-desk .cw-workspace .cw-seg button {
  background: #fff;
  color: #6b7585;
}
body.onsites-desk .cw-workspace .cw-seg button.on {
  background: rgba(61, 126, 176, 0.12);
  color: #2f6fa3;
}

/* Empty states */
body.onsites-desk .cw-empty-visual {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 6px;
  border-radius: 16px;
  color: #2f6fa3;
  background: linear-gradient(160deg, rgba(79, 143, 196, 0.16), rgba(79, 143, 196, 0.04));
  border: 1px solid rgba(61, 126, 176, 0.22);
  box-shadow: 0 8px 20px rgba(61, 126, 176, 0.1);
}
body.onsites-desk .cw-empty-visual--sm {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
body.onsites-desk .cw-empty#emptyThread,
body.onsites-desk .cw-empty#contactEmpty {
  gap: 8px;
  padding: 56px 32px;
  color: #7b8494;
}
body.onsites-desk .cw-empty#emptyThread strong,
body.onsites-desk .cw-empty#contactEmpty strong {
  font-family: var(--cw-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #152033;
}
body.onsites-desk .cw-empty#emptyThread span,
body.onsites-desk .cw-empty#contactEmpty span {
  max-width: 260px;
  font-size: 13px;
  line-height: 1.5;
  color: #7b8494;
}

body.onsites-desk .cw-typing--desk {
  margin: 0 18px 10px;
  border-radius: var(--cw-radius);
  border-color: rgba(26, 35, 50, 0.1);
  background: #fff;
  color: #4b5568;
  box-shadow: 0 2px 8px rgba(26, 35, 50, 0.05);
}

body.onsites-desk .cw-workspace .cw-more-menu,
body.onsites-desk .cw-workspace .cw-transfer-menu {
  background: #fff;
  border-color: rgba(26, 35, 50, 0.12);
  box-shadow: 0 14px 32px rgba(26, 35, 50, 0.14);
}
body.onsites-desk .cw-workspace .cw-more-menu button,
body.onsites-desk .cw-workspace .cw-transfer-menu button {
  color: #3d4656;
}
body.onsites-desk .cw-workspace .cw-more-menu button:hover,
body.onsites-desk .cw-workspace .cw-transfer-menu button:hover {
  background: rgba(61, 126, 176, 0.08);
  color: #1a2332;
}

body.onsites-desk .cw-workspace .cw-empty-list {
  color: #7b8494;
}
body.onsites-desk .cw-workspace .cw-empty-list .cw-empty-cta {
  background: rgba(61, 126, 176, 0.1);
  border-color: rgba(61, 126, 176, 0.3);
  color: #2f6fa3;
}

/* ——Shared light canvas: Settings / Dashboard / Visitors / Offline / Team Chat / Login ——*/
body.onsites-desk .cw-settings,
body.onsites-desk .cw-dash,
body.onsites-desk .cw-visitors,
body.onsites-desk .cw-offline-desk,
body.onsites-desk .cw-chat-workspace {
  --cw-text: #1a2332;
  --cw-text-2: #4b5568;
  --cw-text-3: #7b8494;
  --cw-hairline: rgba(26, 35, 50, 0.1);
  --cw-border: rgba(26, 35, 50, 0.1);
  --cw-border-strong: rgba(26, 35, 50, 0.18);
  --cw-elev-1: #ffffff;
  --cw-elev-2: #f3f5f8;
  --cw-surface-1: #ffffff;
  --cw-surface-2: #f3f5f8;
  --cw-inset: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --admin-accent: #3d7eb0;
  --admin-glow: #2f6fa3;
  --admin-live: #0f9f7a;
  --cw-danger: #d9485f;
  color: var(--cw-text);
  color-scheme: light;
}

body.onsites-desk .cw-settings a,
body.onsites-desk .cw-dash a,
body.onsites-desk .cw-visitors a,
body.onsites-desk .cw-offline-desk a,
body.onsites-desk .cw-chat-workspace a {
  color: #2f6fa3;
}
body.onsites-desk .cw-settings a:hover,
body.onsites-desk .cw-dash a:hover,
body.onsites-desk .cw-visitors a:hover,
body.onsites-desk .cw-offline-desk a:hover,
body.onsites-desk .cw-chat-workspace a:hover {
  color: #1f5a8a;
}

body.onsites-desk .cw-settings .cw-btn,
body.onsites-desk .cw-dash .cw-btn,
body.onsites-desk .cw-visitors .cw-btn,
body.onsites-desk .cw-offline-desk .cw-btn,
body.onsites-desk .cw-chat-workspace .cw-btn {
  background: #3d7eb0;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
body.onsites-desk .cw-settings .cw-btn:hover,
body.onsites-desk .cw-dash .cw-btn:hover,
body.onsites-desk .cw-visitors .cw-btn:hover,
body.onsites-desk .cw-offline-desk .cw-btn:hover,
body.onsites-desk .cw-chat-workspace .cw-btn:hover {
  background: #2f6fa3;
}
body.onsites-desk .cw-settings .cw-btn-ghost,
body.onsites-desk .cw-dash .cw-btn-ghost,
body.onsites-desk .cw-visitors .cw-btn-ghost,
body.onsites-desk .cw-offline-desk .cw-btn-ghost,
body.onsites-desk .cw-chat-workspace .cw-btn-ghost {
  background: #fff;
  color: #4b5568;
  border-color: rgba(26, 35, 50, 0.12);
  box-shadow: none;
}
body.onsites-desk .cw-settings .cw-btn-ghost:hover,
body.onsites-desk .cw-dash .cw-btn-ghost:hover,
body.onsites-desk .cw-visitors .cw-btn-ghost:hover,
body.onsites-desk .cw-offline-desk .cw-btn-ghost:hover,
body.onsites-desk .cw-chat-workspace .cw-btn-ghost:hover {
  background: #f4f6f9;
  color: #1a2332;
  border-color: rgba(26, 35, 50, 0.18);
}
body.onsites-desk .cw-settings .cw-btn-danger,
body.onsites-desk .cw-dash .cw-btn-danger,
body.onsites-desk .cw-visitors .cw-btn-danger,
body.onsites-desk .cw-offline-desk .cw-btn-danger,
body.onsites-desk .cw-chat-workspace .cw-btn-danger {
  background: #fff;
  color: #b42318;
  border: 1px solid rgba(180, 35, 24, 0.28);
  box-shadow: none;
}
body.onsites-desk .cw-settings .cw-btn-danger:hover,
body.onsites-desk .cw-dash .cw-btn-danger:hover,
body.onsites-desk .cw-visitors .cw-btn-danger:hover,
body.onsites-desk .cw-offline-desk .cw-btn-danger:hover,
body.onsites-desk .cw-chat-workspace .cw-btn-danger:hover {
  background: #fff5f4;
  color: #912018;
  border-color: rgba(180, 35, 24, 0.4);
}
body.onsites-desk .cw-settings .cw-btn-danger:disabled,
body.onsites-desk .cw-settings .cw-btn-ghost:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
body.onsites-desk .cw-inbox-add-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(14, 21, 32, 0.08);
}
body.onsites-desk .cw-settings .cw-input,
body.onsites-desk .cw-settings .cw-textarea,
body.onsites-desk .cw-settings select.cw-input,
body.onsites-desk .cw-dash .cw-input,
body.onsites-desk .cw-visitors .cw-input,
body.onsites-desk .cw-chat-workspace .cw-input,
body.onsites-desk .cw-chat-workspace .cw-textarea {
  background: #fff;
  border-color: rgba(26, 35, 50, 0.12);
  color: #1a2332;
}
body.onsites-desk .cw-settings .cw-input:focus,
body.onsites-desk .cw-settings .cw-textarea:focus,
body.onsites-desk .cw-settings select.cw-input:focus,
body.onsites-desk .cw-chat-workspace .cw-input:focus,
body.onsites-desk .cw-chat-workspace .cw-textarea:focus {
  border-color: rgba(61, 126, 176, 0.45);
  box-shadow: 0 0 0 3px rgba(61, 126, 176, 0.12);
}
body.onsites-desk .cw-settings select.cw-input {
  background-color: #fff;
  background-image: linear-gradient(45deg, transparent 50%, #7b8494 50%),
    linear-gradient(135deg, #7b8494 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* Settings —full-bleed strips over paper */
body.onsites-desk .cw-settings {
  background: #f4f6f9;
}
body.onsites-desk .cw-settings-head {
  background: var(--cw-glass-paper);
  border-bottom: 1px solid rgba(14, 21, 32, 0.08);
  box-shadow: inset 0 1px 0 var(--cw-glass-edge);
  backdrop-filter: blur(var(--cw-glass-blur)) saturate(1.1);
  -webkit-backdrop-filter: blur(var(--cw-glass-blur)) saturate(1.1);
}
body.onsites-desk .cw-settings-head h1 {
  color: #152033;
}
body.onsites-desk .cw-settings-head .muted,
body.onsites-desk .cw-settings .muted,
body.onsites-desk .cw-settings .cw-admin-hint,
body.onsites-desk .cw-settings .card-block-desc {
  color: #7b8494;
}
body.onsites-desk .cw-list-eyebrow {
  color: #8a93a3;
}
body.onsites-desk .cw-settings-nav {
  background: #f7f8fb;
  border-right: 1px solid rgba(26, 35, 50, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
body.onsites-desk .cw-settings-nav-item {
  color: #4b5568;
  border-radius: 0;
}
body.onsites-desk .cw-settings-nav-item:hover {
  background: rgba(26, 35, 50, 0.04);
  color: #1a2332;
}
body.onsites-desk .cw-settings-nav-item.active {
  background: rgba(61, 126, 176, 0.1);
  color: #152033;
  box-shadow: inset 2px 0 0 #3d7eb0;
}
body.onsites-desk .cw-settings-nav-label {
  color: inherit;
}
body.onsites-desk .cw-settings-nav-hint,
body.onsites-desk .cw-settings-nav-item.active .cw-settings-nav-hint {
  color: #8a93a3;
}
body.onsites-desk .cw-settings .card-block {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid rgba(14, 21, 32, 0.08);
}
body.onsites-desk .cw-settings .card-block-head h3,
body.onsites-desk .cw-settings .card-block > h3 {
  color: #152033;
}
body.onsites-desk .cw-settings-body .panel#panel-canned.on {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: calc(100dvh - 72px);
  max-height: calc(100dvh - 72px);
  padding: 0;
  box-sizing: border-box;
}
body.onsites-desk .cw-settings .cw-fs {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  background: #fff;
  overflow: hidden;
}
body.onsites-desk .cw-settings .cw-fs-toolbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 0 var(--cw-page-inset-x);
  background: #fff;
  border-bottom: 1px solid rgba(14, 21, 32, 0.18);
}
body.onsites-desk .cw-settings .cw-fs-path {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  font-weight: 650;
  color: #152033;
  letter-spacing: -0.01em;
}
body.onsites-desk .cw-settings .cw-fs-path-root {
  color: #6b7585;
  font-weight: 600;
}
body.onsites-desk .cw-settings .cw-fs-path-sep {
  color: #9aa3b2;
  font-weight: 500;
}
body.onsites-desk .cw-settings .cw-fs-path-leaf {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.onsites-desk .cw-settings .cw-fs-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
body.onsites-desk .cw-settings .cw-fs-search-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 8px;
  border-radius: 0;
  background: #fff;
  border: 1px solid rgba(26, 35, 50, 0.2);
  color: #8a93a3;
}
body.onsites-desk .cw-settings .cw-fs-search-wrap:focus-within {
  border-color: rgba(61, 126, 176, 0.55);
  box-shadow: none;
}
body.onsites-desk .cw-settings .cw-fs-search-wrap .cw-input {
  width: 128px;
  height: 26px;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
}
body.onsites-desk .cw-settings .cw-fs-search-wrap .cw-input:focus {
  outline: 0;
  box-shadow: none;
}
body.onsites-desk .cw-settings .cw-fs-tool-btn {
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(26, 35, 50, 0.2);
  border-radius: 0;
  background: #fff;
  color: #3d4656;
  font: 650 13px/1 var(--cw-font);
  cursor: pointer;
}
body.onsites-desk .cw-settings .cw-fs-tool-btn:hover {
  background: #f4f6f9;
}
body.onsites-desk .cw-settings .cw-fs-tool-btn--primary {
  border-color: transparent;
  background: var(--cw-steel);
  color: #fff;
}
body.onsites-desk .cw-settings .cw-fs-tool-btn--primary:hover {
  background: var(--cw-steel-hi);
}
body.onsites-desk .cw-settings .cw-fs-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
}
body.onsites-desk .cw-settings .cw-fs-rail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #f6f7f9;
  border-right: 1px solid rgba(14, 21, 32, 0.18);
}
body.onsites-desk .cw-settings .cw-fs-rail-label {
  padding: 10px 12px 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9aa3b2;
}
body.onsites-desk .cw-settings .cw-fs-rail-label:not(:first-child) {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(14, 21, 32, 0.18);
}
body.onsites-desk .cw-settings .cw-fs-folder--private .cw-fs-ico {
  color: #6b8fad;
}
body.onsites-desk .cw-settings .cw-fs-folders {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 2px 6px 10px;
  overflow: auto;
  min-height: 0;
}
body.onsites-desk .cw-settings .cw-fs-folder {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 28px 18px;
  align-items: center;
  gap: 7px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 5px 8px;
  border-radius: 0;
  cursor: pointer;
  color: #3d4656;
  font: 600 13px/1.2 var(--cw-font);
}
body.onsites-desk .cw-settings .cw-fs-folder .cw-fs-ico {
  color: #d4a017;
}
body.onsites-desk .cw-settings .cw-fs-folder--root .cw-fs-ico {
  color: #6b8fad;
}
body.onsites-desk .cw-settings .cw-fs-folder:hover {
  background: rgba(26, 35, 50, 0.05);
}
body.onsites-desk .cw-settings .cw-fs-folder.is-on {
  background: #fff;
  color: #152033;
  box-shadow: inset 2px 0 0 var(--cw-steel, #3d7eb0);
}
body.onsites-desk .cw-settings .cw-fs-folder-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.onsites-desk .cw-settings .cw-fs-folder-count {
  grid-column: 3;
  justify-self: end;
  min-width: 1.5em;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: #9aa3b2;
  font-variant-numeric: tabular-nums;
}
body.onsites-desk .cw-settings .cw-fs-folder-del {
  grid-column: 4;
  justify-self: center;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #9aa3b2;
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0;
  pointer-events: none;
}
body.onsites-desk .cw-settings .cw-fs-folder-del--spacer {
  opacity: 0 !important;
  pointer-events: none !important;
  cursor: default;
}
body.onsites-desk .cw-settings .cw-fs-folder--editable:hover .cw-fs-folder-del:not(.cw-fs-folder-del--spacer),
body.onsites-desk .cw-settings .cw-fs-folder--editable.is-on .cw-fs-folder-del:not(.cw-fs-folder-del--spacer),
body.onsites-desk .cw-settings .cw-fs-folder-del:not(.cw-fs-folder-del--spacer):focus {
  opacity: 1;
  pointer-events: auto;
}
body.onsites-desk .cw-settings .cw-fs-folder-del:not(.cw-fs-folder-del--spacer):hover,
body.onsites-desk .cw-settings .cw-fs-folder-del:not(.cw-fs-folder-del--spacer):focus {
  color: #b42318;
  background: rgba(180, 35, 24, 0.08);
  outline: none;
}
body.onsites-desk .cw-settings .cw-fs-folder.is-renaming {
  cursor: default;
  background: #fff;
  box-shadow: inset 2px 0 0 var(--cw-steel, #3d7eb0);
}
body.onsites-desk .cw-settings .cw-fs-folder-rename-input {
  grid-column: 2;
  width: 100%;
  min-width: 0;
  height: 24px !important;
  min-height: 0 !important;
  margin: 0;
  padding: 0 6px !important;
  border: 1px solid rgba(26, 35, 50, 0.22) !important;
  border-radius: 0 !important;
  background: #fff !important;
  font: 600 13px/1.2 var(--cw-font) !important;
  color: #152033 !important;
  box-shadow: none !important;
}
body.onsites-desk .cw-settings .cw-fs-folder-rename-input:focus {
  outline: none;
  border-color: var(--cw-steel, #3d7eb0) !important;
}
body.onsites-desk .cw-settings .cw-fs-folder--new {
  color: #6b7585;
  font-weight: 600;
}
body.onsites-desk .cw-settings .cw-fs-folder--new .cw-fs-folder-new-plus {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: #8a93a3;
}
body.onsites-desk .cw-settings .cw-fs-folder--new:hover {
  color: #152033;
  background: rgba(26, 35, 50, 0.05);
}
body.onsites-desk .cw-settings .cw-fs-folder--new:hover .cw-fs-folder-new-plus {
  color: #3d7eb0;
}
body.onsites-desk .cw-settings .cw-fs-folder--new.is-editing {
  cursor: default;
  background: #fff;
  box-shadow: inset 2px 0 0 var(--cw-steel, #3d7eb0);
}
body.onsites-desk .cw-settings .cw-fs-folder-new-input {
  grid-column: 2 / -1;
  width: 100%;
  min-width: 0;
  height: 24px !important;
  min-height: 0 !important;
  margin: 0;
  padding: 0 6px !important;
  border: 1px solid rgba(26, 35, 50, 0.22) !important;
  border-radius: 0 !important;
  background: #fff !important;
  font: 600 13px/1.2 var(--cw-font) !important;
  color: #152033 !important;
  box-shadow: none !important;
}
body.onsites-desk .cw-settings .cw-fs-folder-new-input:focus {
  outline: none;
  border-color: var(--cw-steel, #3d7eb0) !important;
}
body.onsites-desk .cw-settings .cw-fs-files {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-right: 0;
  background: #fff;
}
body.onsites-desk .cw-settings .cw-fs-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  gap: 8px;
  align-items: center;
  padding: 6px var(--cw-page-inset-x);
  border-bottom: 1px solid rgba(14, 21, 32, 0.16);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #6b7585;
  text-transform: uppercase;
}
body.onsites-desk .cw-settings .cw-fs-col-kind:empty {
  display: none;
}
body.onsites-desk .cw-settings .cw-fs-file-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0;
}
body.onsites-desk .cw-settings .cw-fs-list-empty {
  padding: 40px 16px;
  text-align: center;
  color: #8a93a3;
  font-size: 13px;
  line-height: 1.5;
}
body.onsites-desk .cw-settings .cw-fs-list-empty kbd {
  display: inline-block;
  padding: 0 5px;
  border-radius: 0;
  background: #eef2f7;
  color: #1f5a8a;
  font: 650 13px/1.45 var(--cw-font);
}
body.onsites-desk .cw-settings .cw-fs-group {
  border-bottom: 1px solid rgba(14, 21, 32, 0.16);
}
body.onsites-desk .cw-settings .cw-fs-group:last-child {
  border-bottom: 0;
}
body.onsites-desk .cw-settings .cw-fs-group-head {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 8px var(--cw-page-inset-x);
  border: 0;
  border-bottom: 1px solid rgba(14, 21, 32, 0.22);
  border-radius: 0;
  background: #f3f5f8;
  font: inherit;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3d4656;
}
body.onsites-desk .cw-settings .cw-fs-group-head:hover {
  background: #eceff3;
}
body.onsites-desk .cw-settings .cw-fs-group-chev {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 7px;
  border-color: transparent transparent transparent #5b6574;
  transform: rotate(90deg);
  transition: transform 0.12s ease;
  justify-self: center;
}
body.onsites-desk .cw-settings .cw-fs-group.is-collapsed .cw-fs-group-chev {
  transform: rotate(0deg);
}
body.onsites-desk .cw-settings .cw-fs-group-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
body.onsites-desk .cw-settings .cw-fs-group-count {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  color: #8a93a3;
  letter-spacing: 0;
  text-transform: none;
}
body.onsites-desk .cw-settings .cw-fs-group.is-collapsed .cw-fs-group-head {
  border-bottom-color: rgba(14, 21, 32, 0.16);
}
body.onsites-desk .cw-settings .cw-fs-group-body {
  display: block;
}
body.onsites-desk .cw-settings .cw-fs-row {
  border-radius: 0;
  margin-bottom: 0;
  overflow: visible;
  border-bottom: 1px solid rgba(14, 21, 32, 0.12);
}
body.onsites-desk .cw-settings .cw-fs-row:last-child {
  border-bottom: 0;
}
body.onsites-desk .cw-settings .cw-fs-row.is-open {
  background: #f5f8fb;
  box-shadow: inset 2px 0 0 var(--cw-steel, #3d7eb0);
  border-bottom: 1px solid rgba(14, 21, 32, 0.18);
}
body.onsites-desk .cw-settings .cw-fs-row.is-draft {
  box-shadow: inset 2px 0 0 var(--cw-steel, #3d7eb0);
  border: 0;
  border-bottom: 1px solid rgba(14, 21, 32, 0.18);
  background: #f5f8fb;
}
body.onsites-desk .cw-settings .cw-fs-file {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  align-items: start;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px var(--cw-page-inset-x);
  border-radius: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
body.onsites-desk .cw-settings .cw-fs-row:not(.is-open) .cw-fs-file:hover {
  background: #f0f3f7;
}
body.onsites-desk .cw-settings .cw-fs-row.is-open .cw-fs-file {
  border-radius: 0;
  background: transparent;
}
body.onsites-desk .cw-settings .cw-fs-file .cw-fs-ico--file {
  color: #5b7fa3;
  margin-top: 1px;
}
body.onsites-desk .cw-settings .cw-fs-file-main {
  display: flex;
  align-items: center;
  min-width: 0;
}
body.onsites-desk .cw-settings .cw-fs-file-name {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 0;
  font-size: 13px;
  color: #152033;
  overflow: hidden;
  white-space: nowrap;
}
body.onsites-desk .cw-settings .cw-fs-file-name .cw-canned-t {
  flex: 0 1 auto;
  min-width: 0;
  font-weight: 650;
  color: #152033;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.onsites-desk .cw-settings .cw-fs-file-name .cw-canned-sep {
  flex: 0 0 auto;
  margin: 0 0.45em;
  font-weight: 500;
  color: #9aa3b2;
}
body.onsites-desk .cw-settings .cw-fs-file-name .cw-canned-b {
  flex: 1 1 0;
  min-width: 0;
  font-weight: 450;
  color: #8a93a3;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.onsites-desk .cw-settings .cw-fs-file-name .cw-canned-b--solo {
  flex: 1 1 auto;
  font-weight: 600;
  color: #152033;
}
body.onsites-desk .cw-settings .cw-fs-file-kind {
  font-size: 13px;
  font-weight: 600;
  color: #5b6574;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
  margin-top: 1px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  justify-self: end;
  max-width: 100%;
}
body.onsites-desk .cw-settings .cw-fs-file-kind:empty {
  display: none;
}
body.onsites-desk .cw-settings .cw-fs-expand {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 2px var(--cw-page-inset-x) 12px;
  border-top: 1px solid rgba(26, 35, 50, 0.12);
}
body.onsites-desk .cw-settings .cw-fs-expand-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
body.onsites-desk .cw-settings .cw-fs-expand-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
body.onsites-desk .cw-settings .cw-fs-scope {
  flex-shrink: 0;
  height: 24px;
  padding: 0 8px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #2f5f86;
  background: transparent;
  border: 1px solid rgba(61, 126, 176, 0.35);
}
body.onsites-desk .cw-settings .cw-fs-scope[data-disk="private"] {
  color: #5b6574;
  border-color: rgba(26, 35, 50, 0.2);
  background: transparent;
}
body.onsites-desk .cw-settings .cw-fs-folder-pick {
  position: relative;
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(220px, 52%);
}
body.onsites-desk .cw-settings .cw-fs-folder-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  height: 26px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid rgba(26, 35, 50, 0.2);
  border-radius: 0;
  background: #fff;
  color: #3a4558;
  font: 550 13px/1 var(--cw-font);
  cursor: pointer;
}
body.onsites-desk .cw-settings .cw-fs-folder-btn:hover:not(:disabled),
body.onsites-desk .cw-settings .cw-fs-folder-btn.is-open {
  border-color: rgba(61, 126, 176, 0.55);
  color: #152033;
}
body.onsites-desk .cw-settings .cw-fs-folder-btn:disabled {
  opacity: 0.72;
  cursor: default;
}
body.onsites-desk .cw-settings .cw-fs-folder-btn-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.onsites-desk .cw-settings .cw-fs-folder-btn-caret {
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 4px 0 4px;
  border-color: currentColor transparent transparent transparent;
  opacity: 0.65;
}
body.onsites-desk .cw-settings .cw-fs-folder-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  left: 0;
  min-width: max(100%, 160px);
  max-width: 260px;
  max-height: 220px;
  overflow: auto;
  padding: 4px 0;
  border: 1px solid rgba(26, 35, 50, 0.14);
  background: #fff;
  box-shadow: 0 8px 24px rgba(21, 32, 51, 0.12);
}
body.onsites-desk .cw-settings .cw-fs-folder-opt {
  display: block;
  width: 100%;
  margin: 0;
  padding: 7px 12px;
  border: 0;
  background: transparent;
  color: #1a2332;
  font: 500 13px/1.3 var(--cw-font);
  text-align: left;
  cursor: pointer;
}
body.onsites-desk .cw-settings .cw-fs-folder-opt:hover {
  background: rgba(61, 126, 176, 0.08);
}
body.onsites-desk .cw-settings .cw-fs-folder-opt.is-current {
  font-weight: 700;
  color: #2f5f86;
}
body.onsites-desk .cw-settings .cw-fs-folder-opt--new {
  margin-top: 2px;
  border-top: 1px solid rgba(26, 35, 50, 0.08);
  color: #5b6574;
}
body.onsites-desk .cw-settings .cw-fs-cat {
  width: min(180px, 46%);
  height: 26px !important;
  padding: 0 8px !important;
  font-size: 13px !important;
  font-weight: 550 !important;
  border-radius: 0 !important;
  border-color: rgba(26, 35, 50, 0.2) !important;
  background: #fff !important;
  color: #3a4558 !important;
}
body.onsites-desk .cw-settings .cw-fs-cat:focus {
  border-color: rgba(61, 126, 176, 0.55) !important;
  box-shadow: none;
}
body.onsites-desk .cw-settings .cw-fs-expand-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
body.onsites-desk .cw-settings .cw-fs-expand-actions .cw-btn {
  height: 26px;
  padding: 0 10px;
  font-size: 13px;
  border-radius: 0;
}
body.onsites-desk .cw-settings .cw-fs-close {
  width: 26px;
  height: 26px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #6b7585;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.onsites-desk .cw-settings .cw-fs-collapse-ico {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 5px 7px 5px;
  border-color: transparent transparent currentColor transparent;
}
body.onsites-desk .cw-settings .cw-fs-close:hover {
  color: #152033;
  background: rgba(26, 35, 50, 0.06);
}
body.onsites-desk .cw-settings .cw-fs-title {
  width: 100%;
  height: 30px !important;
  min-height: 0;
  margin: 0 0 4px;
  padding: 0 8px !important;
  border: 1px solid rgba(26, 35, 50, 0.2) !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  font-family: var(--cw-font);
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0;
  line-height: 1.3;
  color: #152033 !important;
}
body.onsites-desk .cw-settings .cw-fs-title::placeholder {
  color: #b0b8c4;
  font-weight: 500;
}
body.onsites-desk .cw-settings .cw-fs-title:focus {
  outline: none;
  border-color: rgba(61, 126, 176, 0.55) !important;
  box-shadow: none !important;
}
body.onsites-desk .cw-settings .cw-fs-content {
  width: 100%;
  min-height: 96px;
  height: auto !important;
  margin: 0;
  padding: 8px 0 2px !important;
  resize: vertical;
  line-height: 1.5;
  font-family: var(--cw-font);
  border: 0 !important;
  border-radius: 0 !important;
  border-top: 1px solid rgba(26, 35, 50, 0.14) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px;
  font-weight: 450;
  color: #1f2937;
}
body.onsites-desk .cw-settings .cw-fs-content:focus {
  outline: none;
  box-shadow: none !important;
}
body.onsites-desk .cw-settings .cw-fs-content::placeholder {
  color: #a8b0bd;
}
body.onsites-desk .cw-settings .cw-fs-title:disabled,
body.onsites-desk .cw-settings .cw-fs-content:disabled,
body.onsites-desk .cw-settings .cw-fs-cat:disabled {
  opacity: 0.72;
  cursor: default;
}
body.onsites-desk .cw-settings .cw-fs-tip {
  margin: 0;
  padding-top: 4px;
  font-size: 13px;
  line-height: 1.4;
  color: #8a93a3;
}
body.onsites-desk .cw-settings .cw-fs-tip kbd {
  display: inline-block;
  padding: 0 4px;
  border-radius: 0;
  background: #eef2f7;
  color: #2f6fa3;
  font: 650 13px/1.45 var(--cw-font);
}
body.onsites-desk .cw-settings .cw-fs-danger {
  color: #b42318 !important;
}
body.onsites-desk .cw-settings .cw-fs-danger:hover {
  background: rgba(180, 35, 24, 0.08) !important;
}
@media (max-width: 1100px) {
  body.onsites-desk .cw-settings .cw-fs-body {
    grid-template-columns: 160px minmax(0, 1fr);
  }
  body.onsites-desk .cw-settings .cw-fs-files {
    border-right: 0;
  }
}
@media (max-width: 800px) {
  body.onsites-desk .cw-settings-body .panel#panel-canned.on {
    height: auto;
    max-height: none;
    padding: 10px 12px 14px;
  }
  body.onsites-desk .cw-settings .cw-fs-toolbar {
    flex-wrap: wrap;
    padding: 8px 10px;
    min-height: 0;
  }
  body.onsites-desk .cw-settings .cw-fs-body {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  body.onsites-desk .cw-settings .cw-fs-rail {
    border-right: 0;
    border-bottom: 1px solid rgba(14, 21, 32, 0.08);
    max-height: 150px;
  }
  body.onsites-desk .cw-settings .cw-fs-files {
    border-right: 0;
    min-height: 200px;
  }
  body.onsites-desk .cw-settings .cw-fs-search-wrap .cw-input {
    width: 96px;
  }
  body.onsites-desk .cw-settings .cw-fs-expand-top {
    flex-wrap: wrap;
  }
  body.onsites-desk .cw-settings .cw-fs-expand {
    padding-left: var(--cw-page-inset-x);
  }
  body.onsites-desk .cw-settings .cw-fs-cat {
    width: min(140px, 48%);
  }
  body.onsites-desk .cw-settings .cw-fs-title {
    font-size: 13px !important;
  }
}
body.onsites-desk .cw-settings .cw-members-invite {
  background: #f7f8fb;
  border: 1px solid rgba(26, 35, 50, 0.1);
  border-radius: 0;
  box-shadow: none;
  margin-left: 0;
  margin-right: 0;
}
body.onsites-desk .cw-settings .cw-table-wrap {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  max-width: none;
}
body.onsites-desk .cw-settings .cw-members-invite-label {
  color: #8a93a3;
}

/* Widget appearance —designer */
body.onsites-desk .cw-widget-appear {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 28px 36px;
  align-items: start;
  max-width: 1120px;
}
body.onsites-desk .cw-widget-appear-form {
  order: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
body.onsites-desk .cw-widget-preview-rail {
  order: 2;
  position: sticky;
  top: 12px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
body.onsites-desk .cw-widget-preview-stage {
  margin: 0;
  padding: 12px;
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(61, 126, 176, 0.1), transparent 55%),
    linear-gradient(165deg, #eef2f7 0%, #e6ebf2 100%);
  border: 1px solid rgba(18, 18, 20, 0.06);
}
body.onsites-desk .cw-widget-preview {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 0;
}
body.onsites-desk .cw-widget-preview-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(18, 18, 20, 0.08);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: #f4f6f9;
  flex-shrink: 0;
  overflow: hidden;
}
body.onsites-desk .cw-widget-preview-tab {
  border: 0;
  border-radius: 0;
  padding: 10px 4px;
  background: transparent;
  color: #8a93a3;
  font: 650 13px/1.2 var(--cw-font);
  letter-spacing: 0.01em;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
body.onsites-desk .cw-widget-preview-tab:hover {
  color: #1a2332;
}
body.onsites-desk .cw-widget-preview-tab.is-on {
  color: #152033;
  background: #fff;
  border-bottom-color: #3d7eb0;
  box-shadow: none;
}
body.onsites-desk .cw-widget-preview-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 470px;
  background: #fff;
  border-radius: 0 0 14px 14px;
  border: 1px solid rgba(18, 18, 20, 0.1);
  border-top: 0;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}
body.onsites-desk .cw-widget-preview-panel[hidden] {
  display: none !important;
}
body.onsites-desk .cw-widget-preview-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(18, 18, 20, 0.06);
  flex-shrink: 0;
}
body.onsites-desk .cw-widget-preview-mark {
  width: 30px;
  height: 30px;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 8px;
  background: #121214;
  color: #f4f4f5;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  cursor: default;
  pointer-events: none;
  overflow: hidden;
  box-sizing: border-box;
}
body.onsites-desk .cw-widget-preview-mark svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: none;
}
body.onsites-desk .cw-widget-preview-mark img,
body.onsites-desk .cw-widget-logo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.onsites-desk .cw-widget-preview-mark.has-logo,
body.onsites-desk .cw-widget-logo-thumb.has-logo {
  background: #fff;
  padding: 5px;
  box-sizing: border-box;
}
body.onsites-desk .cw-widget-preview-mark.has-logo img,
body.onsites-desk .cw-widget-logo-thumb.has-logo img {
  object-fit: contain;
}
body.onsites-desk .cw-widget-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
body.onsites-desk .cw-widget-logo-thumb {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(18, 18, 20, 0.1);
  border-radius: 10px;
  background: #121214;
  color: #f4f4f5;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
}
body.onsites-desk .cw-widget-logo-thumb svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
}
body.onsites-desk .cw-widget-logo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
body.onsites-desk .cw-widget-logo-actions .cw-field-hint {
  flex: 1 1 100%;
  margin: 0;
}
body.onsites-desk .cw-widget-preview-titles {
  min-width: 0;
  flex: 1;
}
body.onsites-desk .cw-widget-preview-t {
  font-family: var(--cw-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #121214;
  line-height: 1.15;
}
body.onsites-desk .cw-widget-preview-s {
  margin-top: 2px;
  font-size: 13px;
  color: rgba(18, 18, 20, 0.42);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.onsites-desk .cw-widget-preview-close {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: rgba(18, 18, 20, 0.32);
  flex-shrink: 0;
}
body.onsites-desk .cw-widget-preview-prechat,
body.onsites-desk .cw-widget-preview-chat,
body.onsites-desk .cw-widget-preview-away {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body.onsites-desk .cw-widget-preview-prechat[hidden],
body.onsites-desk .cw-widget-preview-chat[hidden],
body.onsites-desk .cw-widget-preview-away[hidden] {
  display: none !important;
}
body.onsites-desk .cw-widget-preview-prechat,
body.onsites-desk .cw-widget-preview-away {
  padding: 22px 16px 14px;
  justify-content: center;
  gap: 16px;
  overflow: auto;
}
body.onsites-desk .cw-widget-preview-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
body.onsites-desk .cw-widget-preview-away-badge {
  margin: 0 0 2px;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(18, 18, 20, 0.06);
  color: rgba(18, 18, 20, 0.55);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body.onsites-desk .cw-widget-preview-hero h4 {
  margin: 0;
  font-family: var(--cw-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #121214;
  line-height: 1.15;
}
body.onsites-desk .cw-widget-preview-hero p {
  margin: 0;
  max-width: 26ch;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(18, 18, 20, 0.5);
}
body.onsites-desk .cw-widget-preview-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
body.onsites-desk .cw-widget-preview-fakeinput {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(18, 18, 20, 0.1);
  background: #fff;
  color: rgba(18, 18, 20, 0.32);
  font-size: 13px;
}
body.onsites-desk .cw-widget-preview-fakeinput.is-quiet {
  border-color: transparent;
  background: rgba(18, 18, 20, 0.035);
}
body.onsites-desk .cw-widget-preview-fakeinput.is-msg {
  min-height: 64px;
  align-items: flex-start;
  line-height: 1.35;
}
body.onsites-desk .cw-widget-preview-fakebtn {
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #6b9bc8;
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 650;
}
body.onsites-desk .cw-widget-preview-thanks {
  margin: 4px 0 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(18, 18, 20, 0.48);
}
body.onsites-desk .cw-widget-edit {
  outline: none;
  cursor: text;
  border-radius: 6px;
  transition:
    box-shadow 0.15s ease,
    background 0.15s ease;
}
body.onsites-desk .cw-widget-edit:hover {
  box-shadow: 0 0 0 2px rgba(61, 126, 176, 0.18);
}
body.onsites-desk .cw-widget-edit.is-lit,
body.onsites-desk .cw-widget-edit:focus {
  box-shadow: 0 0 0 2px rgba(61, 126, 176, 0.55);
  background: rgba(61, 126, 176, 0.08);
}
body.onsites-desk .cw-widget-preview-fakebtn.cw-widget-edit.is-lit,
body.onsites-desk .cw-widget-preview-fakebtn.cw-widget-edit:focus {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7), 0 0 0 4px rgba(61, 126, 176, 0.45);
}
body.onsites-desk .cw-widget-appear-form .cw-input.is-linked,
body.onsites-desk .cw-widget-appear-form .cw-input:focus {
  border-color: rgba(61, 126, 176, 0.55);
  box-shadow: 0 0 0 3px rgba(61, 126, 176, 0.12);
}
body.onsites-desk .cw-widget-preview-msgs {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 14px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body.onsites-desk .cw-widget-preview-row {
  display: flex;
}
body.onsites-desk .cw-widget-preview-row.is-visitor {
  justify-content: flex-end;
}
body.onsites-desk .cw-widget-preview-bubble {
  display: inline-block;
  max-width: 86%;
  padding: 9px 11px;
  border-radius: 12px 12px 12px 4px;
  background: #f2f3f5;
  color: #121214;
  font-size: 13px;
  line-height: 1.4;
}
body.onsites-desk .cw-widget-preview-bubble.is-mine {
  background: #161618;
  color: #f4f4f5;
  border-radius: 12px 12px 4px 12px;
}
body.onsites-desk .cw-widget-preview-foot {
  flex-shrink: 0;
  padding: 0 12px 10px;
}
body.onsites-desk .cw-widget-preview-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 5px 5px 5px 11px;
  border-radius: 11px;
  border: 1px solid rgba(18, 18, 20, 0.1);
  background: #fff;
}
body.onsites-desk .cw-widget-preview-composer-ph {
  flex: 1;
  color: rgba(18, 18, 20, 0.32);
  font-size: 13px;
}
body.onsites-desk .cw-widget-preview-send {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #6b9bc8;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
body.onsites-desk .cw-widget-preview-send svg {
  width: 13px;
  height: 13px;
  display: block;
}
body.onsites-desk .cw-widget-preview-powered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 10px 10px;
  font-size: 13px;
  font-weight: 520;
  letter-spacing: 0.01em;
  color: rgba(18, 18, 20, 0.34);
  flex-shrink: 0;
}
body.onsites-desk .cw-widget-preview-powered-prefix {
  font-weight: 520;
}
body.onsites-desk .cw-widget-preview-powered-brand {
  font-family: var(--cw-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(18, 18, 20, 0.48);
}
body.onsites-desk .cw-widget-preview-powered-logo {
  width: 10px;
  height: 10px;
  display: block;
}
body.onsites-desk .cw-widget-preview-dock {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
  padding: 0 2px;
}
/* Real SDK: greet 60px tall pill, send 48, dismiss 32; launcher 60 circle; 12px gap */
body.onsites-desk .cw-widget-preview-greet {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  height: 60px;
  max-width: 300px;
  padding: 0 6px 0 4px;
  border-radius: 30px;
  background: #fff;
  border: 0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12), 0 1px 4px rgba(15, 23, 42, 0.06);
  font: 400 13px/1.3 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
body.onsites-desk .cw-widget-preview-greet-x {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(18, 18, 20, 0.38);
  display: grid;
  place-items: center;
  padding: 0;
  flex-shrink: 0;
  pointer-events: none;
}
body.onsites-desk .cw-widget-preview-greet-ph {
  flex: 1;
  min-width: 0;
  padding: 0 6px;
  font-size: 13px;
  line-height: 1.3;
  color: rgba(18, 18, 20, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.onsites-desk .cw-widget-preview-greet-send {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #6b9bc8;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
body.onsites-desk .cw-widget-preview-greet-send svg {
  width: 18px;
  height: 18px;
  display: block;
}
body.onsites-desk .cw-widget-preview-launcher {
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  background: #141416;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: none;
  pointer-events: none;
  flex-shrink: 0;
  overflow: visible;
}
body.onsites-desk .cw-widget-preview-launcher-ico {
  display: grid;
  place-items: center;
  line-height: 0;
}
body.onsites-desk .cw-widget-preview-launcher-ico svg {
  width: 36px;
  height: 36px;
  display: block;
}
body.onsites-desk .cw-widget-preview-launcher-body {
  fill: none;
  stroke: #fff;
  stroke-width: 2.35;
  stroke-linejoin: round;
  stroke-linecap: round;
}
body.onsites-desk .cw-widget-preview-launcher-dot {
  fill: #fff;
  opacity: 0.92;
}
body.onsites-desk .cw-widget-section {
  padding: 0 0 18px;
  margin: 0 0 18px;
  border-bottom: 1px solid rgba(14, 21, 32, 0.08);
}
body.onsites-desk .cw-widget-section:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 4px;
}
body.onsites-desk .cw-widget-section-head {
  margin-bottom: 12px;
}
body.onsites-desk .cw-widget-section-head h4 {
  margin: 0 0 2px;
  font-family: var(--cw-display);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: #152033;
}
body.onsites-desk .cw-widget-section-head p {
  margin: 0;
  font-size: 13px;
  color: #8a93a3;
}
body.onsites-desk .cw-widget-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}
body.onsites-desk .cw-widget-fields .field {
  margin: 0;
  min-width: 0;
}
body.onsites-desk .cw-widget-fields .field--span {
  grid-column: 1 / -1;
}
body.onsites-desk .cw-widget-fields .field--color {
  max-width: 120px;
}
body.onsites-desk .cw-widget-fields .field--toggle {
  max-width: 140px;
}
body.onsites-desk .cw-widget-fields .field label:not(.cw-btn) {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a93a3;
}
body.onsites-desk .cw-widget-fields .cw-field-hint {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.35;
}
body.onsites-desk .cw-widget-logo-actions label.cw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: 13px;
  font-weight: 700;
  color: inherit;
  line-height: 1;
}
body.onsites-desk .cw-widget-appear-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 4px;
}
body.onsites-desk .cw-widget-appear-foot .muted {
  margin: 0;
  font-size: 13px;
}
body.onsites-desk .cw-widget-appear-foot code {
  font-size: 13px;
}
@media (max-width: 960px) {
  body.onsites-desk .cw-widget-appear {
    grid-template-columns: 1fr;
  }
  body.onsites-desk .cw-widget-appear-form {
    order: 2;
  }
  body.onsites-desk .cw-widget-preview-rail {
    order: 1;
    position: static;
    width: 100%;
    max-width: 380px;
  }
}
body.onsites-desk .cw-settings .cw-members-invite-divider {
  background: rgba(26, 35, 50, 0.1);
}
body.onsites-desk .cw-settings .cw-members-invite-url {
  background: #eef1f6;
  border-color: rgba(26, 35, 50, 0.1);
  color: #2f6fa3;
  box-shadow: none;
  border-radius: 0;
}
body.onsites-desk .cw-settings .cw-members-list {
  border-top-color: rgba(26, 35, 50, 0.08);
}
body.onsites-desk .cw-settings table.cw-table th {
  color: #8a93a3;
}
body.onsites-desk .cw-settings table.cw-table td {
  border-bottom-color: rgba(26, 35, 50, 0.06);
  color: #1a2332;
}
body.onsites-desk .cw-settings table.cw-table tr:hover td {
  background: rgba(61, 126, 176, 0.05);
}
body.onsites-desk .cw-settings .badge-on {
  background: rgba(15, 159, 122, 0.12);
  color: #0c7d60;
}
body.onsites-desk .cw-settings .badge-off {
  background: rgba(26, 35, 50, 0.06);
  color: #6b7585;
}
body.onsites-desk .cw-settings .embed-box {
  background: #1a2332;
  color: #d7e6f5;
  border: 1px solid rgba(26, 35, 50, 0.12);
  border-radius: 0;
}
body.onsites-desk .cw-settings .cw-profile-hint,
body.onsites-desk .cw-settings .cw-form-note,
body.onsites-desk .cw-settings .cw-form-status {
  color: #7b8494;
}
body.onsites-desk .cw-leave-mail-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 14px;
}
body.onsites-desk .cw-leave-mail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #f7f9fc;
  border: 1px solid rgba(14, 21, 32, 0.08);
  border-radius: 10px;
}
body.onsites-desk .cw-leave-mail-addr {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  word-break: break-all;
}
body.onsites-desk .cw-leave-mail-remove {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  background: none;
  font: 650 13px/1.2 var(--cw-font);
  color: #94a3b8;
  cursor: pointer;
  flex-shrink: 0;
}
body.onsites-desk .cw-leave-mail-remove:hover {
  color: #b91c1c;
}
body.onsites-desk .cw-leave-mail-add {
  align-items: flex-end;
}

/* Dashboard —glass + line (owned above) */

/* Visitors */
body.onsites-desk .cw-visitors {
  background: transparent;
}
body.onsites-desk .cw-visitors-head {
  background: var(--cw-glass-paper);
  border-bottom: 1px solid rgba(14, 21, 32, 0.08);
  box-shadow: inset 0 1px 0 var(--cw-glass-edge);
  backdrop-filter: blur(var(--cw-glass-blur)) saturate(1.1);
  -webkit-backdrop-filter: blur(var(--cw-glass-blur)) saturate(1.1);
}
body.onsites-desk .cw-offline-head {
  background: var(--cw-glass-paper);
  border-bottom: 1px solid rgba(14, 21, 32, 0.08);
  box-shadow: inset 0 1px 0 var(--cw-glass-edge);
  backdrop-filter: blur(var(--cw-glass-blur)) saturate(1.1);
  -webkit-backdrop-filter: blur(var(--cw-glass-blur)) saturate(1.1);
}
body.onsites-desk .cw-visitors-head h1 {
  color: #152033;
}
body.onsites-desk .cw-visitors-head .muted,
body.onsites-desk .cw-visitors-meta {
  color: #7b8494;
}
body.onsites-desk .cw-visitors-tools .cw-search {
  background: #fff;
  border-color: rgba(26, 35, 50, 0.1);
}
body.onsites-desk .cw-visitors-tools .cw-search:focus-within {
  border-color: rgba(61, 126, 176, 0.45);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(61, 126, 176, 0.12);
}
body.onsites-desk .cw-visitors-tools .cw-search input {
  color: #1a2332;
}
body.onsites-desk .cw-visitors-tools .cw-search input::placeholder {
  color: #9aa3b2;
}
body.onsites-desk .cw-visitors-tools .cw-search svg {
  color: #8a93a3;
  opacity: 1;
}
body.onsites-desk .cw-visitors-table-wrap,
body.onsites-desk .cw-visitors .cw-table-wrap {
  background: #f4f6f9;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: auto;
}
body.onsites-desk .cw-visitors table.cw-table th,
body.onsites-desk .cw-visitors-table th {
  color: #8a93a3;
  background: #eef1f6;
  border-bottom-color: rgba(26, 35, 50, 0.08);
  box-shadow: 0 1px 0 rgba(26, 35, 50, 0.06);
}
body.onsites-desk .cw-visitors-table thead th:first-child,
body.onsites-desk .cw-visitors-table thead th:last-child {
  border-radius: 0;
}
body.onsites-desk .cw-visitors table.cw-table td,
body.onsites-desk .cw-visitors-table td {
  border-bottom-color: rgba(26, 35, 50, 0.06);
  color: #1a2332;
  background: transparent;
}
body.onsites-desk .cw-visitors table.cw-table tr:hover td,
body.onsites-desk .cw-visitors-table tr:hover td {
  background: rgba(61, 126, 176, 0.06);
}
body.onsites-desk .cw-visitors-empty {
  color: #7b8494;
}
body.onsites-desk .cw-visitors-empty strong {
  color: #152033;
}
body.onsites-desk .cw-visitors-pager-info {
  color: #7b8494;
}
body.onsites-desk .cw-visitors-pager .cw-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

/* Team Chat —shell glass + solid message/list bodies */
body.onsites-desk .cw-chat-workspace {
  background: transparent;
}
body.onsites-desk .cw-chat-workspace > .cw-list-pane {
  background: rgba(244, 246, 249, 0.92);
  border-right: 1px solid rgba(14, 21, 32, 0.08);
  box-shadow: none;
}
body.onsites-desk .cw-chat-workspace > .cw-thread {
  background: rgba(238, 242, 247, 0.94);
}
body.onsites-desk .cw-chat-workspace .cw-list-head,
body.onsites-desk .cw-chat-workspace .cw-thread-head {
  background: var(--cw-glass-paper);
  border-bottom: 1px solid rgba(14, 21, 32, 0.08);
  box-shadow: inset 0 1px 0 var(--cw-glass-edge);
  backdrop-filter: blur(var(--cw-glass-blur)) saturate(1.1);
  -webkit-backdrop-filter: blur(var(--cw-glass-blur)) saturate(1.1);
}
body.onsites-desk .cw-chat-workspace .cw-list-head h2,
body.onsites-desk .cw-chat-workspace .cw-thread-head .title {
  color: #152033;
}
body.onsites-desk .cw-chat-workspace .cw-conv-card,
body.onsites-desk .cw-chat-workspace .cw-room-item {
  border-color: transparent;
  color: #1a2332;
}
body.onsites-desk .cw-chat-workspace .cw-conv-card:hover,
body.onsites-desk .cw-chat-workspace .cw-room-item:hover {
  background: rgba(255, 255, 255, 0.72);
}
body.onsites-desk .cw-chat-workspace .cw-conv-card.active,
body.onsites-desk .cw-chat-workspace .cw-room-item.active,
body.onsites-desk .cw-chat-workspace .cw-room-item.on {
  background: rgba(15, 159, 122, 0.06);
  border-color: rgba(15, 159, 122, 0.55);
  border-radius: 0;
  box-shadow: none;
}
body.onsites-desk .cw-chat-workspace .cw-messages {
  background:
    radial-gradient(ellipse 70% 36% at 50% 0%, rgba(79, 143, 196, 0.07), transparent 55%),
    linear-gradient(180deg, #eef1f6 0%, #e8ecf2 100%);
}
body.onsites-desk .cw-chat-workspace .cw-post--them .cw-post-bubble,
body.onsites-desk .cw-chat-workspace .cw-post:not(.cw-post--me) .cw-post-bubble {
  background: #fff;
  color: #1a2332;
  border: 1px solid rgba(26, 35, 50, 0.08);
}
body.onsites-desk .cw-chat-workspace .cw-post--me .cw-post-bubble {
  background: linear-gradient(165deg, #4f8fc4, #3d7eb0);
  color: #f7fbff;
}
body.onsites-desk .cw-chat-workspace .cw-post--ai .cw-post-bubble,
body.onsites-desk .cw-chat-workspace .cw-post--me.cw-post--ai .cw-post-bubble {
  background: #f4efe4;
  color: #2c281f;
  border: 1px solid rgba(160, 130, 70, 0.28);
}
body.onsites-desk .cw-chat-workspace .cw-post--ai .cw-ai-badge {
  color: #2a2418;
  background: #e0c98a;
}
body.onsites-desk .cw-chat-workspace .cw-post-face--ai-mark {
  background: #e8dfc8 !important;
  color: #6b5a32 !important;
  border-color: rgba(160, 130, 70, 0.4) !important;
}
body.onsites-desk .cw-chat-workspace .cw-composer-wrap,
body.onsites-desk .cw-chat-workspace .cw-reply-box,
body.onsites-desk .cw-chat-workspace .cw-composer {
  background: transparent;
}
body.onsites-desk .cw-chat-workspace .cw-reply-box,
body.onsites-desk .cw-chat-workspace .cw-composer {
  background: #fff;
  border: 1px solid rgba(26, 35, 50, 0.1);
  box-shadow: 0 8px 24px rgba(26, 35, 50, 0.08);
}
body.onsites-desk .cw-chat-workspace .cw-reply-editor,
body.onsites-desk .cw-chat-workspace .cw-textarea {
  color: #1a2332;
  background: transparent;
}
body.onsites-desk .cw-chat-workspace .cw-room-create {
  background: #f0f2f6;
  border-top: 1px solid rgba(26, 35, 50, 0.08);
}
body.onsites-desk .cw-chat-workspace .cw-empty strong {
  color: #152033;
}
body.onsites-desk .cw-chat-workspace .cw-empty span {
  color: #7b8494;
}

/* Login / Join —ink stage, brand-first (overrides earlier light card skin) */
body.onsites-desk .cw-login-page {
  color-scheme: dark;
  background:
    radial-gradient(ellipse 50% 42% at 18% 0%, rgba(47, 111, 159, 0.22), transparent 58%),
    radial-gradient(ellipse 36% 30% at 88% 12%, rgba(15, 159, 122, 0.07), transparent 52%),
    linear-gradient(165deg, #0b1016 0%, #0e1520 48%, #081018 100%);
}
body.onsites-desk .cw-login-page::before {
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
body.onsites-desk .cw-login-card {
  background: rgba(14, 21, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-left: 2px solid var(--cw-steel, #2f6f9f);
  box-shadow: none;
  color: rgba(245, 248, 252, 0.94);
}
body.onsites-desk .cw-login-card h1 {
  color: #f3f6fa;
}
body.onsites-desk .cw-login-card .sub {
  color: rgba(180, 194, 210, 0.55);
}
body.onsites-desk .cw-login-card label {
  color: rgba(180, 194, 210, 0.5);
}
body.onsites-desk .cw-login-card .cw-input {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f3f6fa;
}
body.onsites-desk .cw-login-card .cw-input:focus {
  border-color: rgba(47, 111, 159, 0.55);
  box-shadow: 0 0 0 2px rgba(47, 111, 159, 0.18);
}
body.onsites-desk .cw-login-card .cw-btn {
  background: var(--cw-steel, #2f6f9f);
  color: #f5f8fc;
}
body.onsites-desk .cw-login-card .cw-btn:hover {
  background: var(--cw-steel-hi, #3d7eb0);
}
body.onsites-desk .cw-login-card .cw-btn-ghost {
  background: transparent;
  color: rgba(220, 228, 238, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
body.onsites-desk .cw-login-card a {
  color: #7eb3d8;
}
body.onsites-desk .cw-login-page .cw-brand-text strong {
  color: #f4f7fb;
}
body.onsites-desk .cw-login-page .cw-brand-text strong em {
  color: #8eb8d8;
  -webkit-text-stroke: 0;
}
body.onsites-desk .cw-login-page .cw-brand-text span {
  color: rgba(168, 188, 208, 0.48);
}
body.onsites-desk .cw-login-page .cw-brand-mark {
  color: #eef6fc;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.34) 0%,
      rgba(255, 255, 255, 0.08) 36%,
      rgba(160, 200, 235, 0.06) 100%
    ),
    rgba(120, 165, 210, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(8, 16, 28, 0.38),
    inset 1px 0 0 rgba(255, 255, 255, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 18px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px) saturate(1.5) brightness(1.06);
  -webkit-backdrop-filter: blur(18px) saturate(1.5) brightness(1.06);
}

/* ——Requests (user inbox) ——*/
body.onsites-desk .cw-nav-item {
  position: relative;
}
body.onsites-desk .cw-nav-badge {
  margin-left: auto;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--admin-live, #22d3a6);
  color: #06241c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
  flex-shrink: 0;
  opacity: 0;
  pointer-events: none;
}
body.onsites-desk .cw-nav-badge.is-on {
  opacity: 1;
  pointer-events: auto;
}
body.onsites-desk .cw-nav-badge[hidden] {
  display: inline-block !important;
  opacity: 0;
}
/* ——Requests (full-bleed) ——*/
body.onsites-desk .cw-shell > .cw-requests {
  min-height: 0;
  overflow: hidden;
}
body.onsites-desk .cw-requests {
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  background: #f4f6f9;
}
body.onsites-desk .cw-requests-head {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: var(--cw-page-inset-y) var(--cw-page-inset-x) 14px;
  border-bottom: 1px solid rgba(14, 21, 32, 0.08);
  background: var(--cw-glass-paper);
  box-shadow: inset 0 1px 0 var(--cw-glass-edge);
  backdrop-filter: blur(var(--cw-glass-blur)) saturate(1.1);
  -webkit-backdrop-filter: blur(var(--cw-glass-blur)) saturate(1.1);
}
body.onsites-desk .cw-requests-head-text .cw-list-eyebrow {
  margin-bottom: 2px;
}
body.onsites-desk .cw-requests-head h1 {
  margin: 0;
  font-family: var(--cw-display);
  font-size: var(--cw-page-head-h1);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #152033;
  line-height: 1.05;
}
body.onsites-desk .cw-requests-head .muted {
  margin: 4px 0 0;
  color: #7b8494;
  font-size: 13px;
  line-height: 1.4;
  max-width: 42rem;
}
body.onsites-desk .cw-requests-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 2px;
}
body.onsites-desk .cw-requests-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4em;
  height: 1.35em;
  margin-left: 8px;
  padding: 0 7px;
  border-radius: 6px;
  font-family: var(--cw-font);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
  vertical-align: 0.12em;
  color: #fff;
  background: #3d7eb0;
}
body.onsites-desk .cw-requests-count[hidden] {
  display: none !important;
}
body.onsites-desk .cw-requests-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  background: #fff;
  scrollbar-width: thin;
}
body.onsites-desk .cw-requests-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}
body.onsites-desk .cw-requests-list[hidden] {
  display: none !important;
}
body.onsites-desk .cw-request-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px var(--cw-page-inset-x);
  border-bottom: 1px solid rgba(14, 21, 32, 0.08);
  background: #fff;
  transition: background 0.12s ease;
}
body.onsites-desk .cw-request-row:hover {
  background: rgba(61, 126, 176, 0.04);
}
body.onsites-desk .cw-request-row:last-child {
  border-bottom: 1px solid rgba(14, 21, 32, 0.08);
}
body.onsites-desk .cw-request-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--cw-display);
  font-size: 13px;
  font-weight: 700;
  color: #2f5f8a;
  background: rgba(61, 126, 176, 0.12);
  border: 1px solid rgba(61, 126, 176, 0.14);
}
body.onsites-desk .cw-request-main {
  min-width: 0;
}
body.onsites-desk .cw-request-title {
  font-family: var(--cw-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #152033;
}
body.onsites-desk .cw-request-meta {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.4;
  color: #7b8494;
}
body.onsites-desk .cw-request-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
body.onsites-desk .cw-requests-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 8px;
  min-height: 100%;
  padding: 56px var(--cw-page-inset-x) 72px;
  border: 0;
  background:
    radial-gradient(ellipse 42% 36% at 50% 0%, rgba(79, 143, 196, 0.08), transparent 60%),
    #fff;
}
body.onsites-desk .cw-requests-empty[hidden] {
  display: none !important;
}
body.onsites-desk .cw-requests-empty strong {
  font-family: var(--cw-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #152033;
  line-height: 1.1;
}
body.onsites-desk .cw-requests-empty span {
  max-width: 28rem;
  font-size: 13px;
  line-height: 1.55;
  color: #7b8494;
}
body.onsites-desk .cw-requests-status {
  margin: 0;
  padding: 12px var(--cw-page-inset-x) 20px;
}
body.onsites-desk .cw-requests-status[hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  body.onsites-desk .cw-requests-head {
    padding: 18px 16px 12px;
  }
  body.onsites-desk .cw-request-row,
  body.onsites-desk .cw-requests-empty {
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (max-width: 800px) {
  body.onsites-desk .cw-request-row {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }
  body.onsites-desk .cw-request-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-top: 4px;
  }
  body.onsites-desk .cw-request-mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
}
body.onsites-desk .cw-pending-invites {
  margin-top: 20px;
}
body.onsites-desk .cw-pending-invites h4 {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ——Shell glass + float polish (v35) ——*/
body.onsites-desk .cw-list-pane .cw-conv-list.is-switching {
  opacity: 0.92;
}
body.onsites-desk .cw-settings-nav-item.active {
  background: rgba(47, 111, 159, 0.1);
  box-shadow: inset 2px 0 0 var(--cw-steel, #2f6f9f);
}
body.onsites-desk .cw-visitors-table-wrap,
body.onsites-desk .cw-visitors .cw-table-wrap {
  border-radius: 0;
  box-shadow: none;
  background: #f4f6f9;
}
body.onsites-desk .cw-nav-badge {
  border-radius: 4px;
  background: var(--admin-live);
  color: #041510;
}
body.onsites-desk .cw-incoming-toast {
  background: rgba(14, 21, 32, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 32px rgba(8, 12, 18, 0.28);
}
body.onsites-desk .cw-ws-switch-menu {
  background: rgba(14, 21, 32, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45) !important;
}
body.onsites-desk .cw-mobile-nav {
  background: rgba(11, 16, 22, 0.82);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}
@media (max-width: 800px) {
  body.onsites-desk {
    --cw-glass-blur: 0px;
  }
  body.onsites-desk .cw-nav,
  body.onsites-desk .cw-list-top,
  body.onsites-desk .cw-workspace .cw-thread-head,
  body.onsites-desk .cw-workspace .cw-reply-box,
  body.onsites-desk .cw-settings-head,
  body.onsites-desk .cw-settings-nav,
  body.onsites-desk .cw-dash-head,
  body.onsites-desk .cw-visitors-head,
  body.onsites-desk .cw-offline-head,
  body.onsites-desk .cw-requests-head,
  body.onsites-desk .cw-chat-workspace .cw-list-head,
  body.onsites-desk .cw-chat-workspace .cw-thread-head,
  body.onsites-desk .cw-incoming-toast,
  body.onsites-desk .cw-ws-switch-menu,
  body.onsites-desk .cw-mobile-nav {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  body.onsites-desk .cw-nav {
    background: #0b121a;
  }
  body.onsites-desk .cw-list-top,
  body.onsites-desk .cw-workspace .cw-thread-head,
  body.onsites-desk .cw-settings-head,
  body.onsites-desk .cw-dash-head,
  body.onsites-desk .cw-visitors-head,
  body.onsites-desk .cw-offline-head,
  body.onsites-desk .cw-requests-head {
    background: rgba(244, 246, 249, 0.97);
  }
}

/* ——Slack-style left rail (Home · Files · More) ——*/
body.onsites-desk.has-cw-rail .cw-shell {
  grid-template-columns: var(--cw-rail-w) minmax(0, 1fr);
}
body.onsites-desk.has-cw-rail .cw-shell::before {
  background:
    radial-gradient(ellipse 50% 42% at 8% 0%, rgba(121, 124, 129, 0.18), transparent 58%),
    radial-gradient(ellipse 40% 36% at 92% 6%, rgba(121, 124, 129, 0.08), transparent 55%),
    linear-gradient(
      90deg,
      rgb(16, 18, 20) 0,
      rgb(16, 18, 20) calc(var(--cw-rail-w) - 1px),
      var(--slack-canvas) var(--cw-rail-w),
      #16181c 100%
    );
}
body.onsites-desk.has-cw-rail .cw-nav {
  display: none !important;
}
body.onsites-desk .cw-rail {
  position: relative;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 0 10px;
  min-height: 0;
  background: var(--slack-rail-bg);
  font-family: var(--cw-font);
}
body.onsites-desk .cw-rail-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 6px 0 10px;
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  color: #fff;
  text-decoration: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  cursor: pointer;
}
body.onsites-desk .cw-rail-brand:hover {
  color: rgba(255, 255, 255, 0.82);
  filter: none;
}
body.onsites-desk .cw-rail-brand svg,
body.onsites-desk .cw-rail-brand img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}
body.onsites-desk .cw-rail-brand-orbit {
  transform-box: fill-box;
  transform-origin: 0 0;
}
@keyframes cw-rail-brand-orbit-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(720deg);
  }
}
body.onsites-desk .cw-rail-brand-orbit.is-spinning {
  animation: cw-rail-brand-orbit-spin 1.35s cubic-bezier(0.42, 0, 0.2, 1) forwards;
}
body.onsites-desk .cw-rail-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 3.25rem;
}
body.onsites-desk .cw-rail-btn {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 8px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  color: var(--slack-rail-muted);
  font: 700 12px/9px var(--cw-font);
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
}
body.onsites-desk .cw-rail-btn .cw-rail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  transition: background 125ms cubic-bezier(0.17, 0.67, 0.55, 1.09);
}
body.onsites-desk .cw-rail-btn:hover .cw-rail-icon,
body.onsites-desk .cw-rail-btn:focus-visible .cw-rail-icon {
  background: var(--slack-rail-hover);
}
body.onsites-desk .cw-rail-btn.is-on {
  color: var(--slack-rail-text);
}
body.onsites-desk .cw-rail-btn.is-on .cw-rail-icon {
  background: var(--slack-rail-active);
}
body.onsites-desk .cw-rail-btn svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 125ms cubic-bezier(0.17, 0.67, 0.55, 1.09);
}
body.onsites-desk .cw-rail-btn:hover svg {
  transform: scale(1.12);
}
body.onsites-desk .cw-rail-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.onsites-desk .cw-rail-foot {
  margin-top: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  padding: 16px 0 8px;
  gap: 0;
}
body.onsites-desk .cw-rail-foot-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: 3.25rem;
}
body.onsites-desk .cw-rail-foot .cw-rail-settings-btn {
  width: 100%;
  padding: 0;
  flex-shrink: 0;
}
body.onsites-desk .cw-rail-foot .cw-rail-settings-btn .cw-rail-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
}
body.onsites-desk .cw-rail-foot .cw-rail-settings-btn .cw-rail-label {
  max-width: 100%;
}
body.onsites-desk .cw-rail-foot .cw-nav-foot {
  display: none !important;
  width: 0;
  height: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
body.onsites-desk .cw-rail-foot .cw-nav-foot .meta {
  display: none;
}
body.onsites-desk .cw-rail-foot .cw-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
}
body.onsites-desk .cw-rail-status {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111215;
  pointer-events: none;
}
body.onsites-desk .cw-rail-status::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #7b8088;
}
body.onsites-desk .cw-rail-status.is-on::after {
  background: #3daa7c;
}
body.onsites-desk .cw-rail-status.is-off::after {
  background: #7b8088;
}
body.onsites-desk .cw-rail-avatar-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: block;
}
body.onsites-desk .cw-rail-avatar-wrap:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
  border-radius: 8px;
}
body.onsites-desk .cw-more-menu {
  position: fixed;
  z-index: 12000;
  min-width: 220px;
  max-width: min(280px, calc(100vw - 24px));
  padding: 6px 0;
  border-radius: 8px;
  border: 1px solid rgba(121, 124, 129, 0.3);
  background: #222529;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.35);
  color: #e8eaed;
  font-family: var(--cw-font);
  font-size: 13px;
}
body.onsites-desk .cw-more-menu[hidden] {
  display: none !important;
}
body.onsites-desk .cw-more-menu a,
body.onsites-desk .cw-more-menu button.cw-more-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 30px;
  padding: 4px 16px;
  border: 0;
  background: transparent;
  color: #d1d2d3;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
body.onsites-desk .cw-more-menu a:hover,
body.onsites-desk .cw-more-menu button.cw-more-item:hover,
body.onsites-desk .cw-more-menu a.is-on {
  background: #37383b;
  color: #fff;
}
body.onsites-desk .cw-more-menu a svg {
  flex-shrink: 0;
  opacity: 0.72;
}
body.onsites-desk .cw-more-menu .cw-nav-badge {
  margin-left: auto;
  opacity: 1;
  pointer-events: none;
}
body.onsites-desk .cw-more-menu .cw-nav-badge:not(.is-on) {
  opacity: 0;
}
body.onsites-desk .cw-more-divider {
  height: 1px;
  margin: 6px 0;
  background: rgba(121, 124, 129, 0.35);
}
body.onsites-desk .cw-more-menu .cw-nav-accept {
  margin: 4px 8px 6px;
  width: calc(100% - 16px);
  border-radius: 6px;
  border: 1px solid rgba(121, 124, 129, 0.25);
  background: rgba(255, 255, 255, 0.03);
}
body.onsites-desk .cw-user-menu .cw-nav-accept {
  margin: 4px 8px 6px;
  width: calc(100% - 16px);
  border-radius: 6px;
  border: 1px solid rgba(121, 124, 129, 0.25);
  background: rgba(255, 255, 255, 0.03);
}
body.onsites-desk .cw-more-menu .cw-ws-host {
  padding: 4px 8px 8px;
}
body.onsites-desk.has-cw-rail .cw-workspace,
body.onsites-desk.has-cw-rail .cw-chat-workspace,
body.onsites-desk.has-cw-rail .cw-agent,
body.onsites-desk.has-cw-rail .cw-settings,
body.onsites-desk.has-cw-rail .cw-dash,
body.onsites-desk.has-cw-rail .cw-visitors,
body.onsites-desk.has-cw-rail .cw-requests,
body.onsites-desk.has-cw-rail .cw-offline {
  border-radius: 6px;
  margin: 0 4px 4px 0;
  border: 1px solid rgba(121, 124, 129, 0.3);
  overflow: hidden;
}

/* ——More hub sidebar (Visitors · Dashboard · Requests · Settings) ——*/
body.onsites-desk.has-cw-rail {
  --cw-more-sidebar-w: 220px;
}
body.onsites-desk.has-cw-rail.has-cw-more-sidebar .cw-shell {
  grid-template-columns: var(--cw-rail-w) var(--cw-more-sidebar-w) minmax(0, 1fr);
}
body.onsites-desk .cw-more-sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: #0c0d11;
  border-right: 1px solid rgba(255, 255, 255, 0.055);
  font-family: var(--cw-font);
}
body.onsites-desk .cw-more-sidebar[hidden] {
  display: none !important;
}
body.onsites-desk .cw-more-sidebar-head {
  flex-shrink: 0;
  padding: 16px 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}
body.onsites-desk .cw-more-sidebar-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #f0f1f4;
}
body.onsites-desk .cw-more-sidebar-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  padding: 10px 10px 16px;
}
body.onsites-desk .cw-more-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
body.onsites-desk .cw-more-nav-btn {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 34px;
  padding: 0 12px 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9ca3af;
  font: 500 13px/1.2 var(--cw-font);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.18s ease, color 0.18s ease;
}
body.onsites-desk .cw-more-nav-btn:hover {
  background: rgba(255, 255, 255, 0.045);
  color: #f0f1f4;
}
body.onsites-desk .cw-more-nav-btn.is-on {
  background: var(--cw-home-surface-raised, rgba(255, 255, 255, 0.1));
  color: #f0f1f4;
  font-weight: 650;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.28),
    0 4px 12px rgba(0, 0, 0, 0.18);
}
body.onsites-desk .cw-more-nav-btn .ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  opacity: 0.88;
}
body.onsites-desk .cw-more-nav-btn .ico svg {
  width: 16px;
  height: 16px;
}
body.onsites-desk .cw-more-nav-btn .label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.onsites-desk .cw-more-nav-btn .badge {
  flex-shrink: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: rgba(107, 159, 255, 0.14);
  color: #a8c7ff;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
body.onsites-desk .cw-more-nav-btn .badge:empty,
body.onsites-desk .cw-more-nav-btn .badge:not(.is-on) {
  display: none;
}
body.onsites-desk .cw-more-sidebar-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}
body.onsites-desk .cw-more-sidebar-foot #cwMoreAcceptSlot .cw-nav-accept {
  width: 100%;
  margin: 0 0 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
body.onsites-desk .cw-more-nav-logout {
  color: #6b7280;
}
body.onsites-desk .cw-more-nav-logout:hover {
  color: #f87171;
  background: rgba(248, 113, 113, 0.08);
}
body.onsites-desk.has-cw-more-sidebar.has-cw-rail .cw-shell::before {
  background:
    radial-gradient(ellipse 50% 42% at 8% 0%, rgba(121, 124, 129, 0.18), transparent 58%),
    radial-gradient(ellipse 40% 36% at 92% 6%, rgba(121, 124, 129, 0.08), transparent 55%),
    linear-gradient(
      90deg,
      rgb(16, 18, 20) 0,
      rgb(16, 18, 20) calc(var(--cw-rail-w) - 1px),
      #0c0d11 calc(var(--cw-rail-w) + var(--cw-more-sidebar-w) - 1px),
      var(--slack-canvas) calc(var(--cw-rail-w) + var(--cw-more-sidebar-w)),
      #0f1014 100%
    );
}

/* Mail channel: email-style list + thread cards */
body.onsites-desk .cw-conv-card.is-mail .mail-subject {
  font-size: 13px;
  font-weight: 600;
  color: var(--cw-text, #e8eef7);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 1px 0 2px;
}
body.onsites-desk .cw-conv-card.is-mail.unread .mail-subject {
  font-weight: 700;
}
body.onsites-desk .cw-conv-card.is-mail .name {
  font-size: 12px;
  font-weight: 500;
  color: var(--cw-text-2, #a8b3c4);
}
body.onsites-desk .cw-conv-card.is-mail .preview {
  font-size: 12px;
  color: var(--cw-text-3, #7d8a9c);
}
body.onsites-desk .cw-conv-box-tag.is-mail {
  max-width: 7.5rem;
}
body.onsites-desk .cw-messages.is-mail-thread {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0 24px;
  align-items: stretch;
}
body.onsites-desk .cw-mail-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  border-radius: 0;
  outline: none;
}
body.onsites-desk .cw-mail-item.is-open {
  background: rgba(255, 255, 255, 0.03);
}
body.onsites-desk .cw-mail-item.is-outbound.is-collapsed {
  background: rgba(255, 255, 255, 0.015);
}
body.onsites-desk .cw-mail-item-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 16px 10px;
  cursor: pointer;
}
body.onsites-desk .cw-mail-item-avatar {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: #fff;
  border-radius: 0;
  background: hsl(var(--cw-mail-av-h, 210) 42% 42%);
  user-select: none;
}
body.onsites-desk .cw-mail-item-main {
  min-width: 0;
}
body.onsites-desk .cw-mail-item-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 22px;
}
body.onsites-desk .cw-mail-item-from {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--cw-text, #e8eef7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.onsites-desk .cw-mail-item.is-collapsed .cw-mail-item-from-long,
body.onsites-desk .cw-mail-item.is-open .cw-mail-item-from-short {
  display: none;
}
body.onsites-desk .cw-mail-item.is-open .cw-mail-item-from-long {
  display: inline;
}
body.onsites-desk .cw-mail-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--cw-text-3, #7d8a9c);
  font-size: 12px;
}
body.onsites-desk .cw-mail-item-time {
  white-space: nowrap;
}
body.onsites-desk .cw-mail-item-folder {
  position: relative;
  padding-left: 10px;
  white-space: nowrap;
}
body.onsites-desk .cw-mail-item-folder::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
}
body.onsites-desk .cw-mail-item-folder.is-sent {
  color: #e0a35a;
}
body.onsites-desk .cw-mail-item-folder.is-failed {
  color: #e07070;
  font-weight: 600;
}
body.onsites-desk .cw-mail-item.is-delivery-failed {
  border-color: rgba(224, 112, 112, 0.35);
}
body.onsites-desk .cw-mail-item-fail {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  color: #e07070;
}
body.onsites-desk .cw-mail-retry {
  margin-left: 6px;
  border: 0;
  border-radius: 4px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: #c45c5c;
}
body.onsites-desk .cw-mail-retry:hover {
  background: #a84848;
}
body.onsites-desk .cw-mail-retry:disabled {
  opacity: 0.6;
  cursor: wait;
}
body.onsites-desk .cw-mail-item-tools {
  display: none;
  align-items: center;
  gap: 1px;
  flex: 0 0 auto;
  margin-left: 2px;
}
body.onsites-desk .cw-mail-item-head:hover .cw-mail-item-tools,
body.onsites-desk .cw-mail-item.is-open .cw-mail-item-tools,
body.onsites-desk .cw-mail-item-tools:focus-within {
  display: inline-flex;
}
body.onsites-desk .cw-mail-tool {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--cw-text-2, #a8b3c4);
  cursor: pointer;
  border-radius: 8px;
  padding: 0;
  opacity: 0.88;
}
body.onsites-desk .cw-mail-tool:hover {
  color: var(--cw-home-accent-text, #a8c7ff);
  background: rgba(168, 199, 255, 0.12);
  opacity: 1;
}
body.onsites-desk .cw-mail-tool svg {
  display: block;
  flex: 0 0 auto;
}
body.onsites-desk .cw-mail-item-actions {
  display: none !important;
}
body.onsites-desk .cw-mail-item-sum {
  margin-top: 4px;
  min-width: 0;
}
body.onsites-desk .cw-mail-item.is-open .cw-mail-item-sum {
  display: none;
}
body.onsites-desk .cw-mail-item-reci {
  color: var(--cw-text-2, #a8b3c4);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 42%;
}
body.onsites-desk .cw-mail-item-cc-hint {
  color: var(--cw-text-3, #7d8a9c);
  font-weight: 500;
}
body.onsites-desk .cw-mail-item-snip {
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--cw-text-3, #7d8a9c);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.onsites-desk .cw-mail-item-subj {
  color: var(--cw-text-2, #a8b3c4);
  font-weight: 600;
}
body.onsites-desk .cw-mail-item-detail {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  cursor: default;
}
body.onsites-desk .cw-mail-item.is-open .cw-mail-item-detail {
  display: flex;
}
body.onsites-desk .cw-mail-hdr-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 12.5px;
  line-height: 1.45;
}
body.onsites-desk .cw-mail-hdr-k {
  color: var(--cw-text-3, #7d8a9c);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.03em;
  padding-top: 1px;
  user-select: none;
}
body.onsites-desk .cw-mail-hdr-v {
  color: var(--cw-text, #e8eef7);
  word-break: break-word;
  user-select: text;
  cursor: text;
}
body.onsites-desk .cw-mail-hdr-v.is-copyable {
  cursor: copy;
  border-radius: 4px;
  margin: -2px -4px;
  padding: 2px 4px;
  transition: background 0.12s ease, color 0.12s ease;
}
body.onsites-desk .cw-mail-hdr-v.is-copyable:hover,
body.onsites-desk .cw-mail-hdr-v.is-copyable:focus-visible {
  background: rgba(168, 199, 255, 0.12);
  color: var(--cw-home-accent-text, #a8c7ff);
  outline: none;
}
body.onsites-desk .cw-mail-item-body {
  display: none;
  padding: 4px 16px 8px 68px;
}
body.onsites-desk .cw-mail-item.is-open .cw-mail-item-body {
  display: block;
}
body.onsites-desk .cw-mail-item-letter {
  font-size: 14px;
  line-height: 1.6;
  color: var(--cw-text, #e8eef7);
  white-space: pre-wrap;
  word-break: break-word;
}
body.onsites-desk .cw-mail-item-letter.is-letter {
  white-space: normal;
  background: #ffffff;
  color: #1a1e24;
  color-scheme: light;
  padding: 16px 18px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
body.onsites-desk .cw-mail-item-letter.is-letter img {
  max-width: 100%;
  height: auto;
}
body.onsites-desk .cw-mail-item-letter.is-letter a {
  color: #0d47a1;
}
body.onsites-desk .cw-mail-item-letter.is-letter p {
  margin: 0 0 0.7em;
}
body.onsites-desk .cw-mail-item-letter.is-letter p:last-child {
  margin-bottom: 0;
}
body.onsites-desk .cw-mail-item-letter.is-letter table {
  max-width: 100%;
  border-collapse: collapse;
}
body.onsites-desk .cw-mail-item-letter.is-text {
  background: #ffffff;
  color: #1a1e24;
  color-scheme: light;
  padding: 16px 18px;
}
body.onsites-desk .cw-mail-item-letter.is-empty {
  color: var(--cw-text-3, #7d8a9c);
  font-style: italic;
  white-space: normal;
}
body.onsites-desk .cw-mail-quote-toggle {
  display: inline-flex;
  align-items: center;
  margin: 8px 0 0;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cw-text-2, #a8b3c4);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 0;
}
body.onsites-desk .cw-mail-quote-toggle:hover {
  color: var(--cw-text, #e8eef7);
  background: rgba(255, 255, 255, 0.1);
}
body.onsites-desk .cw-mail-item-letter.is-quoted {
  margin-top: 8px;
  background: #ffffff;
  color: #1a1e24;
  color-scheme: light;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 12px 18px;
}
body.onsites-desk .cw-mail-item-actions {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 4px 16px 14px 68px;
}
body.onsites-desk .cw-mail-item.is-open .cw-mail-item-actions {
  display: flex;
}
body.onsites-desk .cw-mail-act {
  border: 0;
  background: transparent;
  color: #8eb6ff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px 6px 0;
  cursor: pointer;
  border-radius: 0;
}
body.onsites-desk .cw-mail-act + .cw-mail-act {
  position: relative;
  padding-left: 12px;
}
body.onsites-desk .cw-mail-act + .cw-mail-act::before {
  content: '·';
  position: absolute;
  left: 2px;
  color: var(--cw-text-3, #7d8a9c);
}
body.onsites-desk .cw-mail-act:hover {
  text-decoration: underline;
}
body.onsites-desk .cw-mail-item--in {
  animation: cw-mail-in 0.24s ease-out;
}
@keyframes cw-mail-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* Mail message attachments */
body.onsites-desk .cw-mail-item-att-cnt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  vertical-align: middle;
  color: var(--cw-text-3, #7d8a9c);
  font-size: 11.5px;
  font-weight: 600;
}
body.onsites-desk .cw-mail-item-att-cnt svg {
  color: #8eb6ff;
}
body.onsites-desk .cw-mail-item-attach {
  margin-top: 10px;
}
body.onsites-desk .cw-mail-attach-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cw-text-3, #7d8a9c);
  margin-bottom: 6px;
}
body.onsites-desk .cw-mail-attach-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
body.onsites-desk .cw-mail-attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 320px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--cw-text-2, #a8b3c4);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
body.onsites-desk .cw-mail-attach-chip:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(142, 182, 255, 0.5);
  color: var(--cw-text, #e8eef7);
}
body.onsites-desk .cw-mail-attach-ico {
  display: inline-flex;
  align-items: center;
  color: #8eb6ff;
  flex: 0 0 auto;
}
body.onsites-desk .cw-mail-attach-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
body.onsites-desk .cw-mail-attach-name {
  font-size: 12.5px;
  font-weight: 600;
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.onsites-desk .cw-mail-attach-size {
  font-size: 11px;
  color: var(--cw-text-3, #7d8a9c);
}
body.onsites-desk .cw-mail-attach-ext {
  align-self: flex-start;
  padding: 1px 5px;
  margin-bottom: 2px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
  border-radius: 3px;
  background: rgba(142, 182, 255, 0.14);
  color: #8eb6ff;
}

/* Email body links (survive in both text and rich-HTML rendering) */
body.onsites-desk .cw-mail-item-letter a {
  color: #8eb6ff;
  text-decoration: none;
}
body.onsites-desk .cw-mail-item-letter a:hover {
  text-decoration: underline;
}
body.onsites-desk .cw-mail-attach-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 6px;
}
body.onsites-desk .cw-mail-attach-list[hidden] {
  display: none;
}
body.onsites-desk .cw-mail-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 220px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  font-size: 12px;
  color: var(--cw-text-2, #a8b3c4);
}
body.onsites-desk .cw-mail-file-chip .cw-mail-file-x {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--cw-text-3, #7d8a9c);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  padding: 0 3px;
  border-radius: 0;
}
body.onsites-desk .cw-mail-file-chip .cw-mail-file-x:hover {
  color: var(--cw-text, #e8eef7);
  background: rgba(255, 255, 255, 0.12);
}
body.onsites-desk .cw-thread-mail-subject {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--cw-text-3, #7d8a9c);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.onsites-desk .cw-mail-reply-head {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 2px 4px 4px;
  margin: 0 8px 6px;
}
body.onsites-desk .cw-mail-reply-head[hidden],
body.onsites-desk .cw-mail-reply-row[hidden] {
  display: none;
}
body.onsites-desk .cw-mail-reply-row.cw-mail-fs-only {
  display: none;
}
body.onsites-desk.cw-mail-fs-open .cw-mail-reply-row.cw-mail-fs-only,
body.onsites-desk .cw-composer-wrap.is-mail-compose-extended .cw-mail-reply-row.cw-mail-fs-only {
  display: flex;
}
body.onsites-desk .cw-mail-reply-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
body.onsites-desk .cw-mail-reply-row label {
  flex: 0 0 2.2rem;
  font-size: 12px;
  font-weight: 650;
  color: var(--cw-text-3, #7d8a9c);
}
body.onsites-desk .cw-mail-reply-row input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--cw-text, #e8eef7);
  font-size: 13px;
  padding: 7px 0;
  border-radius: 0;
}
body.onsites-desk .cw-mail-reply-row input::placeholder {
  color: var(--cw-text-3, #7d8a9c);
  opacity: 0.8;
}
body.onsites-desk .cw-mail-reply-field {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
body.onsites-desk .cw-mail-reply-field input {
  flex: 1 1 auto;
  min-width: 0;
}
body.onsites-desk .cw-mail-addr-toggle {
  flex: 0 0 auto;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--cw-text-3, #7d8a9c);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  padding: 4px 2px;
  line-height: 1;
  white-space: nowrap;
}
body.onsites-desk .cw-mail-addr-toggle:hover {
  color: var(--cw-home-accent-text, #a8c7ff);
}
body.onsites-desk .cw-mail-reply-row.is-error {
  border-bottom-color: #e07070;
}
body.onsites-desk .cw-mail-reply-row.is-error label {
  color: #e07070;
}
body.onsites-desk .cw-mail-addr-error {
  display: block;
  margin: 0 8px 4px;
  padding: 0 0 2px;
  font-size: 12px;
  line-height: 1.35;
  color: #e07070;
}
body.onsites-desk .cw-mail-addr-error[hidden] {
  display: none !important;
}
body.onsites-desk .cw-composer-wrap.is-mail-composer .cw-reply-tabs {
  margin-bottom: 2px;
}
body.onsites-desk .cw-composer-wrap.is-mail-composer .cw-reply-editor {
  min-height: 96px;
  border-radius: 0 !important;
}
body.onsites-desk .cw-composer-wrap.is-mail-composer .cw-reply-box,
body.onsites-desk .cw-composer-wrap.is-mail-composer .cw-reply-box:focus-within,
body.onsites-desk .cw-composer-wrap.is-mail-composer .cw-reply-tab,
body.onsites-desk .cw-composer-wrap.is-mail-composer .cw-send-icon,
body.onsites-desk .cw-composer-wrap.is-mail-composer .cw-emoji-btn,
body.onsites-desk .cw-composer-wrap.is-mail-composer .cw-file-btn,
body.onsites-desk .cw-composer-wrap.is-mail-composer .cw-file-chip,
body.onsites-desk .cw-composer-wrap.is-mail-composer .cw-mail-reply-row input {
  border-radius: 0 !important;
}

/* Rich email composer (contenteditable) */
body.onsites-desk .cw-mail-rich-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
body.onsites-desk .cw-mail-rich-wrap[hidden] {
  display: none !important;
}
body.onsites-desk .cw-mail-fmtbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
body.onsites-desk .cw-mail-fmtbar[hidden] {
  display: none !important;
}
/* Chat lite toolbar: emoji + attach only — hide every format/data-fmt button and separators */
body.onsites-desk .cw-mail-rich-wrap.is-chat-fmt-lite [data-mail-only="1"] {
  display: none !important;
}
body.onsites-desk .cw-mail-rich-wrap.is-chat-fmt-lite [data-fmt] {
  display: none !important;
}
body.onsites-desk .cw-mail-rich-wrap.is-chat-fmt-lite .cw-mail-fmt-sep {
  display: none !important;
}
body.onsites-desk .cw-mail-rich-wrap.is-chat-fmt-lite .cw-mail-sig-block,
body.onsites-desk .cw-mail-rich-wrap.is-chat-fmt-lite .cw-mail-fmt--sig {
  display: none !important;
}
body.onsites-desk .cw-mail-fmt[hidden] {
  display: none !important;
}
body.onsites-desk .cw-mail-rich-wrap.is-chat-fmt-lite .cw-mail-rich {
  min-height: 132px;
}
body.onsites-desk .cw-mail-fmtbar .cw-emoji-btn {
  width: 28px;
  height: 28px;
  border-radius: 0;
  flex: 0 0 auto;
}
body.onsites-desk .cw-mail-fmtbar .cw-emoji-btn svg {
  width: 15px;
  height: 15px;
}
body.onsites-desk .cw-msg-html {
  line-height: 1.45;
  word-break: break-word;
}
body.onsites-desk .cw-msg-html a {
  color: #8ec5ff;
  text-decoration: underline;
}
body.onsites-desk .cw-msg-html ul,
body.onsites-desk .cw-msg-html ol {
  margin: 0.35em 0;
  padding-left: 1.25em;
}
body.onsites-desk .cw-msg-html p {
  margin: 0.25em 0;
}
body.onsites-desk .cw-msg-html p:first-child {
  margin-top: 0;
}
body.onsites-desk .cw-msg-html p:last-child {
  margin-bottom: 0;
}
body.onsites-desk .cw-mail-fmt {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
body.onsites-desk .cw-mail-fmt:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cw-text);
}
body.onsites-desk .cw-mail-fmt svg {
  width: 15px;
  height: 15px;
  display: block;
}
body.onsites-desk .cw-mail-fmt-sep {
  width: 1px;
  height: 16px;
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.12);
}
body.onsites-desk .cw-mail-fmt.is-on {
  background: rgba(168, 199, 255, 0.16);
  color: var(--cw-home-accent-text, #a8c7ff);
}
body.onsites-desk .cw-mail-fmt--dd {
  width: auto;
  gap: 4px;
  padding: 0 7px;
  font-size: 11px;
}
body.onsites-desk .cw-mail-fmt--dd.is-on {
  background: rgba(168, 199, 255, 0.16);
  color: var(--cw-home-accent-text, #a8c7ff);
}
body.onsites-desk .cw-mail-fmt--color {
  position: relative;
}
body.onsites-desk .cw-mail-fmt-color-split {
  display: flex;
  align-items: center;
  gap: 3px;
}
body.onsites-desk .cw-mail-fmt-color-swat {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  flex-shrink: 0;
}
body.onsites-desk .cw-mail-fmt-color-swat--fg {
  width: 13px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  background: none;
}
body.onsites-desk .cw-mail-fmt--attach {
  width: 28px;
  height: 28px;
}
body.onsites-desk .cw-mail-fmt--attach svg {
  width: 15px;
  height: 15px;
}
body.onsites-desk .cw-mail-fmtbar .cw-file-chip {
  margin-left: 2px;
}
body.onsites-desk .cw-reply-foot.is-mail .cw-emoji-btn {
  display: none !important;
}
body.onsites-desk .cw-mail-fmtbar {
  position: relative;
}
body.onsites-desk .cw-fmt-pop {
  position: absolute;
  top: calc(100% + 4px);
  left: 10px;
  z-index: 60;
  min-width: 170px;
  padding: 6px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #1d2733;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
body.onsites-desk .cw-fmt-pop[hidden] {
  display: none !important;
}
body.onsites-desk .cw-fmt-pop--size {
  min-width: 122px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
body.onsites-desk .cw-fmt-pop-item {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
  padding: 7px 10px;
  border-radius: 0;
  font-size: 13px;
  cursor: pointer;
}
body.onsites-desk .cw-fmt-pop-item:hover,
body.onsites-desk .cw-fmt-pop-item.is-on {
  background: rgba(168, 199, 255, 0.14);
  color: var(--cw-home-accent-text, #a8c7ff);
}
body.onsites-desk .cw-fmt-pop--color {
  min-width: 400px;
}
body.onsites-desk .cw-fmt-color-cols {
  display: flex;
  gap: 10px;
}
body.onsites-desk .cw-fmt-pop-group {
  flex: 1 1 0;
  min-width: 0;
  padding: 6px;
}
body.onsites-desk .cw-fmt-pop-group + .cw-fmt-pop-group {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 12px;
}
body.onsites-desk .cw-fmt-pop-group-title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 2px 6px;
}
body.onsites-desk .cw-fmt-color-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  padding: 2px;
}
body.onsites-desk .cw-fmt-color-cell {
  width: 20px;
  height: 20px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  padding: 0;
  position: relative;
}
body.onsites-desk .cw-fmt-color-cell.is-on::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 2px solid var(--cw-home-accent-text, #a8c7ff);
  border-radius: 0;
}
body.onsites-desk .cw-fmt-color-cell--none {
  display: flex;
  align-items: center;
  justify-content: center;
}
body.onsites-desk .cw-fmt-color-cell--none::before,
body.onsites-desk .cw-fmt-color-cell--none::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 2px;
  background: rgba(255, 80, 80, 0.85);
  border-radius: 0;
}
body.onsites-desk .cw-fmt-color-cell--none::before {
  transform: rotate(45deg);
}
body.onsites-desk .cw-fmt-color-cell--none::after {
  transform: rotate(-45deg);
}
body.onsites-desk .cw-fmt-color-custom {
  width: 100%;
  height: 26px;
  margin-top: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
body.onsites-desk .cw-fmt-pop--link {
  min-width: 264px;
}
body.onsites-desk .cw-fmt-pop-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin: 2px 4px 8px;
}
body.onsites-desk .cw-fmt-pop-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}
body.onsites-desk .cw-fmt-pop-field > span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  padding: 0 4px;
}
body.onsites-desk .cw-fmt-pop-field input {
  height: 30px;
  padding: 0 10px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
  color: var(--cw-text);
  font-size: 13px;
  outline: none;
}
body.onsites-desk .cw-fmt-pop-field input:focus {
  border-color: var(--cw-home-accent-text, #a8c7ff);
}
body.onsites-desk .cw-fmt-pop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}
body.onsites-desk .cw-fmt-pop-btn {
  border: 0;
  border-radius: 0;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  background: var(--cw-home-accent-text, #4a7dff);
  color: #fff;
}
body.onsites-desk .cw-fmt-pop-btn:hover {
  filter: brightness(1.12);
}
body.onsites-desk .cw-fmt-pop-btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
}
body.onsites-desk .cw-fmt-pop-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  filter: none;
}
body.onsites-desk .cw-mail-fmt--sig {
  width: auto;
  gap: 5px;
  padding: 0 8px;
  margin-left: auto;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}
body.onsites-desk .cw-mail-fmt--sig.is-on {
  color: var(--cw-home-accent-text, #a8c7ff);
}
/* Side panel: Signature moved into send-row ⋯ menu */
body.onsites-desk:not(.cw-mail-fs-open) .cw-composer-wrap.is-mail-composer .cw-mail-fmt--sig {
  display: none !important;
}
body.onsites-desk .cw-composer-wrap.is-mail-composer .cw-reply-foot {
  justify-content: flex-start;
  gap: 6px;
}
body.onsites-desk .cw-composer-wrap.is-mail-composer .cw-reply-foot .cw-composer-tools {
  flex: 1 1 auto;
  min-width: 0;
}
body.onsites-desk .cw-mail-compose-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-left: auto;
}
body.onsites-desk .cw-mail-compose-more {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  margin-left: 0;
}
body.onsites-desk .cw-mail-compose-more[hidden] {
  display: none !important;
}
body.onsites-desk .cw-mail-compose-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--cw-home-border, rgba(255, 255, 255, 0.08));
  border-radius: 6px;
  background: transparent;
  color: var(--cw-home-muted, rgba(255, 255, 255, 0.65));
  cursor: pointer;
}
body.onsites-desk .cw-mail-compose-more-btn:hover,
body.onsites-desk .cw-mail-compose-more-btn[aria-expanded='true'] {
  color: var(--cw-home-text, #e8eef7);
  background: var(--cw-home-hover, rgba(255, 255, 255, 0.06));
}
body.onsites-desk .cw-mail-compose-more-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  min-width: 220px;
  max-width: min(320px, 70vw);
  padding: 4px;
  border: 1px solid var(--cw-home-border-strong, rgba(255, 255, 255, 0.12));
  border-radius: 8px;
  background: var(--cw-home-surface-raised, #21242c);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  z-index: 40;
}
/* Fixed portal — escapes .cw-reply-box overflow clipping + mail thread stacking */
body.onsites-desk .cw-mail-compose-more-menu.is-portal {
  position: fixed;
  right: auto;
  bottom: auto;
  z-index: 2300;
}
body.onsites-desk .cw-mail-compose-more-menu[hidden] {
  display: none !important;
}
body.onsites-desk .cw-mail-compose-more-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--cw-home-muted, #a8b3c4);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
body.onsites-desk .cw-mail-compose-more-item:hover {
  background: var(--cw-home-hover, rgba(255, 255, 255, 0.06));
  color: var(--cw-home-text, #e8eef7);
}
body.onsites-desk .cw-mail-compose-more-item.is-on {
  color: var(--cw-home-accent-text, #a8c7ff);
}
body.onsites-desk .cw-mail-compose-more-item--muted {
  color: var(--cw-home-faint, #7d8a9c);
  font-size: 12px;
}
body.onsites-desk .cw-mail-compose-more-ico {
  flex: 0 0 auto;
  width: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}
body.onsites-desk .cw-mail-compose-more-chev {
  margin-left: auto;
  opacity: 0.5;
}
body.onsites-desk .cw-mail-compose-tpl-menu {
  margin: 2px 0 4px;
  padding: 4px;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--cw-home-border, rgba(255, 255, 255, 0.08));
  border-radius: 6px;
  background: color-mix(in srgb, var(--cw-home-list-bg, #0f1014) 70%, transparent);
}
body.onsites-desk .cw-mail-compose-tpl-menu[hidden] {
  display: none !important;
}
body.onsites-desk .cw-mail-compose-tpl-empty {
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--cw-home-faint, #7d8a9c);
}
body.onsites-desk .cw-mail-tpl-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
}
body.onsites-desk .cw-mail-tpl-search {
  width: 100%;
}
body.onsites-desk .cw-mail-tpl-folders {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
body.onsites-desk .cw-mail-tpl-folder-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid var(--cw-home-border, rgba(255, 255, 255, 0.1));
  border-radius: 999px;
  background: transparent;
  color: var(--cw-home-muted, #a8b3c4);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
body.onsites-desk .cw-mail-tpl-folder-chip.is-on,
body.onsites-desk .cw-mail-tpl-folder-chip:hover {
  color: var(--cw-home-text, #e8eef7);
  border-color: var(--cw-home-border-strong, rgba(255, 255, 255, 0.18));
  background: var(--cw-home-hover, rgba(255, 255, 255, 0.06));
}
body.onsites-desk .cw-mail-tpl-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  align-items: center;
}
body.onsites-desk .cw-mail-tpl-scope-badge,
body.onsites-desk .cw-mail-tpl-folder-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  color: var(--cw-home-muted, #a8b3c4);
  background: var(--cw-home-hover, rgba(255, 255, 255, 0.06));
}
body.onsites-desk .cw-mail-tpl-picker {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
}
body.onsites-desk .cw-mail-tpl-picker[hidden] {
  display: none !important;
}
body.onsites-desk .cw-mail-tpl-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
}
body.onsites-desk .cw-mail-tpl-picker-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(920px, 100%);
  height: min(720px, 90vh);
  border: 1px solid var(--cw-home-border-strong, rgba(255, 255, 255, 0.12));
  border-radius: 14px;
  background: var(--cw-home-surface-raised, #1c1f27);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
body.onsites-desk .cw-mail-tpl-picker-dialog.is-empty {
  width: min(460px, 100%);
  height: auto;
  min-height: 320px;
}
body.onsites-desk .cw-mail-tpl-picker-dialog.is-empty .cw-mail-tpl-picker-preview-pane,
body.onsites-desk .cw-mail-tpl-picker-dialog.is-empty .cw-mail-tpl-picker-sub,
body.onsites-desk .cw-mail-tpl-picker-dialog.is-empty .cw-mail-tpl-picker-tools,
body.onsites-desk .cw-mail-tpl-picker-dialog.is-empty .cw-mail-tpl-picker-foot {
  display: none !important;
}
body.onsites-desk .cw-mail-tpl-picker-dialog.is-empty .cw-mail-tpl-picker-body {
  display: block;
}
body.onsites-desk .cw-mail-tpl-picker-dialog.is-empty .cw-mail-tpl-picker-side {
  width: 100%;
  border: 0;
}
body.onsites-desk .cw-mail-tpl-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 10px;
  border-bottom: 0;
  flex: 0 0 auto;
}
body.onsites-desk .cw-mail-tpl-picker-tabs {
  display: flex;
  gap: 4px;
  padding: 0 16px 10px;
  border-bottom: 1px solid var(--cw-home-border, rgba(255, 255, 255, 0.08));
  flex: 0 0 auto;
}
body.onsites-desk .cw-mail-tpl-picker-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--cw-home-muted, #a8b3c4);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}
body.onsites-desk .cw-mail-tpl-picker-tab:hover {
  color: var(--cw-home-text, #e8eef7);
  background: var(--cw-home-hover, rgba(255, 255, 255, 0.05));
}
body.onsites-desk .cw-mail-tpl-picker-tab.is-on {
  color: var(--cw-home-text, #e8eef7);
  background: color-mix(in srgb, var(--cw-accent, #5b8def) 18%, transparent);
}
body.onsites-desk .cw-mail-tpl-picker-dialog.is-empty .cw-mail-tpl-picker-tabs {
  display: flex !important;
}
body.onsites-desk .cw-mail-tpl-picker-head-text {
  min-width: 0;
}
body.onsites-desk .cw-mail-tpl-picker-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--cw-home-text, #e8eef7);
}
body.onsites-desk .cw-mail-tpl-picker-sub {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--cw-home-muted, #a8b3c4);
}
body.onsites-desk .cw-mail-tpl-picker-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--cw-home-muted, #a8b3c4);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}
body.onsites-desk .cw-mail-tpl-picker-close:hover {
  color: var(--cw-home-text, #e8eef7);
  background: var(--cw-home-hover, rgba(255, 255, 255, 0.06));
}
body.onsites-desk .cw-mail-tpl-picker-body {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  flex: 1 1 auto;
  min-height: 0;
}
body.onsites-desk .cw-mail-tpl-picker-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--cw-home-border, rgba(255, 255, 255, 0.08));
  background: color-mix(in srgb, var(--cw-home-list-bg, #12141a) 88%, transparent);
}
body.onsites-desk .cw-mail-tpl-picker-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 12px 8px;
  flex: 0 0 auto;
}
body.onsites-desk .cw-mail-tpl-picker-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 4px 8px 12px;
}
body.onsites-desk .cw-mail-tpl-picker-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 11px 12px;
  margin-bottom: 2px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--cw-home-text, #e8eef7);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
body.onsites-desk .cw-mail-tpl-picker-item:hover {
  background: var(--cw-home-hover, rgba(255, 255, 255, 0.05));
}
body.onsites-desk .cw-mail-tpl-picker-item.is-active {
  background: color-mix(in srgb, var(--cw-accent, #5b8def) 18%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cw-accent, #5b8def) 35%, transparent);
}
body.onsites-desk .cw-mail-tpl-picker-item strong {
  font-size: 13px;
  font-weight: 600;
}
body.onsites-desk .cw-mail-tpl-picker-snip,
body.onsites-desk .cw-mail-tpl-picker-preview {
  font-size: 12px;
  line-height: 1.4;
  color: var(--cw-home-muted, #a8b3c4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.onsites-desk .cw-mail-tpl-picker-preview-off {
  margin: 0;
  color: #8b93a3;
  font-size: 13px;
  line-height: 1.5;
}
body.onsites-desk .cw-mail-tpl-picker-preview-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--cw-home-list-bg, #14161c);
  color: var(--cw-home-text, #e8eef7);
  border-left: 1px solid var(--cw-home-border, rgba(255, 255, 255, 0.08));
}
body.onsites-desk .cw-mail-tpl-picker-preview-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--cw-home-border, rgba(255, 255, 255, 0.08));
  background: transparent;
  flex: 0 0 auto;
}
body.onsites-desk .cw-mail-tpl-picker-preview-meta[hidden] {
  display: none !important;
}
body.onsites-desk .cw-mail-tpl-picker-preview-meta strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--cw-home-text, #e8eef7);
}
body.onsites-desk .cw-mail-tpl-picker-preview-subj {
  font-size: 12px;
  color: var(--cw-home-muted, #a8b3c4);
}
body.onsites-desk .cw-mail-tpl-picker-preview-frame {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 20px 22px 28px;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
  color: var(--cw-home-text, #e8eef7);
  background: transparent;
}
body.onsites-desk .cw-mail-tpl-picker-preview-frame[hidden] {
  display: none !important;
}
body.onsites-desk .cw-mail-tpl-picker-preview-frame a {
  color: var(--cw-home-accent-text, #a8c7ff);
}
body.onsites-desk .cw-mail-tpl-picker-preview-frame > div {
  margin: 0;
}
body.onsites-desk .cw-mail-tpl-picker-preview-frame > div + div {
  margin-top: 0.15em;
}
body.onsites-desk .cw-mail-tpl-picker-preview-empty {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--cw-home-muted, #a8b3c4);
  font-size: 13px;
}
body.onsites-desk .cw-mail-tpl-picker-preview-empty[hidden] {
  display: none !important;
}
body.onsites-desk .cw-mail-tpl-picker-preview-empty p {
  margin: 0;
}
body.onsites-desk .cw-mail-tpl-picker-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 240px;
  padding: 36px 28px;
  text-align: center;
}
body.onsites-desk .cw-mail-tpl-picker-empty-ico {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 4px;
  border-radius: 18px;
  color: var(--cw-home-muted, #a8b3c4);
  background: var(--cw-home-hover, rgba(255, 255, 255, 0.06));
}
body.onsites-desk .cw-mail-tpl-picker-empty strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--cw-home-text, #e8eef7);
}
body.onsites-desk .cw-mail-tpl-picker-empty p {
  margin: 0;
  max-width: 280px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--cw-home-muted, #a8b3c4);
}
body.onsites-desk .cw-mail-tpl-picker-empty .cw-mail-settings-btn {
  margin-top: 8px;
}
body.onsites-desk .cw-mail-tpl-picker-empty--search {
  min-height: 120px;
  padding: 24px 16px;
}
body.onsites-desk .cw-mail-tpl-picker-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--cw-home-border, rgba(255, 255, 255, 0.08));
  flex: 0 0 auto;
  background: var(--cw-home-surface-raised, #1c1f27);
}
@media (max-width: 800px) {
  body.onsites-desk .cw-mail-tpl-picker-body {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(160px, 38%) minmax(0, 1fr);
  }
  body.onsites-desk .cw-mail-tpl-picker-side {
    border-right: 0;
    border-bottom: 1px solid var(--cw-home-border, rgba(255, 255, 255, 0.08));
  }
  body.onsites-desk .cw-mail-tpl-picker-dialog {
    height: min(860px, 94vh);
  }
}
body.onsites-desk .cw-mail-rich {
  min-height: 200px;
  max-height: 65vh;
  overflow-y: auto;
  padding: 12px 16px 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--cw-text);
  outline: none;
  word-break: break-word;
  cursor: text;
}
body.onsites-desk .cw-mail-rich:focus {
  outline: none;
}
body.onsites-desk .cw-mail-rich-resizer {
  display: block;
  position: relative;
  height: 9px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: row-resize;
  touch-action: none;
  flex-shrink: 0;
}
body.onsites-desk .cw-mail-rich-resizer::before {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  top: 4px;
  height: 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.12s ease, height 0.12s ease;
}
body.onsites-desk .cw-mail-rich-resizer:hover::before,
body.onsites-desk .cw-mail-rich-resizer.is-dragging::before {
  background: var(--cw-home-accent-text, #a8c7ff);
  height: 2px;
}
body.onsites-desk .cw-mail-rich-resizer[hidden] {
  display: none !important;
}
body.onsites-desk.cw-mail-rich-resizing,
body.onsites-desk.cw-mail-rich-resizing * {
  cursor: row-resize !important;
  user-select: none !important;
}
body.onsites-desk .cw-mail-rich:empty::before {
  content: attr(data-placeholder);
  color: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}
body.onsites-desk .cw-mail-rich a {
  color: var(--cw-home-accent-text, #a8c7ff);
  text-decoration: underline;
}
body.onsites-desk .cw-mail-rich ul,
body.onsites-desk .cw-mail-rich ol {
  margin: 4px 0;
  padding-left: 22px;
}
body.onsites-desk .cw-mail-rich blockquote {
  margin: 4px 0;
  padding-left: 10px;
  border-left: 3px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.65);
}
body.onsites-desk .cw-mail-rich div {
  min-height: 1em;
}
body.onsites-desk .cw-mail-sig-block {
  flex-shrink: 0;
  padding: 0 14px 8px;
  color: var(--cw-text-3, rgba(255, 255, 255, 0.45));
  font-size: 13px;
  line-height: 1.55;
}
body.onsites-desk .cw-mail-sig-block[hidden] {
  display: none !important;
}
body.onsites-desk .cw-mail-sig-rule {
  height: 1px;
  margin: 0 0 8px;
  background: var(--cw-hairline, rgba(255, 255, 255, 0.08));
}
body.onsites-desk .cw-mail-sig-body {
  opacity: 0.85;
  pointer-events: none;
  user-select: none;
}
body.onsites-desk .cw-mail-sig-body img {
  max-width: 100%;
  height: auto;
}
body.onsites-desk .cw-mail-item-letter .cw-mail-sig-sent {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}
body.onsites-desk .cw-mail-item-letter.is-letter .cw-mail-sig-sent,
body.onsites-desk .cw-mail-item-letter.is-text .cw-mail-sig-sent,
body.onsites-desk .cw-mail-item-letter.is-quoted .cw-mail-sig-sent {
  border-top-color: rgba(0, 0, 0, 0.12);
  color: #5c6570;
}
body.onsites-desk .cw-mail-item-letter .cw-mail-sig-sent img {
  max-width: 100%;
  height: auto;
}
body.onsites-desk .cw-reply-editor[hidden] {
  display: none !important;
}
body.onsites-desk .cw-reply-editor:not([hidden]) + .cw-mail-rich-wrap {
  display: none;
}

/* Fullscreen compose modal (Gmail-style centered editor) */
body.onsites-desk .cw-mail-fs {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
body.onsites-desk .cw-mail-fs[hidden] {
  display: none !important;
}
body.onsites-desk .cw-mail-fs-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
body.onsites-desk .cw-mail-fs-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1000px, 96vw);
  height: min(960px, 96vh);
  max-height: 96vh;
  border-radius: 0;
  border: 1px solid var(--cw-home-border, rgba(255, 255, 255, 0.1));
  background: var(--cw-home-thread-bg, #16181d);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
body.onsites-desk .cw-mail-fs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--cw-home-border, rgba(255, 255, 255, 0.08));
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}
body.onsites-desk .cw-mail-fs-head-start,
body.onsites-desk .cw-mail-fs-head-end {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
/* Save draft — fullscreen: secondary outline (Send stays primary blue) */
body.onsites-desk .cw-mail-fs-save {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cw-text, #e8eef7);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease, opacity 0.12s ease;
}
body.onsites-desk .cw-mail-fs-save:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
body.onsites-desk .cw-mail-fs-save:disabled {
  opacity: 0.5;
  cursor: default;
}
body.onsites-desk .cw-mail-fs-save svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}
body.onsites-desk .cw-mail-fs-discard:hover {
  background: rgba(255, 90, 90, 0.16);
  color: #ff8b8b;
}
body.onsites-desk .cw-mail-fs-title {
  font-size: 14px;
  font-weight: 650;
  color: var(--cw-text, #e8eef7);
}
body.onsites-desk .cw-mail-fs-send {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border: 0;
  border-radius: 0;
  background: #1a73e8;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s ease, opacity 0.12s ease;
}
body.onsites-desk .cw-mail-fs-send:hover:not(:disabled) {
  background: #1967d2;
}
body.onsites-desk .cw-mail-fs-send:disabled {
  opacity: 0.5;
  cursor: default;
}
body.onsites-desk .cw-mail-fs-send svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
body.onsites-desk .cw-mail-fs-close {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--cw-text-2, #aab6c5);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
body.onsites-desk .cw-mail-fs-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cw-text);
}
body.onsites-desk .cw-mail-fs-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}
body.onsites-desk .cw-mail-fs-fields {
  flex-shrink: 0;
  border-bottom: 1px solid var(--cw-home-border, rgba(255, 255, 255, 0.08));
}
body.onsites-desk .cw-mail-fs-fields .cw-mail-reply-head {
  margin: 0;
  padding: 0 16px;
}
body.onsites-desk .cw-mail-fs-fields .cw-mail-reply-row {
  border-bottom-color: transparent;
}
body.onsites-desk .cw-mail-fs-from {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 0 16px;
  border-bottom: 1px solid var(--cw-home-border, rgba(255, 255, 255, 0.08));
}
body.onsites-desk .cw-mail-fs-from[hidden] {
  display: none;
}
body.onsites-desk .cw-mail-fs-from label {
  color: var(--cw-text-3, #7d8a9c);
  font-size: 12px;
  width: 34px;
  flex-shrink: 0;
  text-transform: capitalize;
}
body.onsites-desk .cw-mail-from-field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
body.onsites-desk .cw-mail-from-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin: 0;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--cw-text, #e8eef7);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}
body.onsites-desk .cw-mail-from-btn:hover .cw-mail-from-btn-label {
  color: #fff;
}
body.onsites-desk .cw-mail-from-btn-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.onsites-desk .cw-mail-from-caret {
  flex-shrink: 0;
  opacity: 0.55;
}
body.onsites-desk .cw-mail-from-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  z-index: 40;
  min-width: min(320px, 70vw);
  max-width: min(420px, 90vw);
  max-height: 240px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--cw-home-border, rgba(255, 255, 255, 0.12));
  border-radius: 10px;
  background: #1a222d;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
body.onsites-desk .cw-mail-from-menu[hidden] {
  display: none !important;
}
body.onsites-desk .cw-mail-from-option {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--cw-text, #e8eef7);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
body.onsites-desk .cw-mail-from-option:hover,
body.onsites-desk .cw-mail-from-option.is-on {
  background: rgba(255, 255, 255, 0.08);
}
body.onsites-desk .cw-mail-from-option-email {
  font-size: 13px;
  font-weight: 600;
}
body.onsites-desk .cw-mail-from-option-name {
  font-size: 11px;
  color: var(--cw-text-3, #7d8a9c);
}
body.onsites-desk .cw-mail-fs-from-val {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--cw-text, #e8eef7);
  font-size: 13px;
  padding: 9px 0;
}
body.onsites-desk .cw-mail-fs-subject {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 0 16px;
  border-bottom: 1px solid var(--cw-home-border, rgba(255, 255, 255, 0.08));
}
body.onsites-desk .cw-mail-fs-subject[hidden] {
  display: none !important;
}
body.onsites-desk .cw-mail-fs-subject label {
  color: var(--cw-text-3, #7d8a9c);
  font-size: 12px;
  width: 34px;
  flex-shrink: 0;
  text-transform: capitalize;
}
body.onsites-desk .cw-mail-fs-subject input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--cw-text, #e8eef7);
  font-size: 13px;
  padding: 9px 0;
}
body.onsites-desk .cw-mail-fs-subject input::placeholder {
  color: var(--cw-text-3, #7d8a9c);
  opacity: 0.8;
}
body.onsites-desk .cw-mail-fs-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.onsites-desk .cw-mail-fs-main .cw-mail-rich-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body.onsites-desk .cw-mail-fs-main .cw-mail-rich {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding: 14px 16px 10px;
  font-size: 14px;
}
body.onsites-desk .cw-mail-fs-main .cw-mail-rich-resizer {
  display: none;
}
body.onsites-desk .cw-mail-fs-attach {
  flex-shrink: 0;
  padding: 4px 16px 0;
  border-top: 1px solid var(--cw-home-border, rgba(255, 255, 255, 0.06));
}
body.onsites-desk .cw-mail-fs-attach .cw-mail-attach-list {
  padding: 8px 0;
}
body.onsites-desk .cw-mail-fs-foot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 16px 10px;
  border-top: 1px solid var(--cw-home-border, rgba(255, 255, 255, 0.08));
  background: rgba(255, 255, 255, 0.02);
}
body.onsites-desk .cw-mail-fs-foot .cw-composer-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
body.onsites-desk .cw-mail-fs-foot .cw-file-chip {
  order: 10;
}
body.onsites-desk .cw-mail-fs-foot .cw-send-icon {
  display: none;
}
body.onsites-desk .cw-mail-fs .cw-mail-fmt--fs {
  display: none !important;
}
body.onsites-desk .cw-mail-fmt--fs {
  width: 28px;
  height: 28px;
}
body.onsites-desk.cw-mail-fs-open,
body.onsites-desk.cw-mail-fs-open * {
  cursor: default;
}
body.onsites-desk.cw-mail-fs-open input,
body.onsites-desk.cw-mail-fs-open textarea,
body.onsites-desk.cw-mail-fs-open [contenteditable="true"] {
  cursor: text;
}
body.onsites-desk.cw-mail-fs-open button,
body.onsites-desk.cw-mail-fs-open select,
body.onsites-desk.cw-mail-fs-open label {
  cursor: pointer;
}
body.onsites-desk.cw-mail-fs-open button:disabled {
  cursor: not-allowed;
}

@media (max-width: 640px) {
  body.onsites-desk .cw-mail-fs {
    padding: 0;
  }
  body.onsites-desk .cw-mail-fs-dialog {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    border: 0;
  }
}

/* (Save draft is always icon-only in the side composer) */

/* —— Dashboard · Mosaic (port of cruip/tailwind-dashboard-template) —— */
/* Independent tokens: not derived from the legacy --dash-* set. LIGHT default; dark opt-in via .is-dark. */
body.onsites-desk .cw-dash--mosaic {
  --cw-mosaic-bg: #f3f4f6;
  --cw-mosaic-card: #ffffff;
  --cw-mosaic-card-edge: #f3f4f6;
  --cw-mosaic-heading: #1f2937;
  --cw-mosaic-ink: #111827;
  --cw-mosaic-body: #374151;
  --cw-mosaic-muted: #6b7280;
  --cw-mosaic-faint: #9ca3af;
  --cw-mosaic-th-bg: #f9fafb;
  --cw-mosaic-row-hover: #f9fafb;
  --cw-mosaic-radius: 12px;
  --cw-mosaic-shadow: 0 1px 1px 0 rgb(0 0 0 / 0.05), 0 1px 2px 0 rgb(0 0 0 / 0.02);
  --cw-mosaic-shadow-hover: 0 10px 22px 0 rgb(0 0 0 / 0.08), 0 2px 6px 0 rgb(0 0 0 / 0.04);
}

/* 12-column grid */
body.onsites-desk .cw-dash--mosaic .cw-dash-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  padding: 24px;
  width: 100%;
  box-sizing: border-box;
  background: var(--cw-mosaic-bg);
}

/* Column spans */
body.onsites-desk .cw-dash--mosaic .is-4 { grid-column: span 4; }
body.onsites-desk .cw-dash--mosaic .is-6 { grid-column: span 6; }
body.onsites-desk .cw-dash--mosaic .is-8 { grid-column: span 8; }
body.onsites-desk .cw-dash--mosaic .is-12 { grid-column: span 12; }
@media (max-width: 1024px) {
  body.onsites-desk .cw-dash--mosaic .is-4,
  body.onsites-desk .cw-dash--mosaic .is-6 {
    grid-column: span 6;
  }
}
@media (max-width: 640px) {
  body.onsites-desk .cw-dash--mosaic .is-4,
  body.onsites-desk .cw-dash--mosaic .is-6,
  body.onsites-desk .cw-dash--mosaic .is-8,
  body.onsites-desk .cw-dash--mosaic .is-12 {
    grid-column: span 12;
  }
}

/* Card */
body.onsites-desk .cw-dash--mosaic .cw-dash-card {
  background: var(--cw-mosaic-card);
  border: 0;
  border-radius: var(--cw-mosaic-radius);
  box-shadow: var(--cw-mosaic-shadow);
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
body.onsites-desk .cw-dash--mosaic .cw-dash-card:hover {
  box-shadow: var(--cw-mosaic-shadow-hover);
}

/* Card header */
body.onsites-desk .cw-dash--mosaic .cw-dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--cw-mosaic-card-edge);
  flex-shrink: 0;
  min-width: 0;
}
body.onsites-desk .cw-dash--mosaic .cw-dash-card-head-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
body.onsites-desk .cw-dash--mosaic .cw-dash-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--cw-mosaic-heading);
  line-height: 1.4;
  margin: 0;
}
body.onsites-desk .cw-dash--mosaic .cw-dash-card-sub {
  font-size: 12px;
  color: var(--cw-mosaic-faint);
}

/* KPI block */
body.onsites-desk .cw-dash--mosaic .cw-dash-kpi {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
body.onsites-desk .cw-dash--mosaic .cw-dash-kpi-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
body.onsites-desk .cw-dash--mosaic .cw-dash-kpi-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--cw-mosaic-faint);
}
body.onsites-desk .cw-dash--mosaic .cw-dash-kpi-val {
  font-size: 28px;
  font-weight: 700;
  color: var(--cw-mosaic-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

/* Badge */
body.onsites-desk .cw-dash--mosaic .cw-dash-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  white-space: nowrap;
}
body.onsites-desk .cw-dash--mosaic .cw-dash-badge.is-green { color: #239f52; background: rgba(62, 201, 114, 0.2); }
body.onsites-desk .cw-dash--mosaic .cw-dash-badge.is-violet { color: #755ff8; background: rgba(132, 112, 255, 0.16); }
body.onsites-desk .cw-dash--mosaic .cw-dash-badge.is-sky { color: #3193da; background: rgba(103, 191, 255, 0.18); }
body.onsites-desk .cw-dash--mosaic .cw-dash-badge.is-red { color: #c52727; background: rgba(255, 86, 86, 0.16); }
body.onsites-desk .cw-dash--mosaic .cw-dash-badge.is-gray { color: #6b7280; background: #f3f4f6; }

/* Table */
body.onsites-desk .cw-dash--mosaic .cw-dash-tbl-wrap {
  overflow-x: auto;
  padding: 12px;
}
body.onsites-desk .cw-dash--mosaic .cw-dash-tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}
body.onsites-desk .cw-dash--mosaic .cw-dash-tbl thead th {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--cw-mosaic-faint);
  font-weight: 600;
  background: var(--cw-mosaic-th-bg);
  text-align: left;
  padding: 10px 12px;
  white-space: nowrap;
}
body.onsites-desk .cw-dash--mosaic .cw-dash-tbl thead th:first-child {
  border-radius: 8px 0 0 8px;
}
body.onsites-desk .cw-dash--mosaic .cw-dash-tbl thead th:last-child {
  border-radius: 0 8px 8px 0;
}
body.onsites-desk .cw-dash--mosaic .cw-dash-tbl tbody td {
  padding: 12px;
  font-size: 13px;
  color: var(--cw-mosaic-body);
  border-top: 1px solid var(--cw-mosaic-card-edge);
  vertical-align: middle;
}
body.onsites-desk .cw-dash--mosaic .cw-dash-tbl tbody tr:hover {
  background: var(--cw-mosaic-row-hover);
}
body.onsites-desk .cw-dash--mosaic .cw-dash-tbl .is-num { text-align: right; }
body.onsites-desk .cw-dash--mosaic .cw-dash-tbl .is-center { text-align: center; }

/* Channel icon (color supplied inline via style.background) */
body.onsites-desk .cw-dash--mosaic .cw-dash-channel-ico {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Legend pills */
body.onsites-desk .cw-dash--mosaic .cw-dash-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cw-mosaic-muted);
  background: var(--cw-mosaic-card);
  border: 1px solid var(--cw-mosaic-card-edge);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
  border-radius: 9999px;
  padding: 4px 10px;
  white-space: nowrap;
}
body.onsites-desk .cw-dash--mosaic .cw-dash-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* SVG chart body */
body.onsites-desk .cw-dash--mosaic .cw-dash-chart-body {
  flex: 1;
  min-height: 0;
  padding: 16px 8px 8px;
}
body.onsites-desk .cw-dash--mosaic .cw-dash-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Heatmap / map reuse inside mosaic cards: white card, 16px inset */
body.onsites-desk .cw-dash--mosaic .cw-dash-heat-wrap,
body.onsites-desk .cw-dash--mosaic .cw-dash-map-shell,
body.onsites-desk .cw-dash--mosaic .cw-dash-map {
  padding: 16px;
  margin: 0;
  border: 0;
  box-shadow: none;
  box-sizing: border-box;
}

/* Empty state */
body.onsites-desk .cw-dash--mosaic .cw-dash-empty {
  font-size: 13px;
  color: var(--cw-mosaic-faint);
  padding: 24px;
  text-align: center;
}

/* Dark tokens (opt-in via .is-dark; LIGHT is the default) */
body.onsites-desk .cw-dash--mosaic.is-dark {
  --cw-mosaic-bg: #111827;
  --cw-mosaic-card: #1f2937;
  --cw-mosaic-card-edge: rgba(55, 65, 81, 0.6);
  --cw-mosaic-heading: #e5e7eb;
  --cw-mosaic-ink: #f3f4f6;
  --cw-mosaic-body: #d1d5db;
  --cw-mosaic-muted: #9ca3af;
  --cw-mosaic-faint: #6b7280;
  --cw-mosaic-th-bg: rgba(55, 65, 81, 0.5);
  --cw-mosaic-row-hover: rgba(55, 65, 81, 0.4);
  --cw-mosaic-shadow: 0 1px 1px 0 rgb(0 0 0 / 0.4), 0 1px 2px 0 rgb(0 0 0 / 0.2);
  --cw-mosaic-shadow-hover: 0 10px 22px 0 rgb(0 0 0 / 0.5), 0 2px 6px 0 rgb(0 0 0 / 0.25);
}

/* muji (desk-admin-shell): keep white cards + gray text, never wood tones */
body.onsites-desk.desk-admin-shell .cw-dash--mosaic .cw-dash-card {
  background: #ffffff;
  box-shadow: var(--cw-mosaic-shadow);
}
body.onsites-desk.desk-admin-shell .cw-dash--mosaic .cw-dash-card-head {
  border-bottom-color: #f3f4f6;
}
body.onsites-desk.desk-admin-shell .cw-dash--mosaic .cw-dash-card-title {
  color: #1f2937;
}
body.onsites-desk.desk-admin-shell .cw-dash--mosaic .cw-dash-kpi-val {
  color: #111827;
}
body.onsites-desk.desk-admin-shell .cw-dash--mosaic .cw-dash-tbl thead th {
  background: #f9fafb;
}
body.onsites-desk.desk-admin-shell .cw-dash--mosaic .cw-dash-tbl tbody td {
  color: #374151;
}

/* ===== Mosaic geo map polish =====
   Scoped to the dashboard geo card (.cw-dash--mosaic .cw-dash-geo-card). The extra
   .cw-dash-geo-card keeps specificity above desk-muji-rail.css and the legacy base
   map rules, so the modern light look wins on /dashboard without touching the
   visitors / agent / requests pages. JS `#pane-dashboard` selectors still win for
   the layout props they set (shell padding / border-radius / min-height). */

/* --- Ocean / backdrop: soft gradient + dot graticule. The JS writes the ocean fill
   with setAttribute() (an SVG presentation attribute), which CSS overrides, so we
   let the map's own gradient show through as the ocean instead of flat #edf2f7. --- */
body.onsites-desk .cw-dash--mosaic .cw-dash-geo-card .cw-dash-map-shell {
  min-height: 300px;
  background: linear-gradient(160deg, #fbfdff 0%, #f3f7fc 55%, #edf2f8 100%);
}
body.onsites-desk .cw-dash--mosaic .cw-dash-geo-card .cw-dash-map-ocean {
  fill: transparent;
}

/* --- Map frame: inset the svg in a rounded card with a hairline ring + soft lift --- */
body.onsites-desk .cw-dash--mosaic .cw-dash-geo-card .cw-dash-map {
  min-height: 300px;
  padding: 12px 14px 20px;
}
body.onsites-desk .cw-dash--mosaic .cw-dash-geo-card .cw-dash-map-svg {
  border-radius: 12px;
  background-image:
    radial-gradient(rgba(100, 116, 139, 0.06) 1px, rgba(100, 116, 139, 0) 1.5px),
    linear-gradient(160deg, #f9fbfe 0%, #eef3f9 55%, #e5ecf5 100%);
  background-size: 16px 16px, auto;
  background-repeat: repeat, no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(148, 163, 184, 0.22),
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 16px 32px -18px rgba(15, 23, 42, 0.28);
}

/* --- Countries: crisp outline, gentle hover glow, smooth data transitions --- */
body.onsites-desk .cw-dash--mosaic .cw-dash-geo-card .cw-dash-map-country {
  fill: #dbe3ec;
  stroke: rgba(148, 163, 184, 0.55);
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
  paint-order: fill stroke;
  transition:
    fill 0.25s ease,
    stroke 0.18s ease,
    stroke-width 0.18s ease,
    filter 0.2s ease,
    opacity 0.3s ease;
}
body.onsites-desk .cw-dash--mosaic .cw-dash-geo-card .cw-dash-map-country.has-data {
  animation: cw-dash-map-in 0.5s ease both;
  animation-delay: var(--map-delay, 0ms);
}
body.onsites-desk .cw-dash--mosaic .cw-dash-geo-card .cw-dash-map-country.has-data:hover,
body.onsites-desk .cw-dash--mosaic .cw-dash-geo-card .cw-dash-map-country.is-hot {
  stroke: rgba(51, 65, 85, 0.9);
  stroke-width: 1.1;
  filter: brightness(1.06) drop-shadow(0 0 5px rgba(14, 165, 233, 0.4));
}

/* --- Legend: small caps chip with a wider blue → violet gradient bar --- */
body.onsites-desk .cw-dash--mosaic .cw-dash-geo-card .cw-dash-map-legend {
  gap: 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: #64748b;
}
body.onsites-desk .cw-dash--mosaic .cw-dash-geo-card .cw-dash-map-legend--float {
  left: 12px;
  bottom: 16px;
  z-index: 3;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 6px 18px -8px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(8px) saturate(1.3);
  -webkit-backdrop-filter: blur(8px) saturate(1.3);
}
body.onsites-desk .cw-dash--mosaic .cw-dash-geo-card .cw-dash-map-legend-bar {
  width: 84px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9 0%, #6366f1 52%, #8b5cf6 100%);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25);
}

/* --- Tooltip: dark glass with blur, hairline edge, soft arrow --- */
body.onsites-desk .cw-dash--mosaic .cw-dash-geo-card .cw-dash-map-tip {
  min-width: 140px;
  max-width: 210px;
  padding: 9px 12px 11px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 2px 6px rgba(15, 23, 42, 0.14),
    0 14px 34px -8px rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
}
body.onsites-desk .cw-dash--mosaic .cw-dash-geo-card .cw-dash-map-tip-top {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}
body.onsites-desk .cw-dash--mosaic .cw-dash-geo-card .cw-dash-map-tip-meta {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
body.onsites-desk .cw-dash--mosaic .cw-dash-geo-card .cw-dash-map-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 11px;
  height: 11px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(15, 23, 42, 0.82);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0 0 3px 0;
  pointer-events: none;
}

/* --- Header stats: quiet pill chips --- */
body.onsites-desk .cw-dash--mosaic .cw-dash-geo-card .cw-dash-map-stats {
  gap: 8px;
}
body.onsites-desk .cw-dash--mosaic .cw-dash-geo-card .cw-dash-map-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: none;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}
body.onsites-desk .cw-dash--mosaic .cw-dash-geo-card .cw-dash-map-stat strong {
  font-family: var(--cw-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1e293b;
}

/* --- Narrow: single-column split, slightly shorter map --- */
@media (max-width: 1023px) {
  body.onsites-desk .cw-dash--mosaic .cw-dash-geo-card .cw-dash-map-shell,
  body.onsites-desk .cw-dash--mosaic .cw-dash-geo-card .cw-dash-map {
    min-height: 240px !important;
  }
}
