/* Salesforce Lightning-style shell · 3 pages */
:root[data-system="salesforce"], body[data-system="salesforce"] {
  --shell-bg-from: #0070d2;
  --shell-bg-to: #1589ee;
  --shell-fg: #ffffff;
  --shell-accent: #1589ee;
  --shell-rail-bg: #f4f6f9;
  --shell-rail-fg: #16325c;
  --shell-rail-active: #0070d2;
  --shell-header-h: 44px;
  --shell-rail-w: 0;            /* SF leaf pages use the native .sf-global app launcher, not a shell rail */
  --shell-utility-h: 28px;
}
body[data-system="salesforce"] {
  margin: 0;
  padding-top: 0;        /* SF native .sf-global IS the system header — no W2 shell header */
  padding-left: 0;
  padding-bottom: var(--shell-utility-h);
  font-family: "Salesforce Sans", -apple-system, "Segoe UI", sans-serif;
  background: #f3f3f3;
}
body[data-system="salesforce"] .shell-rail   { display: none !important; }
body[data-system="salesforce"] .shell-header { display: none !important; }
body[data-system="salesforce"] .shell-footer { display: none !important; }
body[data-system="salesforce"] .shell-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--shell-header-h);
  background: linear-gradient(to bottom, var(--shell-bg-from), var(--shell-bg-to));
  color: var(--shell-fg);
  display: flex; align-items: center; padding: 0 14px;
  font-size: 13px; z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
body[data-system="salesforce"] .shell-logo::before {
  content: '\2630'; margin-right: 14px; font-size: 16px; opacity: 0.9;
}
body[data-system="salesforce"] .shell-search {
  flex: 1; max-width: 520px; margin-left: 14px;
  background: #fff; color: #16325c;
  border: 1px solid #d8dde6; border-radius: 4px;
  padding: 5px 10px; font-size: 12.5px;
}
body[data-system="salesforce"] .shell-right {
  margin-left: auto; display: flex; align-items: center; gap: 16px;
}
body[data-system="salesforce"] .shell-rail {
  position: fixed; top: var(--shell-header-h); bottom: var(--shell-utility-h); left: 0;
  width: var(--shell-rail-w); background: var(--shell-rail-bg);
  color: var(--shell-rail-fg);
  border-right: 1px solid #d8dde6;
  overflow-y: auto; font-size: 12.5px; padding: 12px 0;
}
body[data-system="salesforce"] .shell-rail .nav-link {
  display: block; padding: 7px 16px; color: var(--shell-rail-fg);
  text-decoration: none; border-left: 3px solid transparent;
}
body[data-system="salesforce"] .shell-rail .nav-link:hover { background: #eef1f6; }
body[data-system="salesforce"] .shell-rail .nav-link.active {
  background: white; border-left-color: var(--shell-rail-active); font-weight: 600;
}
body[data-system="salesforce"] .shell-utility-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--shell-utility-h);
  background: #16325c; color: #fff;
  display: flex; align-items: center; padding: 0 14px; gap: 16px;
  font-size: 11.5px; z-index: 100;
}
body[data-system="salesforce"] .shell-utility-bar .util-item {
  padding: 4px 10px; border-radius: 3px; cursor: pointer;
}
body[data-system="salesforce"] .shell-utility-bar .util-item:hover { background: rgba(255,255,255,0.1); }
body[data-system="salesforce"] .shell-status {
  background: rgba(255,255,255,0.16); padding: 3px 10px;
  border-radius: 999px; font-size: 11.5px;
  display: inline-flex; align-items: center; gap: 6px;
}
body[data-system="salesforce"] .shell-status .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #4ade80;
}
body[data-system="salesforce"] .shell-footer {
  padding: 12px 22px; border-top: 1px solid #d8dde6;
  font-size: 11px; color: #54698d; text-align: center;
}
/* NOTE: legacy .sf-global (Salesforce app launcher / Sales Cloud · Government Cloud Plus / FedRAMP+ITAR pill / JM avatar)
 * and .dash-top (CRO/SF-Head dashboard breadcrumbs + LEADERSHIP badge) intentionally NOT hidden — they render
 * below the shell header so each page reads as authentic Salesforce. */
