body[data-surface="workspace"],
body[data-surface="admin"] {
  width: 100%;
  height: 100dvh;
  min-height: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

#workspaceShell {
  --wc-sky: #35b8ff;
  --wc-sky-bright: #0fa6ff;
  --wc-blue: #087cf0;
  --wc-blue-deep: #1454c8;
  --wc-ice: #eaf7ff;
  --wc-ice-soft: #f7fbff;
  --wc-ink: #10283f;
  --wc-muted: #647a90;
  --wc-line: #c2dceb;
  --wc-white: #ffffff;
  --wc-yellow: #ffda57;
  --wc-coral: #ff7358;
  --wc-shadow: 0 24px 70px rgba(29, 93, 143, .16);
  /* Compatibility aliases keep any server-rendered legacy utility inside the
     isolated shell on the approved C palette. */
  --primary: var(--wc-blue);
  --primary-dark: var(--wc-blue-deep);
  --text: var(--wc-ink);
  --muted: var(--wc-muted);
  --line: var(--wc-line);
  --panel: var(--wc-white);
  --surface: var(--wc-ice-soft);
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  overflow: hidden;
  color: var(--wc-ink);
  background: var(--wc-white);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
  contain: layout paint style;
}

#workspaceShell.hidden { display: none !important; }
#workspaceShell *,
#workspaceShell *::before,
#workspaceShell *::after { box-sizing: border-box; }
#workspaceShell button,
#workspaceShell input,
#workspaceShell select,
#workspaceShell textarea { font: inherit; color: inherit; }
#workspaceShell :where(button, input, select, textarea) {
  margin: 0;
  box-shadow: none;
  transform: none;
  text-transform: none;
}
#workspaceShell :where(button) {
  appearance: none;
  cursor: pointer;
}
#workspaceShell :where(input, select, textarea) { accent-color: var(--wc-blue); }
#workspaceShell :where(button, a, [tabindex]):focus { outline: 0; }
#workspaceShell :where(button, a, [tabindex]):focus-visible {
  outline: 2px solid var(--wc-sky-bright);
  outline-offset: 2px;
}
#workspaceShell :where(input, select, textarea):focus { outline: 0; }
#workspaceShell :where(input, select, textarea):focus-visible {
  border-color: var(--wc-blue) !important;
  box-shadow: 0 0 0 3px rgba(8, 124, 240, .14) !important;
}
#workspaceShell svg { width: 17px; height: 17px; stroke-width: 1.8; }
#workspaceShell .hidden { display: none !important; }
#workspaceShell .wc-danger { color: #c55343; }
#workspaceShell .wc-primary { color: #fff; border-color: var(--wc-blue); background: var(--wc-blue); }
#workspaceShell .empty-state { padding: 30px 20px; color: var(--wc-muted); font-size: 11px; line-height: 1.6; text-align: center; }

/* Isolate the approved workstation from the legacy application's unscoped
   header/main/section grid rules. Component rules below rebuild each surface. */
#workspaceShell :where(header) {
  position: static;
  inset: auto;
  z-index: auto;
  grid-column: auto;
  grid-row: auto;
  width: auto;
  max-width: none;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  display: block;
  flex: none;
  flex-direction: row;
  align-items: stretch;
  justify-content: normal;
  gap: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transform: none;
}
#workspaceShell :where(main) {
  position: static;
  inset: auto;
  grid-column: auto;
  grid-row: auto;
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: block;
  flex: none;
  flex-direction: row;
  align-items: stretch;
  justify-content: normal;
  align-content: normal;
  gap: 0;
  overflow: visible;
  transform: none;
}
#workspaceShell :where(section) {
  position: static;
  inset: auto;
  width: auto;
  max-width: none;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  display: block;
  flex: none;
  flex-direction: row;
  align-items: stretch;
  justify-content: normal;
  gap: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

/* C-workstation overlays live beside the shell in the document. They receive
   the same sky-blue visual system without inheriting the retired UI themes. */
body[data-surface="workspace"] .modal-layer,
body[data-surface="admin"] .modal-layer {
  --overlay-blue: #087cf0;
  --overlay-sky: #35b8ff;
  --overlay-ice: #eaf7ff;
  --overlay-ink: #10283f;
  --overlay-muted: #647a90;
  --overlay-line: #c2dceb;
  --primary: var(--overlay-blue);
  --primary-dark: #1454c8;
  --text: var(--overlay-ink);
  --muted: var(--overlay-muted);
  --line: var(--overlay-line);
  --panel: #ffffff;
  position: fixed;
  inset: 0;
  z-index: 1200;
  padding: 20px;
  display: grid;
  place-items: center;
  color: var(--overlay-ink);
  background: rgba(10, 35, 58, .48);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
body[data-surface="workspace"] .modal-layer.hidden,
body[data-surface="admin"] .modal-layer.hidden { display: none !important; }
body[data-surface="workspace"] .modal-dialog,
body[data-surface="admin"] .modal-dialog {
  width: min(680px, 100%);
  max-height: min(820px, calc(100dvh - 40px));
  overflow: auto;
  border: 1px solid var(--overlay-line);
  border-radius: 14px;
  color: var(--overlay-ink);
  background: #fff;
  box-shadow: 0 28px 80px rgba(16, 68, 110, .24);
}
body[data-surface="workspace"] .modal-dialog.account-dialog,
body[data-surface="admin"] .modal-dialog.account-dialog { width: min(900px, 100%); }
body[data-surface="workspace"] .modal-head,
body[data-surface="admin"] .modal-head {
  min-height: 82px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--overlay-line);
  background: #fff;
}
body[data-surface="workspace"] .modal-head h2,
body[data-surface="admin"] .modal-head h2 { margin: 0; font-size: 20px; line-height: 1.25; letter-spacing: -.025em; }
body[data-surface="workspace"] .modal-head p,
body[data-surface="admin"] .modal-head p { margin: 5px 0 0; color: var(--overlay-muted); font-size: 12px; line-height: 1.55; }
body[data-surface="workspace"] .modal-body,
body[data-surface="admin"] .modal-body { padding: 20px; }
body[data-surface="workspace"] .modal-foot,
body[data-surface="admin"] .modal-foot {
  min-height: 66px;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  border-top: 1px solid var(--overlay-line);
  background: #f7fbff;
}
body[data-surface="workspace"] .modal-layer :where(button, input, select, textarea),
body[data-surface="admin"] .modal-layer :where(button, input, select, textarea) {
  margin: 0;
  font: inherit;
  color: inherit;
  box-shadow: none;
  transform: none;
}
body[data-surface="workspace"] .modal-layer :where(input, select, textarea),
body[data-surface="admin"] .modal-layer :where(input, select, textarea) {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #b9d6e7;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  accent-color: var(--overlay-blue);
}
body[data-surface="workspace"] .modal-layer textarea,
body[data-surface="admin"] .modal-layer textarea { min-height: 96px; line-height: 1.55; resize: vertical; }
body[data-surface="workspace"] .modal-layer :where(input, select, textarea):focus-visible,
body[data-surface="admin"] .modal-layer :where(input, select, textarea):focus-visible {
  border-color: var(--overlay-blue) !important;
  box-shadow: 0 0 0 3px rgba(8, 124, 240, .14) !important;
}
body[data-surface="workspace"] .modal-layer button,
body[data-surface="admin"] .modal-layer button,
body[data-surface="workspace"] .modal-layer .button-link,
body[data-surface="admin"] .modal-layer .button-link {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #b9d6e7;
  border-radius: 8px;
  color: #36566d;
  background: #fff;
  font-size: 12px;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}
body[data-surface="workspace"] .modal-layer button:focus-visible,
body[data-surface="admin"] .modal-layer button:focus-visible,
body[data-surface="workspace"] .modal-layer .button-link:focus-visible,
body[data-surface="admin"] .modal-layer .button-link:focus-visible {
  outline: 2px solid var(--overlay-sky);
  outline-offset: 2px;
}
body[data-surface="workspace"] .modal-layer :is(button.primary, .primary),
body[data-surface="admin"] .modal-layer :is(button.primary, .primary) {
  color: #fff !important;
  border-color: var(--overlay-blue) !important;
  background: var(--overlay-blue) !important;
  box-shadow: 0 7px 0 #caeaff !important;
}
body[data-surface="workspace"] .modal-layer :is(button.danger, .danger),
body[data-surface="admin"] .modal-layer :is(button.danger, .danger) {
  color: #b94d43 !important;
  border-color: #e8aaa3 !important;
  background: #fff4f2 !important;
}
body[data-surface="workspace"] .modal-layer .icon-button,
body[data-surface="admin"] .modal-layer .icon-button {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
}
body[data-surface="workspace"] .modal-layer .field-group,
body[data-surface="admin"] .modal-layer .field-group {
  padding: 14px;
  border: 1px solid #d6e7f0;
  border-radius: 10px;
  background: #fbfdff;
}
body[data-surface="workspace"] .modal-layer .hint-box,
body[data-surface="admin"] .modal-layer .hint-box {
  padding: 11px 12px;
  border: 1px solid #b8d9eb;
  border-radius: 8px;
  color: #496b82;
  background: #eef8ff;
  font-size: 11px;
  line-height: 1.55;
}

/* C-native notifications remain outside the isolated application shells. */
body[data-surface="workspace"] .toast-stack,
body[data-surface="admin"] .toast-stack {
  position: fixed;
  top: 82px;
  right: 18px;
  z-index: 1600;
  width: min(360px, calc(100vw - 28px));
  display: grid;
  gap: 8px;
  pointer-events: none;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
body[data-surface="workspace"] .app-toast,
body[data-surface="admin"] .app-toast {
  min-height: 48px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  border: 1px solid #b8d9eb;
  border-radius: 9px;
  color: #36566d;
  background: #fff;
  box-shadow: 0 16px 38px rgba(16, 68, 110, .18);
  animation: wcToastIn .18s ease-out;
}
body[data-surface="workspace"] .app-toast svg,
body[data-surface="admin"] .app-toast svg { width: 17px; height: 17px; color: #087cf0; }
body[data-surface="workspace"] .app-toast.success svg,
body[data-surface="admin"] .app-toast.success svg { color: #0f7feb; }
body[data-surface="workspace"] .app-toast.error,
body[data-surface="admin"] .app-toast.error { border-color: #efc1bb; background: #fff7f5; }
body[data-surface="workspace"] .app-toast.error svg,
body[data-surface="admin"] .app-toast.error svg { color: #d9534a; }
body[data-surface="workspace"] .app-toast span,
body[data-surface="admin"] .app-toast span { font-size: 12px; line-height: 1.55; }

@keyframes wcToastIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Template-native C shell */
#workspaceShell .wc-rail {
  position: relative;
  z-index: 20;
  grid-column: 1;
  grid-row: 1;
  min-height: 0;
  padding: 18px 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  overflow: visible;
  color: #fff;
  background: var(--wc-blue);
}

#workspaceShell .wc-rail-mark {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: #fff;
}

#workspaceShell .wc-brand-mark {
  width: 27px;
  height: 23px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  transform: scale(.78) skew(-8deg);
}

#workspaceShell .wc-brand-mark i { width: 8px; display: block; border-radius: 3px 3px 1px 1px; background: var(--wc-blue); }
#workspaceShell .wc-brand-mark i:nth-child(1) { height: 13px; background: var(--wc-sky); }
#workspaceShell .wc-brand-mark i:nth-child(2) { height: 23px; }
#workspaceShell .wc-brand-mark i:nth-child(3) { height: 17px; background: var(--wc-coral); }

#workspaceShell .wc-primary-nav { margin-top: 37px; display: grid; gap: 9px; }
#workspaceShell .wc-primary-nav .wc-nav-item,
#workspaceShell .wc-rail-button {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: #c7e8ff;
  background: transparent;
}

#workspaceShell .wc-primary-nav .wc-nav-item.active,
#workspaceShell .wc-primary-nav .wc-nav-item:hover,
#workspaceShell .wc-rail-button.active,
#workspaceShell .wc-rail-button:hover,
#workspaceShell .wc-rail-account.active { color: var(--wc-blue); background: #fff; }

#workspaceShell .wc-primary-nav .wc-nav-item.active::before {
  content: "";
  position: absolute;
  left: -15px;
  width: 6px;
  height: 22px;
  border-radius: 0 6px 6px 0;
  background: var(--wc-yellow);
}

#workspaceShell .wc-rail-bottom { position: relative; width: 100%; margin-top: auto; display: grid; place-items: center; gap: 8px; }
#workspaceShell .wc-rail-menu { position: relative; }
#workspaceShell .wc-rail-popover {
  position: absolute;
  z-index: 80;
  left: 54px;
  bottom: -6px;
  width: 238px;
  padding: 9px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--wc-line);
  border-radius: 12px;
  color: var(--wc-ink);
  background: #fff;
  box-shadow: 0 18px 45px rgba(22, 82, 132, .18);
}

#workspaceShell .wc-rail-popover > span { padding: 7px 9px 5px; color: #8195a4; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
#workspaceShell .wc-rail-popover .wc-nav-item,
#workspaceShell .wc-popover-card,
#workspaceShell .wc-popover-utilities button {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 8px;
  color: #567287;
  background: transparent;
  font-size: 10.5px;
  text-align: left;
}

#workspaceShell .wc-rail-popover .wc-nav-item:hover,
#workspaceShell .wc-rail-popover .wc-nav-item.active,
#workspaceShell .wc-popover-card:hover,
#workspaceShell .wc-popover-utilities button:hover { color: var(--wc-blue); background: var(--wc-ice); }
#workspaceShell .wc-popover-card b { font-size: 10.5px; }
#workspaceShell .wc-popover-card em { margin-left: auto; color: var(--wc-blue); font-size: 8.5px; font-style: normal; }
#workspaceShell .wc-popover-card .nav-card-state,
#workspaceShell .wc-popover-card .nav-card-state.ready {
  min-height: 20px;
  padding: 2px 7px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border-radius: 20px;
  color: var(--wc-blue);
  background: #e4f5ff;
}
#workspaceShell .wc-popover-card .nav-card-state svg { width: 11px; height: 11px; }
#workspaceShell .wc-popover-utilities { margin-top: 5px; padding-top: 5px; display: grid; border-top: 1px solid #e0ebf2; }

#workspaceShell .wc-rail-account {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
}

#workspaceShell .wc-rail-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--wc-blue); background: #fff; font-size: 10px; font-weight: 850; }
#workspaceShell .wc-account-contract { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#workspaceShell .wc-frame { grid-column: 2; grid-row: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
#workspaceShell .wc-topbar {
  flex: 0 0 68px;
  height: 68px;
  min-height: 68px;
  padding: 0 25px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--wc-line);
  background: #fff;
}

#workspaceShell .wc-wordmark {
  width: auto;
  min-height: 0;
  height: auto;
  flex: 0 0 auto;
  justify-content: flex-start;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--wc-ink);
  background: transparent;
  box-shadow: none;
  font-size: 17px;
  font-weight: 830;
  letter-spacing: -.045em;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
}
#workspaceShell .wc-wordmark b { color: var(--wc-blue); }
#workspaceShell .wc-workspace-switch { min-width: 0; margin-left: 28px; padding-left: 28px; display: flex; align-items: center; gap: 7px; border-left: 1px solid #d4e3ec; }
#workspaceShell .wc-workspace-switch h1,
#workspaceShell .wc-workspace-switch p { margin: 0; white-space: nowrap; }
#workspaceShell .wc-workspace-switch h1 { font-size: 12px; font-weight: 780; }
#workspaceShell .wc-workspace-switch span,
#workspaceShell .wc-workspace-switch p { color: #8193a1; font-size: 11px; }

#workspaceShell .wc-global-search {
  width: min(410px, 36vw);
  height: 37px;
  margin-left: auto;
  padding: 0 10px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #c2d9e7;
  border-radius: 8px;
  color: #738b9c;
  background: #f8fcff;
  font-size: 11px;
  text-align: left;
}

#workspaceShell .wc-global-search kbd { margin-left: auto; padding: 3px 6px; border: 1px solid #d0e0e9; border-radius: 5px; color: #8ba0af; background: #fff; font: 9px/1.2 inherit; }
#workspaceShell .wc-top-actions { margin-left: 12px; display: flex; align-items: center; gap: 8px; }
#workspaceShell .wc-service-state { max-width: 160px; color: #708799; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#workspaceShell .wc-icon-button,
#workspaceShell .wc-square-button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #b5d3e4;
  border-radius: 8px;
  background: #fff;
}

#workspaceShell .wc-primary-button {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--wc-blue);
  border-radius: 8px;
  color: #fff;
  background: var(--wc-blue);
  font-size: 11px;
  font-weight: 800;
  flex: 0 0 auto;
  white-space: nowrap;
}

#workspaceShell .wc-team-action { display: none; }
#workspaceShell[data-current-page="team"] .wc-team-action:not(.hidden) { display: inline-flex; }
#workspaceShell main.wc-page-host {
  grid-column: auto;
  grid-row: auto;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  flex: 1;
  display: block;
  align-content: normal;
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
}
#workspaceShell .page-view { width: 100%; height: 100%; min-width: 0; min-height: 0; color: var(--wc-ink); background: #fff; }

/* Customer business desk — exact C split */
#workspaceShell .wc-customer-workspace { width: 100%; height: 100%; display: grid; grid-template-columns: 310px minmax(440px, 1fr) 340px; overflow: hidden; }
#workspaceShell .wc-customer-column { min-width: 0; min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--wc-line); background: #fff; }
#workspaceShell .wc-customer-column:last-child { border-right: 0; }
#workspaceShell .wc-column-head { min-height: 72px; padding: 15px 18px; display: flex; align-items: center; border-bottom: 1px solid var(--wc-line); }
#workspaceShell .wc-column-head > div { min-width: 0; }
#workspaceShell .wc-column-head h2 { margin: 0; font-size: 23px; line-height: 1.1; letter-spacing: -.035em; }
#workspaceShell .wc-column-head span { display: block; margin-top: 5px; color: #8193a2; font-size: 10px; }
#workspaceShell .wc-column-head span b { color: var(--wc-blue); }
#workspaceShell .wc-column-head > button { position: relative; margin-left: auto; }
#workspaceShell .lead-filter-count { position: absolute; right: -5px; top: -5px; min-width: 17px; height: 17px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 20px; color: #fff; background: var(--wc-blue); font-size: 8px; font-style: normal; }

#workspaceShell .wc-customer-search { height: 44px; margin: 10px 13px 8px; padding: 0 8px 0 10px; display: flex; align-items: center; gap: 8px; border: 1px solid #b9d6e7; border-radius: 8px; background: #f8fcff; }
#workspaceShell .wc-customer-search > svg { flex: 0 0 auto; width: 14px; color: #7890a3; }
#workspaceShell .wc-customer-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 10.5px; }
#workspaceShell .wc-customer-search button { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border: 0; border-radius: 7px; color: #fff; background: var(--wc-blue); }
#workspaceShell .wc-customer-search button svg { width: 13px; }

#workspaceShell .wc-customer-filter { min-height: 45px; height: 45px; padding: 0 13px; display: grid; grid-template-columns: repeat(3, auto); align-items: center; gap: 19px; overflow: hidden; border-bottom: 1px solid #dce8ef; scrollbar-width: none; }
#workspaceShell .wc-customer-filter::-webkit-scrollbar { display: none; }
#workspaceShell .wc-customer-filter button { flex: 0 0 auto; padding: 0; display: flex; align-items: center; gap: 5px; border: 0; color: #8193a1; background: transparent; font-size: 10.5px; white-space: nowrap; }
#workspaceShell .wc-customer-filter button:nth-child(n+4) { display: none; }
#workspaceShell .wc-customer-filter button.active { color: var(--wc-blue); font-weight: 850; }
#workspaceShell .wc-customer-filter button span { min-width: 18px; padding: 3px 5px; border-radius: 10px; color: var(--wc-blue); background: #e3f4ff; font-size: 8.5px; }

#workspaceShell .wc-lead-filters { position: absolute; z-index: 30; top: 72px; left: 12px; width: 286px; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; border: 1px solid var(--wc-line); border-radius: 10px; background: #fff; box-shadow: 0 16px 38px rgba(22, 82, 132, .16); }
#workspaceShell .wc-customer-list-column { position: relative; }
#workspaceShell .wc-lead-filters select { min-width: 0; height: 35px; padding: 0 7px; border: 1px solid #b8d5e6; border-radius: 7px; background: #fff; font-size: 9px; }
#workspaceShell .wc-lead-filters .wc-customer-search { grid-column: 1 / -1; width: auto; height: 40px; margin: 0 0 2px; }
#workspaceShell .wc-selection-bar { padding: 8px 12px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #b5d5e7; color: var(--wc-blue); background: #eaf7ff; font-size: 9px; }
#workspaceShell .wc-selection-bar > div { margin-left: auto; display: flex; gap: 4px; }
#workspaceShell .wc-selection-bar button { width: 27px; height: 27px; padding: 0; display: grid; place-items: center; border: 1px solid #acd0e5; border-radius: 6px; background: #fff; font-size: 8px; }
#workspaceShell .wc-selection-bar button:first-child { width: auto; padding: 0 7px; }
#workspaceShell .wc-selection-bar svg { width: 12px; }

#workspaceShell .wc-customer-stream { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; }
#workspaceShell #leadTable { width: 100%; min-width: 0 !important; display: block; border: 0; border-collapse: collapse; table-layout: auto; }
#workspaceShell #leadTable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#workspaceShell #leadTable tbody { width: 100%; display: block; }
#workspaceShell #leadTable tbody tr {
  position: relative;
  width: 100% !important;
  height: auto !important;
  min-height: 0;
  padding: 0 !important;
  display: block !important;
  border-bottom: 1px solid #e0ebf2;
  background: #fff;
  cursor: pointer;
}

#workspaceShell #leadTable tbody tr:hover,
#workspaceShell #leadTable tbody tr.selected { background: var(--wc-ice); }
#workspaceShell #leadTable tbody tr:hover > td,
#workspaceShell #leadTable tbody tr.selected > td,
#workspaceShell #leadTable tbody tr.teammate-lead > td,
#workspaceShell #leadTable tbody tr.teammate-lead:hover > td,
#workspaceShell #leadTable tbody tr.teammate-lead.selected > td { background: transparent !important; }
#workspaceShell #leadTable tbody tr.selected::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--wc-blue); }
#workspaceShell #leadTable td { min-width: 0; padding: 0; border: 0; font-size: 9px; vertical-align: top; }
#workspaceShell #leadTable td[colspan="5"] {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  display: block !important;
  margin: 0;
  padding: 0 !important;
  overflow: visible !important;
}
#workspaceShell #leadTable input[type="checkbox"] { accent-color: var(--wc-blue); }
#workspaceShell .wc-lead-card {
  width: 100%;
  min-width: 0;
  min-height: 96px;
  padding: 13px 12px;
  display: grid;
  grid-template-columns: 18px 38px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  background: transparent;
}
#workspaceShell .wc-lead-card > input { margin-top: 11px; }
#workspaceShell .wc-lead-card .company-avatar { margin-top: 1px; }
#workspaceShell .wc-lead-card-copy { min-width: 0; }
#workspaceShell .wc-lead-card-title { display: flex; align-items: center; gap: 7px; min-width: 0; }
#workspaceShell .wc-lead-card-title .lead-cell-main { flex: 1; }
#workspaceShell .wc-lead-card-market { margin-top: 5px; display: flex; align-items: center; gap: 5px; min-width: 0; color: #617b8e; font-size: 9.5px; }
#workspaceShell .wc-lead-card-market span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#workspaceShell .wc-lead-card-market i { width: 3px; height: 3px; flex: 0 0 auto; border-radius: 50%; background: #9bb6c7; }
#workspaceShell .wc-lead-card-tags { margin-top: 7px; display: flex; align-items: center; justify-content: space-between; gap: 7px; min-width: 0; }
#workspaceShell .wc-lead-card-date { color: #8196a5; font-size: 8px; }
#workspaceShell .wc-lead-card-action { align-self: center; }
#workspaceShell .lead-company-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }
#workspaceShell .company-avatar,
#workspaceShell .wc-company-logo { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: var(--wc-blue); background: #dff2ff; font-size: 9px; font-weight: 850; }
#workspaceShell .lead-cell-main,
#workspaceShell .lead-cell-sub { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#workspaceShell .lead-cell-main { color: var(--wc-ink); font-size: 12.5px; line-height: 1.3; }
#workspaceShell .lead-cell-sub { margin-top: 3px; color: #7c91a1; font-size: 9px; }
#workspaceShell .source-chip,
#workspaceShell .channel-chip,
#workspaceShell .owner-chip,
#workspaceShell #leadTable .badge { display: inline-flex; align-items: center; padding: 4px 6px; border-radius: 20px; color: #2673a6; background: #e2f3ff; font-size: 8px; font-weight: 760; }
#workspaceShell .source-chip { margin-top: 4px; }
#workspaceShell .wc-lead-card .source-chip { margin-top: 0; }
#workspaceShell .owner-chip::before { background: #75b9df !important; }
#workspaceShell .owner-chip.teammate::before { background: #8ca0ad !important; }
#workspaceShell .lead-contact-cell { display: flex; align-items: center; gap: 6px; }
#workspaceShell .lead-contact-cell > div { min-width: 0; }
#workspaceShell .contact-channels,
#workspaceShell .buyer-fit-line { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
#workspaceShell .lead-row-whatsapp { width: 27px; height: 27px; margin-left: auto; display: grid; place-items: center; border: 1px solid #b7d6e8; border-radius: 7px; color: var(--wc-blue); background: #fff; }

#workspaceShell .wc-lead-pagination { min-height: 45px; padding: 0 10px; display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--wc-line); color: #7d91a1; background: #f8fcff; font-size: 8.5px; }
#workspaceShell .wc-lead-pagination > span:first-child { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#workspaceShell .wc-lead-pagination label { display: none; }
#workspaceShell .wc-lead-pagination button { width: 26px; height: 26px; padding: 0; display: grid; place-items: center; border: 1px solid #bad7e7; border-radius: 6px; background: #fff; }
#workspaceShell .wc-lead-pagination svg { width: 12px; }

#workspaceShell .wc-company-column { position: relative; }
#workspaceShell .wc-company-empty { margin: auto; max-width: 360px; padding: 30px; text-align: center; }
#workspaceShell .wc-company-empty-icon { width: 54px; height: 54px; margin: 0 auto 15px; display: grid; place-items: center; border-radius: 14px; color: var(--wc-blue); background: var(--wc-ice); }
#workspaceShell .wc-company-empty-icon svg { width: 24px; height: 24px; }
#workspaceShell .wc-company-empty h2 { margin: 0; font-size: 22px; }
#workspaceShell .wc-company-empty p { margin: 9px 0 0; color: var(--wc-muted); font-size: 11px; line-height: 1.7; }
#workspaceShell .wc-company-column:has(#leadDetailDrawer:not(.hidden)) .wc-company-empty { display: none; }
#workspaceShell #leadDrawerBackdrop { display: none !important; }
#workspaceShell #leadDetailDrawer { position: static; inset: auto; z-index: auto; width: 100%; height: 100%; min-width: 0; min-height: 0; display: flex; flex-direction: column; transform: none; box-shadow: none; background: #fff; }

#workspaceShell .wc-company-hero.lead-summary { width: 100%; min-height: 93px; margin: 0; padding: 18px 20px; display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 13px; border: 0; border-bottom: 1px solid #d8e6ee; border-radius: 0; background: #fff; }
#workspaceShell .wc-company-hero .wc-company-logo { width: 52px; height: 52px; font-size: 12px; }
#workspaceShell .wc-company-name { min-width: 0; flex: 1; }
#workspaceShell .wc-company-name h2 { margin: 0; font-size: 25px; line-height: 1.15; letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#workspaceShell .wc-company-name p { margin: 5px 0 0; color: #748b9c; font-size: 11px; line-height: 1.45; }
#workspaceShell .wc-company-actions { min-width: max-content; margin-left: auto; display: flex; flex: 0 0 auto; flex-wrap: nowrap; align-items: center; gap: 7px; }
#workspaceShell .wc-company-actions button,
#workspaceShell .wc-detail-save-actions button,
#workspaceShell .wc-contact-actions button,
#workspaceShell #reportLeadQuality { min-height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #9ec8e2; border-radius: 8px; background: #fff; font-size: 10px; font-weight: 760; }
#workspaceShell .wc-company-actions button { width: auto; height: 36px; min-height: 36px; flex: 0 0 auto; white-space: nowrap; }
#workspaceShell .wc-company-actions #closeLeadDrawer { width: 36px; padding: 0; }
#workspaceShell .wc-company-actions button.wc-primary,
#workspaceShell .wc-contact-actions button.wc-primary { color: #fff; border-color: var(--wc-blue); background: var(--wc-blue); }
#workspaceShell .wc-company-actions svg,
#workspaceShell .wc-contact-actions svg { width: 13px; }

#workspaceShell .wc-company-tabs.wc-detail-tabs { width: 100%; min-height: 45px; margin: 0; padding: 0 20px; display: flex; align-items: flex-end; gap: 22px; border-bottom: 1px solid #dce8ef; }
#workspaceShell .wc-company-tabs > button.wc-detail-tab { height: 45px; padding: 0; border: 0; border-bottom: 3px solid transparent; color: #7890a1; background: transparent; font-size: 10.5px; font-weight: 750; }
#workspaceShell .wc-company-tabs > button.wc-detail-tab.active { color: var(--wc-ink); border-color: var(--wc-blue); }
#workspaceShell .wc-company-tabs > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#workspaceShell .wc-detail-save-actions { margin-left: auto; padding-bottom: 5px; display: flex; gap: 6px; }
#workspaceShell .wc-detail-save-actions button { min-height: 32px; }
#workspaceShell .wc-detail-save-actions button:first-child { width: 32px; padding: 0; }
#workspaceShell .wc-detail-save-actions button.wc-primary { color: #fff; border-color: var(--wc-blue); background: var(--wc-blue); }

#workspaceShell .wc-company-detail { flex: 1; min-height: 0; padding: 17px 20px 24px; overflow: auto; }
#workspaceShell .wc-fit-summary { position: relative; padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: start; gap: 14px; border: 1px solid #9bc9e5; border-radius: 10px; background: #f5fbff; }
#workspaceShell .wc-fit-summary > div:first-child > span { color: var(--wc-blue); font-size: 10px; font-weight: 850; }
#workspaceShell .wc-fit-summary h3 { margin: 8px 0 6px; font-size: 18px; line-height: 1.3; }
#workspaceShell .wc-fit-summary p { margin: 0; color: #6b8395; font-size: 11px; line-height: 1.7; }
#workspaceShell .wc-fit-score { width: 64px; min-width: 64px; height: 64px; padding: 0; display: grid; place-items: center; align-content: center; gap: 2px; border: 7px solid #c7e9ff; border-radius: 50%; color: var(--wc-blue); }
#workspaceShell .wc-fit-score strong { margin: 0; overflow: visible; font-size: 14px; line-height: 1; white-space: nowrap; }
#workspaceShell .wc-fit-score small { display: block; font-size: 7px; line-height: 1; white-space: nowrap; word-break: keep-all; }
#workspaceShell .wc-fit-summary > .qualification-badge { position: static; align-self: start; padding: 4px 7px; border-radius: 20px; color: var(--wc-blue); background: #e2f3ff; font-size: 8px; white-space: nowrap; }
#workspaceShell .wc-fit-summary dl { grid-column: 1 / -1; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
#workspaceShell .wc-fit-summary dl div { padding-top: 9px; display: flex; justify-content: space-between; border-top: 1px solid #d8e7ef; font-size: 9px; }
#workspaceShell .wc-fit-summary dt { color: var(--wc-muted); }
#workspaceShell .wc-fit-summary dd { margin: 0; font-weight: 800; }

#workspaceShell .wc-permission-notice,
#workspaceShell .wc-assignment-panel { margin-top: 12px; padding: 12px; border: 1px solid var(--wc-line); border-radius: 9px; background: #f8fcff; }
#workspaceShell .wc-permission-notice { display: flex; align-items: center; gap: 8px; color: #557286; font-size: 10px; }
#workspaceShell .wc-assignment-panel { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
#workspaceShell .wc-assignment-panel strong,
#workspaceShell .wc-assignment-panel span { display: block; }
#workspaceShell .wc-assignment-panel strong { font-size: 11px; }
#workspaceShell .wc-assignment-panel span { margin-top: 3px; color: var(--wc-muted); font-size: 9px; }
#workspaceShell .wc-assignment-panel > div:last-child { grid-column: 1 / -1; display: flex; gap: 7px; }
#workspaceShell .wc-tag { padding: 5px 8px; border-radius: 20px; color: var(--wc-blue); background: #e5f5ff; font-size: 8px; }

#workspaceShell .wc-detail-grid { margin-top: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
#workspaceShell .wc-detail-card { min-width: 0; padding: 15px; border: 1px solid #d0e1eb; border-radius: 10px; background: #fff; }
#workspaceShell .wc-detail-card > span { display: block; margin-bottom: 12px; color: #8092a0; font-size: 9.5px; font-weight: 850; letter-spacing: .12em; }
#workspaceShell .wc-detail-card h3 { margin: 0 0 7px; font-size: 14px; }
#workspaceShell .wc-detail-card p { margin: 0 0 10px; color: var(--wc-muted); font-size: 10px; line-height: 1.6; }
#workspaceShell .wc-detail-card label { display: grid; gap: 5px; margin-top: 9px; color: #60798c; font-size: 9px; }
#workspaceShell .wc-detail-card input,
#workspaceShell .wc-detail-card select,
#workspaceShell .wc-detail-card textarea { width: 100%; min-width: 0; min-height: 36px; padding: 8px 9px; border: 1px solid #b7d2e3; border-radius: 7px; outline: 0; background: #fff; font-size: 10.5px; }
#workspaceShell .wc-detail-card textarea { min-height: 76px; resize: vertical; line-height: 1.55; }
#workspaceShell .wc-detail-card input:focus,
#workspaceShell .wc-detail-card select:focus,
#workspaceShell .wc-detail-card textarea:focus { border-color: var(--wc-blue); box-shadow: 0 0 0 3px rgba(8, 124, 240, .09); }
#workspaceShell .wc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#workspaceShell .wc-contact-actions { margin-top: 11px; display: flex; flex-wrap: wrap; gap: 6px; }
#workspaceShell #leadQualityReason { width: 100%; min-height: 36px; padding: 0 8px; border: 1px solid #b7d2e3; border-radius: 7px; font-size: 9px; }
#workspaceShell #reportLeadQuality { width: 100%; margin-top: 8px; }
#workspaceShell .wc-activity-empty { min-height: 260px; display: grid; place-items: center; }
#workspaceShell .wc-lead-activity { display: grid; gap: 14px; }
#workspaceShell .wc-activity-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
#workspaceShell .wc-activity-stat { padding: 13px; border: 1px solid #cfe1ec; border-radius: 9px; background: #f8fcff; }
#workspaceShell .wc-activity-stat span { display: block; color: var(--wc-muted); font-size: 9px; }
#workspaceShell .wc-activity-stat strong { display: block; margin-top: 6px; color: var(--wc-ink); font-size: 21px; }
#workspaceShell .wc-activity-status { padding: 11px 12px; border: 1px solid #b8d9eb; border-radius: 8px; color: #496b82; background: #eef8ff; font-size: 10px; line-height: 1.55; }
#workspaceShell .wc-activity-timeline { display: grid; }
#workspaceShell .wc-activity-item { position: relative; min-height: 62px; padding: 0 0 15px 24px; }
#workspaceShell .wc-activity-item:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: -1px; width: 1px; background: #cfe2ed; }
#workspaceShell .wc-activity-dot { position: absolute; left: 1px; top: 5px; width: 11px; height: 11px; border: 3px solid #dff2ff; border-radius: 50%; background: var(--wc-blue); }
#workspaceShell .wc-activity-dot.opened,
#workspaceShell .wc-activity-dot.reply { background: var(--wc-sky); }
#workspaceShell .wc-activity-dot.bounce { border-color: #ffe3de; background: var(--wc-coral); }
#workspaceShell .wc-activity-copy strong { display: block; color: var(--wc-ink); font-size: 11px; }
#workspaceShell .wc-activity-copy > span { display: block; margin-top: 4px; color: var(--wc-muted); font-size: 9px; line-height: 1.45; }
#workspaceShell .wc-activity-copy p { margin: 7px 0 0; padding: 8px 9px; border-radius: 7px; color: #536f83; background: #f5faff; font-size: 9px; line-height: 1.55; }
#workspaceShell .wc-empty-state { min-height: 180px; display: grid; place-items: center; color: var(--wc-muted); font-size: 11px; }

#workspaceShell .wc-ai-column { background: #f6fbff; }
#workspaceShell .wc-ai-head { min-height: 72px; padding: 15px 17px; display: flex; align-items: center; color: #fff; background: var(--wc-ink); }
#workspaceShell .wc-ai-head h2 { margin: 0; font-size: 17px; }
#workspaceShell .wc-ai-head span { display: block; margin-top: 4px; color: #aabfce; font-size: 9.5px; }
#workspaceShell .wc-ai-head em { margin-left: auto; padding: 5px 8px; border-radius: 20px; color: #07365b; background: var(--wc-sky); font-size: 9px; font-style: normal; font-weight: 850; }
#workspaceShell .wc-ai-context { padding: 12px 14px; display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid #d8e7ef; background: #fff; }
#workspaceShell .wc-ai-context span { padding: 6px 8px; border-radius: 20px; color: #33739f; background: #e5f5ff; font-size: 9px; }
#workspaceShell .wc-ai-thread { flex: 1; min-height: 0; padding: 16px; display: grid; align-content: start; gap: 12px; overflow: auto; }
#workspaceShell .wc-ai-message { padding: 13px; border: 1px solid #c8deeb; border-radius: 10px 10px 10px 3px; background: #fff; font-size: 11.5px; line-height: 1.7; }
#workspaceShell .wc-ai-message.ai { border-color: #9bcbed; background: #e8f6ff; }
#workspaceShell .wc-ai-message.user { margin-left: 22px; border-radius: 10px 10px 3px 10px; border-color: #b5d8ef; background: #f5fbff; }
#workspaceShell .wc-ai-message .wc-ai-citations { margin-top: 9px; display: grid; gap: 5px; }
#workspaceShell .wc-ai-message .wc-ai-citations a { color: #176fa8; font-size: 9px; line-height: 1.45; text-decoration: underline; text-underline-offset: 2px; }
#workspaceShell .wc-ai-message > span { margin-bottom: 8px; display: flex; align-items: center; gap: 6px; color: var(--wc-blue); font-size: 9px; font-weight: 850; }
#workspaceShell .wc-ai-message p { margin: 0; }
#workspaceShell .wc-ai-suggestions { display: flex; flex-wrap: wrap; gap: 6px; }
#workspaceShell .wc-ai-suggestions button { padding: 7px 9px; border: 1px solid #b6d5e7; border-radius: 20px; color: #496b82; background: #fff; font-size: 9.5px; }
#workspaceShell .wc-ai-suggestions button:disabled,
#workspaceShell .wc-ai-compose button:disabled,
#workspaceShell .wc-search-results-head button:disabled,
#workspaceShell .wc-result-filter button:disabled { cursor: not-allowed; opacity: .48; }
#workspaceShell .wc-ai-compose { padding: 13px; border-top: 1px solid var(--wc-line); background: #fff; }
#workspaceShell .wc-ai-compose > div { min-height: 68px; padding: 10px; display: flex; flex-direction: column; border: 1px solid #a9cee5; border-radius: 9px; color: #899ba9; font-size: 10.5px; }
#workspaceShell .wc-ai-compose textarea { width: 100%; min-height: 32px; resize: none; border: 0; outline: 0; color: var(--wc-ink); background: transparent; font: inherit; line-height: 1.5; }
#workspaceShell .wc-ai-compose textarea::placeholder { color: #899ba9; }
#workspaceShell .wc-ai-compose footer span { max-width: 210px; overflow: hidden; color: #7890a1; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
#workspaceShell .wc-ai-compose footer { margin-top: auto; display: flex; align-items: center; }
#workspaceShell .wc-ai-compose footer button { width: 27px; height: 27px; margin-left: auto; display: grid; place-items: center; border: 0; border-radius: 7px; color: #fff; background: var(--wc-blue); }
#workspaceShell .wc-customer-metrics { padding: 9px 13px 13px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: #fff; }
#workspaceShell .wc-customer-metrics span { padding: 8px 5px; border: 1px solid #d0e1eb; border-radius: 8px; color: #748a9a; font-size: 7.5px; text-align: center; }
#workspaceShell .wc-customer-metrics b { display: block; margin-top: 4px; color: var(--wc-ink); font-size: 14px; }

/* AI search — exact three-column C extension */
#workspaceShell .wc-search-workspace { width: 100%; height: 100%; display: grid; grid-template-columns: 320px minmax(500px, 1fr) 340px; overflow: hidden; background: #f7fbfe; }
#workspaceShell .wc-search-column { min-width: 0; min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--wc-line); background: #fff; }
#workspaceShell .wc-search-column:last-child { border-right: 0; }
#workspaceShell .wc-search-quota { margin-left: auto; max-width: 100px; color: var(--wc-blue); font-size: 8.5px; font-style: normal; text-align: right; }
#workspaceShell .wc-search-form { padding: 18px; overflow-x: hidden; overflow-y: auto; }
#workspaceShell .wc-search-field { display: block; margin-bottom: 14px; }
#workspaceShell .wc-search-field > span { display: block; margin-bottom: 7px; color: #506b80; font-size: 11px; font-weight: 760; }
#workspaceShell .wc-search-field > div:not(.wc-market-picker) { min-height: 48px; padding: 0 12px; display: flex; align-items: center; gap: 9px; border: 1px solid #accfe4; border-radius: 9px; background: #fff; }
#workspaceShell .wc-search-field > div > svg { flex: 0 0 auto; width: 15px; color: #6f8ca0; }
#workspaceShell .wc-search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 12.5px; font-weight: 650; }
#workspaceShell .wc-search-field b { font-size: 11.5px; }
#workspaceShell .wc-search-field small { margin-left: auto; color: #7f95a5; font-size: 9px; }
#workspaceShell .wc-search-duo { display: grid; grid-template-columns: 1fr .72fr; gap: 9px; }

#workspaceShell .wc-market-picker { overflow: visible; border: 1px solid #a9cfe5; border-radius: 10px; background: #fff; }
#workspaceShell .wc-market-selected { width: 100%; min-height: 52px; padding: 0 11px; display: flex; align-items: center; border: 0; border-bottom: 1px solid #d5e5ee; border-radius: 10px 10px 0 0; background: #f7fbfe; text-align: left; }
#workspaceShell .wc-market-selected > img { width: 25px; height: 17px; flex: 0 0 auto; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(16, 40, 63, .12); }
#workspaceShell .wc-market-selected > span { min-width: 0; margin-left: 10px; }
#workspaceShell .wc-market-selected > span > strong,
#workspaceShell .wc-market-selected > span > span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#workspaceShell .wc-market-selected > span > strong { color: var(--wc-ink); font-size: 13px; }
#workspaceShell .wc-market-selected > span > span { margin-top: 2px; color: #7b90a0; font-size: 12px; }
#workspaceShell .wc-market-selected small,
#workspaceShell .wc-market-selected b { display: block; }
#workspaceShell .wc-market-selected small { margin: 0; color: #7b90a0; font-size: 8.5px; }
#workspaceShell .wc-market-selected b { margin-top: 3px; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#workspaceShell .wc-market-selected > svg { width: 14px; margin-left: auto; color: var(--wc-blue); }
#workspaceShell .wc-country-panel { position: fixed; z-index: 90; width: min(660px, calc(100vw - 32px)); max-height: 560px; padding: 0; overflow: hidden; border: 1px solid #a9cfe5; border-radius: 10px; box-shadow: 0 20px 50px rgba(16, 72, 118, .18); background: #fff; }
#workspaceShell .wc-country-search { height: 38px; margin: 7px; padding: 0 8px; display: flex; align-items: center; gap: 7px; border: 1px solid #bdd8e7; border-radius: 7px; background: #f8fcff; }
#workspaceShell .wc-country-search svg { width: 13px; color: #7b91a2; }
#workspaceShell .wc-country-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 9.5px; }
#workspaceShell .wc-country-options { height: 196px; padding: 0 7px 7px; overflow: auto; }
#workspaceShell .wc-country-footer { min-height: 44px; padding: 7px 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #dceaf2; background: #f7fbfe; }
#workspaceShell .wc-country-footer span { color: #6e8799; font-size: 9px; }
#workspaceShell .wc-country-footer b { color: var(--wc-blue); }
#workspaceShell .wc-country-footer button { height: 30px; padding: 0 13px; border: 0; border-radius: 7px; color: #fff; background: var(--wc-blue); font-size: 9px; font-weight: 800; }
#workspaceShell .country-picker-group { margin-top: 7px; }
#workspaceShell .country-picker-group h4 { position: sticky; top: 0; z-index: 1; margin: 0 0 5px; padding: 4px 5px; color: var(--wc-blue); background: rgba(255, 255, 255, .94); font-size: 8px; letter-spacing: .08em; }
#workspaceShell .country-picker-group > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
#workspaceShell .country-picker-option { min-width: 0; height: 35px; padding: 0 6px; display: grid; grid-template-columns: 21px minmax(0, 1fr) auto; gap: 6px; align-items: center; border: 1px solid transparent; border-radius: 7px; color: #526d81; background: #fff; text-align: left; }
#workspaceShell .country-picker-option:hover,
#workspaceShell .country-picker-option.selected { color: var(--wc-blue); border-color: #78bce7; background: #e7f6ff; }
#workspaceShell .country-picker-option img { width: 21px; height: 14px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(16, 40, 63, .12); }
#workspaceShell .country-picker-option strong { min-width: 0; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#workspaceShell .country-picker-option small,
#workspaceShell .country-picker-option em { display: none; }
#workspaceShell .country-picker-option > svg { width: 11px; color: var(--wc-blue); opacity: 0; }
#workspaceShell .country-picker-option.selected > svg { opacity: 1; }

#workspaceShell .wc-localized-preview { margin: 1px 0 13px; padding: 11px; display: flex; gap: 8px; border: 1px solid #afd0e3; border-radius: 9px; color: #587487; background: #f6fbff; }
#workspaceShell .wc-localized-preview svg { flex: 0 0 auto; width: 15px; color: var(--wc-blue); }
#workspaceShell .wc-localized-preview p { margin: 0; font-size: 9.5px; line-height: 1.55; }
#workspaceShell .multi-market-progress { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 7px; }
#workspaceShell .multi-market-progress > span { min-width: 0; padding: 8px 9px; display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 2px 7px; align-items: center; border: 1px solid #d3e4ee; border-radius: 8px; background: #fff; }
#workspaceShell .multi-market-progress img { grid-row: 1 / span 2; width: 22px; height: 15px; object-fit: cover; border-radius: 2px; }
#workspaceShell .multi-market-progress b,
#workspaceShell .multi-market-progress small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#workspaceShell .multi-market-progress b { color: var(--wc-ink); font-size: 10px; }
#workspaceShell .multi-market-progress small { color: #7890a2; font-size: 8px; }
#workspaceShell .multi-market-progress > span.running { border-color: #6bb7e7; background: #edf8ff; }
#workspaceShell .multi-market-progress > span.done { border-color: #9fd4bd; background: #f0fbf6; }
#workspaceShell .multi-market-progress > span.error { border-color: #efb8ad; background: #fff6f3; }
#workspaceShell .wc-search-submit { width: 100%; height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 8px; font-size: 12px; font-weight: 820; box-shadow: 0 6px 0 #c8eaff; }
#workspaceShell .wc-recent-searches { margin-top: 25px; }
#workspaceShell .wc-recent-searches > span { display: block; margin-bottom: 8px; color: #8396a4; font-size: 9px; font-weight: 820; letter-spacing: .11em; }
#workspaceShell #searchRecentTasks { display: grid; }
#workspaceShell #searchRecentTasks .recent-search-row { width: 100%; min-height: 52px; padding: 9px 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 8px; align-items: center; border: 0; border-top: 1px solid #e0ebf2; color: var(--wc-ink); background: transparent; text-align: left; }
#workspaceShell #searchRecentTasks .recent-search-row > span:first-child { min-width: 0; }
#workspaceShell #searchRecentTasks .recent-search-row strong,
#workspaceShell #searchRecentTasks .recent-search-row .muted { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#workspaceShell #searchRecentTasks .recent-country,
#workspaceShell #searchRecentTasks .recent-type,
#workspaceShell #searchRecentTasks .recent-time,
#workspaceShell #searchRecentTasks .green { font-size: 11px; }
#workspaceShell #searchRecentTasks .recent-type,
#workspaceShell #searchRecentTasks .recent-time { color: #7890a2; }
#workspaceShell #searchRecentTasks .recent-time { grid-column: 1; }
#workspaceShell #searchRecentTasks .green { grid-column: 2; color: var(--wc-blue); font-weight: 800; }
#workspaceShell .wc-recent-searches p { min-width: 0; margin: 0; }
#workspaceShell .wc-recent-searches b,
#workspaceShell .wc-recent-searches small { display: block; }
#workspaceShell .wc-recent-searches b { font-size: 10.5px; }
#workspaceShell .wc-recent-searches small { margin-top: 3px; color: #8194a3; font-size: 8.5px; }
#workspaceShell .wc-recent-searches time { margin-left: auto; color: #8295a5; font-size: 8.5px; }

#workspaceShell .wc-search-results-head { min-height: 75px; padding: 16px 21px; display: flex; align-items: center; border-bottom: 1px solid var(--wc-line); }
#workspaceShell .wc-search-query-title { min-width: 0; display: flex; align-items: center; gap: 11px; }
#workspaceShell .wc-search-query-title > i { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--wc-blue); }
#workspaceShell .wc-search-query-title h2 { margin: 0; font-size: 22px; }
#workspaceShell .wc-search-query-title p { margin: 4px 0 0; color: #768c9c; font-size: 10px; }
#workspaceShell .wc-search-results-head > div:last-child { margin-left: auto; display: flex; gap: 7px; }
#workspaceShell .wc-search-results-head > div:last-child button,
#workspaceShell .wc-result-footer button { min-height: 36px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #a9cee5; border-radius: 8px; color: #49697f; background: #fff; font-size: 9.5px; font-weight: 760; }
#workspaceShell .wc-search-results-head button svg { width: 13px; }

#workspaceShell .wc-search-progress { padding: 12px 21px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid #d9e7ef; background: #f8fcff; }
#workspaceShell .wc-search-progress .progress-step { position: relative; min-width: 0; display: flex; align-items: center; gap: 7px; color: #627b8e; font-size: 9.5px; font-weight: 720; white-space: nowrap; }
#workspaceShell .wc-search-progress .progress-step::after { content: ""; position: static; inset: auto; min-width: 0; height: 1px; flex: 1; margin: 0 9px; background: #afd3e8; }
#workspaceShell .wc-search-progress .progress-step:last-child::after { display: none; }
#workspaceShell .wc-search-progress .progress-step > span { width: 22px; height: 22px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--wc-blue); background: #dff2ff; font-size: 8px; font-weight: 850; }
#workspaceShell .wc-search-progress .progress-step.active > span,
#workspaceShell .wc-search-progress .progress-step.complete > span { color: #fff; background: var(--wc-blue); }
#workspaceShell .wc-search-progress .progress-step.complete { color: var(--wc-blue); }
#workspaceShell .wc-search-progress svg { width: 11px; }

#workspaceShell .wc-result-filter { min-height: 50px; padding: 0 21px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid #dce8ef; }
#workspaceShell .wc-result-filter b { font-size: 12px; }
#workspaceShell .wc-result-filter > span { margin-right: auto; color: #7b8f9f; font-size: 10px; }
#workspaceShell .wc-result-filter button { padding: 6px 9px; border: 1px solid #c2dae8; border-radius: 20px; color: #5f7a8d; background: #fff; font-size: 9px; }
#workspaceShell .wc-result-filter button.active { color: var(--wc-blue); border-color: #8cc8eb; background: #e4f5ff; font-weight: 800; }
#workspaceShell .wc-query-list { flex: 1; min-height: 0; padding: 0 21px; overflow: auto; }
#workspaceShell .wc-search-empty { min-height: 330px; display: flex; align-items: center; justify-content: center; flex-direction: column; }
#workspaceShell .wc-search-empty > svg { width: 34px; height: 34px; margin-bottom: 13px; color: var(--wc-blue); }
#workspaceShell .wc-search-empty strong { font-size: 15px; }
#workspaceShell .wc-search-empty span { max-width: 380px; margin-top: 7px; color: var(--wc-muted); font-size: 10.5px; line-height: 1.6; text-align: center; }

#workspaceShell .search-running { margin: 18px 0; padding: 14px; border: 1px solid #a9cee5; border-radius: 10px; background: #f6fbff; font-size: 10.5px; }
#workspaceShell .running-bar { height: 5px; margin-top: 12px; overflow: hidden; border-radius: 20px; background: #d9e9f2; }
#workspaceShell .running-bar::before { content: ""; display: block; width: 62%; height: 100%; border-radius: inherit; background: var(--wc-blue); }
#workspaceShell .stream-result-head { min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid #dce8ef; color: var(--wc-blue); font-size: 10px; }
#workspaceShell .stream-result-head span { display: flex; align-items: center; gap: 6px; }
#workspaceShell .stream-result-head strong { margin-left: auto; font-size: 17px; }
#workspaceShell .result-summary { margin: 14px 0 5px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
#workspaceShell .result-stat { padding: 11px; border: 1px solid var(--wc-line); border-radius: 9px; background: #fff; }
#workspaceShell .result-stat span,
#workspaceShell .result-stat strong { display: block; }
#workspaceShell .result-stat span { color: var(--wc-muted); font-size: 8.5px; }
#workspaceShell .result-stat strong { margin-top: 6px; font-size: 19px; }
#workspaceShell .skip-summary { margin: 8px 0; padding: 10px 12px; border-left: 3px solid var(--wc-sky); color: #587388; background: #f1f9fe; font-size: 9.5px; line-height: 1.55; }

#workspaceShell .search-result-table-wrap { width: 100%; overflow: auto; }
#workspaceShell .search-result-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
#workspaceShell .search-result-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#workspaceShell .search-result-table tr { min-height: 103px; border-bottom: 1px solid #dfeaf1; }
#workspaceShell .search-result-table td { padding: 15px 9px; color: #496679; font-size: 9.5px; vertical-align: middle; }
#workspaceShell .search-result-table td:nth-child(1) { width: 23%; }
#workspaceShell .search-result-table td:nth-child(2) { width: 37%; }
#workspaceShell .search-result-table td:nth-child(3) { width: 27%; }
#workspaceShell .search-result-table td:nth-child(4) { width: 13%; }
#workspaceShell .search-company-cell strong,
#workspaceShell .search-company-cell a,
#workspaceShell .search-company-cell small { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#workspaceShell .search-company-cell strong { color: var(--wc-ink); font-size: 12px; }
#workspaceShell .search-company-cell a { margin-top: 5px; color: var(--wc-blue); font-size: 9px; text-decoration: none; }
#workspaceShell .search-company-cell small { margin-top: 4px; color: var(--wc-muted); font-size: 8.5px; }
#workspaceShell .search-buyer-head { display: flex; align-items: center; gap: 6px; }
#workspaceShell .search-buyer-head strong { font-size: 10.5px; }
#workspaceShell .search-buyer-scores { margin-top: 5px; display: flex; gap: 6px; flex-wrap: wrap; color: var(--wc-blue); font-size: 8.5px; }
#workspaceShell .search-buyer-cell p { margin: 6px 0 0; display: -webkit-box; color: #60798d; font-size: 9px; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#workspaceShell .search-buyer-cell > small { display: block; margin-top: 4px; color: #8295a5; font-size: 8px; }
#workspaceShell .search-evidence-link { margin-top: 5px; display: flex; align-items: center; gap: 4px; color: var(--wc-blue); font-size: 8px; text-decoration: none; }
#workspaceShell .search-evidence-link svg { width: 10px; }
#workspaceShell .search-contact-cell span { margin: 5px 0; display: flex; align-items: center; gap: 5px; color: #246f9f; font-size: 9px; }
#workspaceShell .search-contact-cell svg { width: 12px; }
#workspaceShell .search-result-action { text-align: right; }
#workspaceShell .search-result-action button { width: 34px; height: 34px; margin-top: 6px; display: grid; place-items: center; border: 1px solid #a9cee5; border-radius: 8px; background: #fff; }
#workspaceShell .search-data-empty { color: #8a9dab; font-size: 8.5px; }
#workspaceShell .google-maps-attribution { padding: 7px 0; color: #7c91a1; font-size: 8px; text-align: right; }

#workspaceShell .wc-result-footer { min-height: 53px; padding: 0 21px; display: flex; align-items: center; border-top: 1px solid #cde0eb; color: #637d90; background: #f5fbff; font-size: 10px; }
#workspaceShell .wc-result-footer > svg { width: 15px; margin-right: 8px; color: var(--wc-blue); }
#workspaceShell .wc-result-footer b { color: var(--wc-ink); }
#workspaceShell .wc-result-footer button { margin-left: auto; color: #fff; border-color: var(--wc-blue); background: var(--wc-blue); }

#workspaceShell .wc-search-ai { background: #f6fbff; }
#workspaceShell .wc-search-ai-head { min-height: 82px; padding: 17px 18px; display: flex; align-items: center; color: #fff; background: var(--wc-ink); }
#workspaceShell .wc-search-ai-head > i { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: #07365b; background: var(--wc-sky); }
#workspaceShell .wc-search-ai-head > div { margin-left: 10px; }
#workspaceShell .wc-search-ai-head h2 { margin: 0; font-size: 16px; }
#workspaceShell .wc-search-ai-head span { display: block; margin-top: 4px; color: #aec3d1; font-size: 9.5px; }
#workspaceShell .wc-search-ai-head em { margin-left: auto; padding: 5px 8px; border-radius: 20px; color: #07365b; background: var(--wc-sky); font-size: 9px; font-style: normal; font-weight: 850; }
#workspaceShell .wc-search-ai-body { flex: 1; min-height: 0; padding: 17px; overflow: auto; }
#workspaceShell .wc-ai-plan-block { padding-bottom: 17px; margin-bottom: 17px; border-bottom: 1px solid #d4e5ee; }
#workspaceShell .wc-ai-plan-block > span { display: block; margin-bottom: 10px; color: #718899; font-size: 9px; font-weight: 850; letter-spacing: .1em; }
#workspaceShell .wc-ai-plan-block h3 { margin: 0 0 8px; font-size: 15px; }
#workspaceShell .wc-ai-plan-block > strong { display: block; color: var(--wc-blue); font-size: 12px; }
#workspaceShell .wc-ai-plan-block p { margin: 7px 0 0; color: #617b8e; font-size: 11px; line-height: 1.7; }
#workspaceShell .wc-search-intel-state { display: flex; align-items: center; gap: 7px; color: var(--wc-blue); font-size: 10px; }
#workspaceShell .wc-search-intel-state em { font-style: normal; }
#workspaceShell .wc-search-intel-state em > i { width: 6px; height: 6px; margin-right: 5px; display: inline-block; border-radius: 50%; background: var(--wc-blue); }
#workspaceShell .wc-search-intent-list { margin-top: 10px; display: grid; gap: 6px; }
#workspaceShell .wc-search-intent-list span { padding: 9px; display: block; border: 1px solid #bdd8e7; border-radius: 8px; color: #557286; background: #fff; font-size: 9.5px; line-height: 1.55; }
#workspaceShell .wc-search-intent-list span b,
#workspaceShell .wc-search-intent-list span em { display: block; }
#workspaceShell .wc-search-intent-list span b { margin-bottom: 4px; color: var(--wc-blue); }
#workspaceShell .wc-search-intent-list span em { margin-top: 4px; color: #8194a3; font-size: 8.5px; font-style: normal; }
#workspaceShell .wc-ai-plan-summary { padding: 10px; border: 1px solid #9bcce7; border-radius: 8px; background: #eaf7ff; }
#workspaceShell .wc-ai-plan-summary > strong { display: block; color: #07365b; font-size: 12px; line-height: 1.4; }
#workspaceShell .wc-ai-plan-counts { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
#workspaceShell .wc-ai-plan-counts i { padding: 4px 7px; border-radius: 20px; color: #246f9f; background: #fff; font-size: 10px; font-style: normal; font-weight: 800; white-space: nowrap; }
#workspaceShell .wc-ai-plan-preview,
#workspaceShell .wc-ai-plan-items { display: grid; gap: 6px; }
#workspaceShell .wc-ai-plan-preview { margin-top: 8px; }
#workspaceShell .wc-ai-plan-details { margin-top: 8px; }
#workspaceShell .wc-ai-plan-details summary { cursor: pointer; color: var(--wc-blue); font-size: 11px; font-weight: 800; list-style-position: inside; }
#workspaceShell .wc-ai-plan-details[open] summary { margin-bottom: 8px; }
#workspaceShell .wc-ai-plan-preview > span,
#workspaceShell .wc-ai-plan-items > span { padding: 9px; display: block; border: 1px solid #bdd8e7; border-radius: 8px; color: #557286; background: #fff; font-size: 9.5px; line-height: 1.55; }
#workspaceShell .wc-ai-plan-preview > span b,
#workspaceShell .wc-ai-plan-preview > span em,
#workspaceShell .wc-ai-plan-items > span b,
#workspaceShell .wc-ai-plan-items > span em { display: block; }
#workspaceShell .wc-ai-plan-preview > span b,
#workspaceShell .wc-ai-plan-items > span b { margin-bottom: 4px; color: var(--wc-blue); }
#workspaceShell .wc-ai-plan-preview > span em,
#workspaceShell .wc-ai-plan-items > span em { margin-top: 4px; color: #8194a3; font-size: 8.5px; font-style: normal; }
#workspaceShell .wc-search-route { display: grid; }
#workspaceShell .wc-search-route > div { padding: 9px 0; display: flex; gap: 10px; border-top: 1px solid #e0eaf1; }
#workspaceShell .wc-search-route > div > i { width: 22px; height: 22px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--wc-blue); background: #e2f4ff; font-size: 8px; font-style: normal; font-weight: 850; }
#workspaceShell .wc-search-route p { margin: 0; }
#workspaceShell .wc-search-route b,
#workspaceShell .wc-search-route small { display: block; }
#workspaceShell .wc-search-route b { font-size: 11px; }
#workspaceShell .wc-search-route small { margin-top: 4px; color: #728899; font-size: 9.5px; line-height: 1.45; }
#workspaceShell .wc-plan-note { margin-top: 14px; padding: 12px; border: 1px solid #a6cfe6; border-radius: 9px; background: #fff; }
#workspaceShell .wc-plan-note span { display: flex; align-items: center; gap: 6px; color: var(--wc-blue); font-size: 9px; font-weight: 850; }
#workspaceShell .wc-plan-note svg { width: 13px; }
#workspaceShell .wc-plan-note p { margin: 8px 0 0; font-size: 10.5px; line-height: 1.65; }
#workspaceShell .wc-adjust-plan { min-height: 52px; margin: 0 14px 14px; padding: 0 11px; display: flex; align-items: center; border: 1px solid #a9cee5; border-radius: 8px; color: #7b91a2; background: #fff; font-size: 10px; }
#workspaceShell .wc-adjust-plan input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--wc-ink); background: transparent; font: inherit; }
#workspaceShell .wc-adjust-plan input::placeholder { color: #7b91a2; }
#workspaceShell .wc-adjust-plan button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 7px; color: #fff; background: var(--wc-blue); }
#workspaceShell .wc-adjust-plan button:disabled { cursor: wait; opacity: .55; }
#workspaceShell .wc-adjust-plan svg { width: 14px; color: currentColor; }
#workspaceShell .wc-ai-inline-status { margin: -7px 14px 14px; padding: 9px 10px; border: 1px solid #c6deeb; border-radius: 7px; color: #496b82; background: #f4faff; font-size: 9px; line-height: 1.55; }
#workspaceShell .wc-ai-inline-status.error { border-color: #efc5c5; color: #9c3e3e; background: #fff5f5; }
#workspaceShell .wc-ai-inline-status p { margin: 0; }
#workspaceShell .wc-ai-inline-actions { margin-top: 8px; display: flex; gap: 7px; }
#workspaceShell .wc-ai-inline-actions button { min-height: 30px; padding: 0 10px; border: 1px solid #9cc9e6; border-radius: 6px; color: #286d9d; background: #fff; font-size: 10px; font-weight: 750; }
#workspaceShell .wc-ai-inline-actions button:first-child { border-color: var(--wc-blue); color: #fff; background: var(--wc-blue); }

@media (max-width: 1180px) {
  #workspaceShell .wc-service-state { display: none; }
  #workspaceShell .wc-customer-workspace { grid-template-columns: 280px minmax(440px, 1fr); }
  #workspaceShell .wc-ai-column { display: none; }
  #workspaceShell .wc-search-workspace { grid-template-columns: 300px minmax(500px, 1fr); }
  #workspaceShell .wc-search-ai { display: none; }
}

@media (max-width: 900px) {
  #workspaceShell .wc-global-search { width: min(300px, 34vw); }
  #workspaceShell .wc-workspace-switch { margin-left: 16px; padding-left: 16px; }
  #workspaceShell .wc-workspace-switch p,
  #workspaceShell .wc-workspace-switch > span { display: none; }
  #workspaceShell .wc-detail-grid { grid-template-columns: 1fr; }
  #workspaceShell .wc-search-workspace { grid-template-columns: minmax(0, 1fr); overflow-x: hidden; overflow-y: auto; }
  #workspaceShell .wc-search-setup,
  #workspaceShell .wc-search-results { min-height: calc(100dvh - 68px); }
}

@media (max-width: 780px) {
  #workspaceShell { height: 100dvh; min-height: 0; grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) 64px; overflow: hidden; }
  #workspaceShell .wc-frame { grid-column: 1; grid-row: 1; height: 100%; min-height: 0; overflow: hidden; }
  #workspaceShell .wc-rail {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    height: 64px;
    min-height: 64px;
    padding: 7px 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
  }
  #workspaceShell .wc-rail::-webkit-scrollbar { display: none; }
  #workspaceShell .wc-rail-mark { display: none; }
  #workspaceShell .wc-primary-nav { margin: 0; display: flex; flex: 0 0 auto; gap: 4px; }
  #workspaceShell .wc-primary-nav .wc-nav-item.active::before {
    left: 50%;
    bottom: -7px;
    width: 22px;
    height: 4px;
    border-radius: 4px 4px 0 0;
    transform: translateX(-50%);
  }
  #workspaceShell .wc-rail-bottom { width: auto; margin: 0 0 0 auto; display: flex; flex: 0 0 auto; gap: 4px; }
  #workspaceShell .wc-rail-popover {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 68px;
    width: auto;
    max-height: calc(100dvh - 148px);
    overflow: auto;
  }
  #workspaceShell .wc-topbar { padding: 0 14px; }
  #workspaceShell .wc-wordmark { font-size: 15px; }
  #workspaceShell .wc-workspace-switch { margin-left: 12px; padding-left: 12px; }
  #workspaceShell .wc-global-search,
  #workspaceShell .wc-top-actions .wc-team-action { display: none !important; }
  #workspaceShell .wc-top-actions { margin-left: auto; }
  #workspaceShell .wc-primary-button { padding: 0 10px; font-size: 10px; }
  #workspaceShell .wc-page-host { overflow: auto; }
  #workspaceShell .page-view { height: auto; min-height: 100%; }
  #workspaceShell .wc-customer-workspace { min-height: 100%; grid-template-columns: 1fr; overflow: auto; }
  #workspaceShell .wc-ai-column { display: none; }
  #workspaceShell .wc-customer-list-column { min-height: min(64dvh, 560px); height: min(64dvh, 560px); display: flex; }
  #workspaceShell .wc-company-column { min-height: calc(100dvh - 132px); }
  #workspaceShell .wc-search-workspace { grid-template-columns: 1fr; overflow: auto; }
  #workspaceShell .wc-search-setup { min-height: calc(100dvh - 132px); }
  #workspaceShell .wc-search-results { min-height: calc(100dvh - 132px); }
  #workspaceShell .wc-search-ai { display: none; }
  #workspaceShell .wc-search-result-actions { display: none; }
  #workspaceShell .wc-search-results-head > div:last-child { display: none; }
  #workspaceShell .wc-query-list { min-height: 560px; }
  #workspaceShell .search-result-table td:nth-child(2),
  #workspaceShell .search-result-table td:nth-child(3) { display: none; }
  #workspaceShell .search-result-table td:nth-child(1) { width: 75%; }
  #workspaceShell .search-result-table td:nth-child(4) { width: 25%; }
}

/* Readability baseline approved after the C-template review. Decorative labels
   may stay compact; every instruction, control and data value remains readable. */
#workspaceShell :is(
  .empty-state,
  .wc-rail-popover .wc-nav-item,
  .wc-popover-card,
  .wc-popover-utilities button,
  .wc-workspace-switch span,
  .wc-workspace-switch p,
  .wc-global-search,
  .wc-service-state,
  .wc-primary-button,
  .wc-column-head span,
  .wc-customer-search input,
  .wc-customer-filter button,
  .wc-lead-filters select,
  .wc-selection-bar,
  #leadTable td,
  .lead-cell-sub,
  .source-chip,
  .channel-chip,
  .owner-chip,
  #leadTable .badge,
  .wc-lead-pagination,
  .wc-company-actions button,
  .wc-detail-save-actions button,
  .wc-contact-actions button,
  #reportLeadQuality,
  .wc-company-tabs > button.wc-detail-tab,
  .wc-fit-summary p,
  .wc-fit-summary dl div,
  .wc-permission-notice,
  .wc-assignment-panel strong,
  .wc-assignment-panel span,
  .wc-tag,
  .wc-detail-card > span,
  .wc-detail-card > p,
  .wc-detail-card label,
  .wc-detail-card input,
  .wc-detail-card select,
  .wc-detail-card textarea,
  #leadQualityReason,
  .wc-ai-head span,
  .wc-ai-head em,
  .wc-ai-context span,
  .wc-ai-message,
  .wc-ai-message > span,
  .wc-ai-suggestions button,
  .wc-ai-compose > div
) { font-size: 12px; }

#workspaceShell :is(
  .wc-search-field > span,
  .wc-search-field small,
  .wc-market-selected small,
  .wc-market-selected b,
  .wc-country-search input,
  .country-picker-option strong,
  .country-picker-option small,
  .wc-localized-preview p,
  .wc-recent-searches > span,
  .wc-recent-searches b,
  .wc-recent-searches small,
  .wc-recent-searches time,
  #searchRecentTasks .recent-search-row,
  #searchRecentTasks .recent-search-row .muted,
  .wc-search-query-title p,
  .wc-search-results-head > div:last-child button,
  .wc-search-progress .progress-step,
  .wc-result-filter > span,
  .wc-result-filter > button,
  .wc-search-empty span,
  .search-running,
  .stream-result-head,
  .result-stat span,
  .skip-summary,
  .search-result-table td,
  .search-company-cell a,
  .search-company-cell small,
  .search-buyer-head strong,
  .search-buyer-scores,
  .search-buyer-cell p,
  .search-buyer-cell > small,
  .search-evidence-link,
  .search-contact-cell span,
  .search-data-empty,
  .wc-result-footer,
  .wc-search-ai-head span,
  .wc-search-ai-head em,
  .wc-ai-plan-block > strong,
  .wc-ai-plan-block p,
  .wc-search-intel-state,
  .wc-search-intent-list span,
  .wc-search-intent-list span em,
  .wc-search-route b,
  .wc-search-route small,
  .wc-plan-note span,
  .wc-plan-note p,
  .wc-adjust-plan
) { font-size: 12px; }

#workspaceShell :is(.lead-cell-main, .search-company-cell strong, .wc-market-selected b) { font-size: 13px; }

#workspaceShell .wc-customer-filter {
  min-height: 45px;
  height: 45px;
  padding: 0 13px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  overflow: hidden;
}
#workspaceShell .wc-customer-filter button { min-width: 0; min-height: 30px; justify-content: center; }
#workspaceShell .wc-customer-filter button span { font-size: 11px; }

#workspaceShell .search-result-table { min-width: 760px; }
#workspaceShell .search-contact-cell span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#workspaceShell .search-data-empty { color: #728899 !important; font-size: 12px !important; }
#workspaceShell button.wc-danger { color: #b94d43 !important; border-color: #e8aaa3 !important; background: #fff4f2 !important; }

/* Final colour ownership: legacy v6/v7 selectors used !important moss-green
   states, so the C shell explicitly owns these visible customer/search states. */
#workspaceShell .wc-customer-filter .wc-lead-stage {
  color: #8193a1 !important;
  border-color: transparent !important;
  background: transparent !important;
}
#workspaceShell .wc-customer-filter .wc-lead-stage.active {
  color: var(--wc-blue) !important;
  border-color: transparent !important;
  background: transparent !important;
}
#workspaceShell .wc-primary-nav .wc-nav-item svg,
#workspaceShell .wc-rail-button svg { color: inherit !important; stroke: currentColor !important; }
#workspaceShell .status-badge {
  color: #60798d !important;
  border-color: #d4e6f0 !important;
  background: #edf6fb !important;
}
#workspaceShell .status-badge.contacted,
#workspaceShell .status-badge.replied,
#workspaceShell .status-badge.quoted {
  color: #176da8 !important;
  border-color: #9ed3ef !important;
  background: #e2f4ff !important;
}
#workspaceShell .status-badge.closed {
  color: #647a90 !important;
  border-color: #d8e5ec !important;
  background: #f1f6f9 !important;
}
#workspaceShell .qualification-badge.qualified {
  color: var(--wc-blue) !important;
  border-color: #8cc8eb !important;
  background: #e4f5ff !important;
}
#workspaceShell .search-result-table .badge.good {
  color: #176da8 !important;
  border-color: #9ed3ef !important;
  background: #e2f4ff !important;
}
#workspaceShell .running-bar::after { content: none !important; }

/* Text that communicates data or instructions never drops below 12px. */
#workspaceShell :is(
  .wc-lead-card-market,
  .wc-lead-card-date,
  .wc-company-empty p,
  .wc-company-name p,
  .wc-fit-summary > div:first-child > span,
  .wc-fit-score small,
  .wc-fit-summary > .qualification-badge,
  .wc-customer-metrics span,
  .wc-search-quota,
  .wc-search-field b,
  .country-picker-group h4,
  .google-maps-attribution,
  .wc-ai-plan-block > span
) { font-size: 12px; }

/* Compact controls still carry actions and status, so their copy stays legible. */
#workspaceShell .wc-popover-card b,
#workspaceShell .wc-popover-card em,
#workspaceShell .wc-selection-bar button,
#workspaceShell .wc-result-footer button { font-size: 12px; }

@media (max-width: 780px) {
  #workspaceShell .search-result-table { min-width: 100%; }
}
