/* Leftover screens — Integration Hub helpers, Prospect inventory (admin lead pool), staff workspace shell,
   business/agent stub shells. Stitch "Light & Gold" on --sh-* tokens (theme.css). Loaded after the other screens-*.css. */

/* standalone pages (no theme.css) get the same tokens */
body.st, body.pm-shell-page {
  --sh-primary: #855300; --sh-primary-container: #f59e0b; --sh-on-primary: #ffffff; --sh-on-primary-container: #613b00;
  --sh-secondary: #904d00; --sh-tertiary: #565e74;
  --sh-surface: #f8f9ff; --sh-surface-lowest: #ffffff; --sh-surface-low: #eff4ff; --sh-surface-container: #e5eeff;
  --sh-surface-high: #dce9ff; --sh-on-surface: #0b1c30; --sh-on-surface-variant: #534434;
  --sh-outline: #867461; --sh-outline-variant: #d8c3ad; --sh-error: #ba1a1a; --sh-error-container: #ffdad6;
  --sh-ok: #067647; --sh-ok-bg: #ecfdf3;
  --sh-shadow: 0 1px 8px rgba(11,28,48,.05); --sh-shadow-lg: 0 8px 28px rgba(11,28,48,.10);
  --sh-font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ── Integration Hub helpers ─────────────────────────── */
.lo-mute { font-size: 12px; color: var(--sh-on-surface-variant); }
.lo-hint { font-size: 12px; color: var(--sh-outline); margin: 4px 0 10px; }
.lo-err { font-size: 12px; color: var(--sh-error); }
.ih-fm-row .sa-del { border: none; }
#sec-integrations .card { background: var(--sh-surface-lowest); border: none; box-shadow: var(--sh-shadow); }

/* ── Prospect inventory (admin Lead Pool) ────────────── */
#sec-leadpool .lo-hdr { margin-bottom: 20px; }
.lo-titlerow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lo-hico { width: 40px; height: 40px; border-radius: 10px; background: var(--sh-primary-container); color: var(--sh-on-primary-container); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 1px 4px rgba(133, 83, 0, .2); }
.lo-hico .material-symbols-outlined { font-size: 22px; }
#sec-leadpool .lo-hdr .sec-sub { margin-top: 6px; }

/* stats strip: uppercase 11px label + icon chip */
#sec-leadpool .lp-stat { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.lp-stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lp-stat-ico { width: 32px; height: 32px; border-radius: 8px; background: var(--sh-surface-low); color: var(--sh-primary); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lp-stat-ico .material-symbols-outlined { font-size: 18px; }
#sec-leadpool .lp-stat:nth-child(3) .lp-stat-ico { background: #fff4de; color: var(--sh-secondary); }
#sec-leadpool .lp-stat-top .lp-stat-lbl { margin: 0; }

/* filter module */
#sec-leadpool .lo-fm { flex-wrap: wrap; align-items: center; }
.lo-fm-head { flex: 1 0 100%; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 10px; margin-bottom: 2px; border-bottom: 1px solid var(--sh-surface-container); }
.lo-fm-head .material-symbols-outlined { color: var(--sh-primary); font-size: 20px; }
.lo-fm-head b { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sh-on-surface); }
.lo-fm-head span:last-child { font-size: 12px; color: var(--sh-on-surface-variant); }
.lo-selchip { background: var(--sh-surface-high) !important; color: var(--sh-on-primary-container) !important; font-weight: 700; }
.lo-hint { margin-bottom: 10px; }

/* cards: tier pill, score bar, meta */
#sec-leadpool .lp-card-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
#sec-leadpool .lp-card-meta .badge { font-size: 11px; }
#sec-leadpool .lp-card-loc { display: flex; align-items: flex-start; gap: 6px; }
#sec-leadpool .lp-card-loc .material-symbols-outlined { font-size: 16px; color: var(--sh-outline); }
.lo-contact-line { margin-top: 6px; word-break: break-word; }
.lo-link { color: var(--sh-primary); font-weight: 700; text-decoration: none; }
.lo-link:hover { text-decoration: underline; }
.lo-biz { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--sh-surface-container); color: var(--sh-on-surface-variant); }
.lo-tier { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.lo-tier-hot { background: var(--sh-primary-container); color: var(--sh-on-primary-container); }
.lo-tier-warm { background: #fff4de; color: var(--sh-secondary); }
.lo-tier-cold { background: var(--sh-error-container); color: #93000a; }
.lo-tier-none { background: var(--sh-surface-container); color: var(--sh-on-surface-variant); }
.lo-sbar { display: flex; align-items: center; gap: 10px; }
.lo-sbar-lbl { font-size: 11px; font-weight: 700; color: var(--sh-on-surface-variant); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.lo-sbar-track { flex: 1; height: 6px; border-radius: 999px; background: var(--sh-surface-container); overflow: hidden; }
.lo-sbar-track i { display: block; height: 100%; border-radius: 999px; }
.lo-sbar-hot { background: var(--sh-primary-container); }
.lo-sbar-warm { background: #ffb95f; }
.lo-sbar-cold { background: var(--sh-error); }
.lo-score-mute { background: var(--sh-surface-container) !important; color: var(--sh-outline) !important; }

/* ── Staff workspace shell ───────────────────────────── */
body.st { margin: 0; min-height: 100vh; background: var(--sh-surface); color: var(--sh-on-surface); font-family: var(--sh-font); -webkit-font-smoothing: antialiased; }
body.st *, body.st *::before, body.st *::after { box-sizing: border-box; }
body.st .material-symbols-outlined { font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1; display: inline-block; vertical-align: middle; font-variation-settings: 'FILL' 0, 'wght' 400; flex: none; }
.st-app { display: flex; min-height: 100vh; }
.st-side { width: 272px; flex-shrink: 0; background: var(--sh-surface-lowest); box-shadow: var(--sh-shadow); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; z-index: 20; }
.st-brand { display: flex; align-items: center; gap: 12px; padding: 24px 24px 12px; }
.st-mark { width: 40px; height: 40px; border-radius: 8px; background: var(--sh-primary-container); color: var(--sh-on-primary-container); font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(133, 83, 0, .25); }
.st-brand strong { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1; }
.st-brand small { display: block; margin-top: 5px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--sh-on-surface-variant); }
.st-nav { flex: 1; overflow-y: auto; padding: 8px 16px 16px; }
.st-nav-lbl { margin: 18px 0 4px; padding: 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sh-on-surface-variant); }
.st-nav-lbl:first-child { margin-top: 4px; }
.st-nav a { display: flex; align-items: center; gap: 10px; margin: 2px 0; padding: 8px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--sh-on-surface-variant); text-decoration: none; }
.st-nav a:hover { background: var(--sh-surface-container); color: var(--sh-on-surface); }
.st-nav a.active { background: var(--sh-primary-container); color: var(--sh-on-primary-container); font-weight: 700; }
.st-side-foot { padding: 16px 24px 20px; }
.st-user { background: var(--sh-surface-low); border-radius: 12px; padding: 12px; margin-bottom: 8px; min-width: 0; }
.st-user small { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--sh-on-surface-variant); }
.st-user b { display: block; font-size: 13px; font-weight: 600; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-signout { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; border: none; background: transparent; color: var(--sh-error); font: inherit; font-size: 12px; font-weight: 700; padding: 9px; border-radius: 8px; cursor: pointer; }
.st-signout:hover { background: var(--sh-error-container); }
.st-main { flex: 1; min-width: 0; padding: 0 32px 40px; }
.top.st-top { position: sticky; top: 0; z-index: 10; margin: 0 -32px 24px; padding: 0 32px; min-height: 64px; background: var(--sh-surface-lowest); box-shadow: var(--sh-shadow); }
.st-top .top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 64px; }
.st-top h1 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.st-top .greet { font-size: 12px; color: var(--sh-on-surface-variant); margin-top: 2px; }
.st-top .badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.role-sales { background: #ffddb8; color: var(--sh-on-primary-container); }
.role-call { background: var(--sh-surface-container); color: var(--sh-tertiary); }
.role-super { background: var(--sh-surface-high); color: var(--sh-on-surface); }
.st-menu { display: none; border: none; background: var(--sh-surface-low); border-radius: 8px; width: 38px; height: 38px; cursor: pointer; align-items: center; justify-content: center; color: var(--sh-on-surface); }
.st-hdr { margin-bottom: 24px; }
.st-hdr h2 { margin: 0; font-size: 30px; line-height: 38px; font-weight: 700; letter-spacing: -.02em; }
.st-hdr p { margin: 6px 0 0; max-width: 720px; font-size: 14px; line-height: 20px; color: var(--sh-on-surface-variant); }
.st-sec { margin: 24px 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sh-on-surface-variant); scroll-margin-top: 80px; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.st-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; text-align: left; background: var(--sh-surface-lowest); border: none; border-radius: 12px; box-shadow: var(--sh-shadow); padding: 16px; font: inherit; color: inherit; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.st-tile::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--sh-surface-high); }
.st-tile:hover { box-shadow: var(--sh-shadow-lg); transform: translateY(-2px); }
.st-tile:hover::before { background: var(--sh-primary-container); }
.st-tile:focus-visible { outline: 2px solid var(--sh-primary-container); outline-offset: 2px; }
.st-tile .ic { width: 36px; height: 36px; border-radius: 8px; background: var(--sh-surface-low); color: var(--sh-primary); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.st-tile strong { font-size: 14px; font-weight: 700; }
.st-tile span.hint { font-size: 12px; line-height: 1.4; color: var(--sh-on-surface-variant); }
.st-empty { text-align: center; padding: 40px 16px; color: var(--sh-on-surface-variant); font-size: 13px; background: var(--sh-surface-lowest); border-radius: 12px; box-shadow: var(--sh-shadow); }
.st-modal-bg { display: none; position: fixed; inset: 0; background: rgba(11, 28, 48, .45); z-index: 60; align-items: center; justify-content: center; padding: 20px; }
.st-modal-bg.open { display: flex; }
.st-modal { background: var(--sh-surface-lowest); border-radius: 12px; max-width: 420px; width: 100%; padding: 24px; box-shadow: var(--sh-shadow-lg); }
.st-modal h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.st-modal p { margin: 0 0 16px; font-size: 13px; line-height: 1.5; color: var(--sh-on-surface-variant); }
.st-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 11px 14px; border: none; border-radius: 8px; background: var(--sh-primary-container); color: var(--sh-on-primary); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.st-btn:hover { background: #d98a06; }
.st-scrim { display: none; }

@media (max-width: 900px) {
  .st-side { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; }
  body.st-nav-open .st-side { transform: none; }
  body.st-nav-open .st-scrim { display: block; position: fixed; inset: 0; background: rgba(11, 28, 48, .35); z-index: 15; }
  .st-menu { display: inline-flex; }
  .st-main { padding: 0 16px 32px; }
  .top.st-top { margin: 0 -16px 16px; padding: 0 16px; }
  .st-hdr h2 { font-size: 24px; line-height: 30px; }
  .st-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
}

/* ── Business / agent stub shells (portal-modules.js) ── */
body.pm-shell-page .pm-side { background: var(--sh-surface-lowest); color: var(--sh-on-surface); box-shadow: var(--sh-shadow); position: sticky; top: 0; height: 100vh; width: 272px; }
body.pm-shell-page .pm-side-brand { padding: 24px 24px 12px; }
body.pm-shell-page .pm-side-brand strong { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
body.pm-shell-page .pm-side-brand > div > div { color: var(--sh-on-surface-variant) !important; font-size: 11px !important; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
body.pm-shell-page .pm-mark { width: 40px; height: 40px; background: var(--sh-primary-container); color: var(--sh-on-primary-container); font-size: 16px; font-weight: 800; box-shadow: 0 1px 4px rgba(133, 83, 0, .25); }
body.pm-shell-page .pm-side > div[style*="YOUR SHELLS"], body.pm-shell-page .pm-side > div[style*="letter-spacing:.12em"] { color: var(--sh-on-surface-variant) !important; font-size: 11px !important; letter-spacing: .06em !important; padding: 8px 24px !important; }
body.pm-shell-page .pm-side nav { padding: 4px 16px; }
body.pm-shell-page .pm-side button, body.pm-shell-page .pm-side a.pm-nav { color: var(--sh-on-surface-variant); font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 8px 10px; }
body.pm-shell-page .pm-side button:hover, body.pm-shell-page .pm-side a.pm-nav:hover { background: var(--sh-surface-container); color: var(--sh-on-surface); }
body.pm-shell-page .pm-side button.active, body.pm-shell-page .pm-side a.pm-nav.active { background: var(--sh-primary-container); color: var(--sh-on-primary-container); font-weight: 700; }
body.pm-shell-page .pm-side-foot { color: var(--sh-on-surface-variant); padding: 16px 24px 20px; }
body.pm-shell-page .pm-side-foot #pmShellLogout { background: transparent; color: var(--sh-error); border: none; font-weight: 700; }
body.pm-shell-page .pm-side-foot #pmShellLogout:hover { background: var(--sh-error-container); }
body.pm-shell-page .pm-main { padding: 0 32px 40px; }
body.pm-shell-page .pm-main > .pm-top { position: sticky; top: 0; z-index: 10; margin: 0 -32px 24px; border-radius: 0; padding: 0 32px; min-height: 64px; }
body.pm-shell-page .pm-rows th, body.pm-shell-page .pm-rows td { border-bottom-color: var(--sh-surface-container); }
body.pm-shell-page .pm-rows th { color: var(--sh-on-surface-variant); font-weight: 700; letter-spacing: .06em; }
body.pm-shell-page .pm-rows tbody tr:hover td { background: var(--sh-surface-low); }
body.pm-shell-page .pm-card { background: var(--sh-surface-lowest); border: none; border-radius: 12px; box-shadow: var(--sh-shadow); overflow-x: auto; }
@media (max-width: 800px) {
  body.pm-shell-page #pmShell { flex-direction: column; }
  body.pm-shell-page .pm-side { position: static; width: 100%; height: auto; }
  body.pm-shell-page .pm-main { padding: 0 16px 32px; }
  body.pm-shell-page .pm-main > .pm-top { margin: 0 -16px 16px; padding: 12px 16px; }
}
