/* =============================================================================
   PayDirt Workspace — WSS Labs product language
   WSS void/carbon surfaces · signal violet/blue actions · pulse green states ·
   PayDirt gold identity detail · Hanken Grotesk + IBM Plex Mono.
   No decorative data: every number on screen is sourced from a live API.
   ========================================================================== */

:root {
  /* surfaces — near-black, faint cool cast */
  --bg: #08080b;
  --bg-grid: #0b0b0f;
  --elev: #0c0c10;
  --panel: #131318;
  --panel-2: #17171c;
  --panel-3: #1a1a21;
  --hair: rgba(255, 255, 255, .07);
  --hair-2: rgba(255, 255, 255, .11);
  --hair-gold: rgba(124, 108, 246, .32);

  /* ink — warm off-white keeps the PayDirt identity */
  --ink: #f2f2f5;
  --ink-dim: #9b9aa4;
  --ink-faint: #6f6e79;
  --ink-ghost: #4e4d57;

  /* brand + utility accents */
  --gold: #7c6cf6;
  --gold-hi: #9e90ff;
  --gold-lo: #4a6cf7;
  --gold-dim: rgba(124, 108, 246, .13);
  --violet: #7c6cf6;
  --violet-dim: rgba(124, 108, 246, .14);
  --blue: #6e8bff;
  --blue-dim: rgba(74, 108, 247, .14);
  --good: #34d399;
  --good-dim: rgba(52, 211, 153, .13);
  --danger: #f26d6d;
  --danger-dim: rgba(242, 109, 109, .13);
  --warning: #e0a44a;
  --warning-dim: rgba(224, 164, 74, .13);
  --paydirt: #e0a44a;
  --paydirt-hi: #f2c55f;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --rail: 266px;

  --shadow-1: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 20px 44px -28px rgba(0, 0, 0, .85);
  --shadow-2: 0 40px 90px -46px rgba(0, 0, 0, .92);
  --glow-gold: 0 0 0 1px rgba(124, 108, 246, .32), 0 14px 40px -16px rgba(124, 108, 246, .34);

  --ease: cubic-bezier(.4, .08, .18, 1);
  --ease-out: cubic-bezier(.16, .8, .3, 1);

  --font: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  min-width: 320px; margin: 0; color: var(--ink);
  font: 400 14px/1.55 var(--font);
  background:
    radial-gradient(1200px 620px at 78% -8%, rgba(124, 108, 246, .09), transparent 60%),
    radial-gradient(980px 560px at 6% 4%, rgba(74, 108, 247, .05), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--blue); text-decoration: none; transition: color .16s var(--ease); }
a:hover { color: var(--gold); }
button, input, select, textarea { font: inherit; color: var(--ink); }
button, select { cursor: pointer; }
::selection { background: rgba(124, 108, 246, .34); color: #fff; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; }

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; left: 16px; top: -70px; z-index: 200; padding: 11px 15px; border-radius: 8px; background: linear-gradient(135deg, var(--gold-lo), var(--gold)); color: #fff; font-weight: 700; transition: top .18s var(--ease); }
.skip-link:focus { top: 16px; }

/* eyebrows / kickers / data — Martian Mono */
.eyebrow, .kicker, .nav-label, .metric-label, .data-label {
  font-family: var(--mono); font-weight: 500; font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); margin: 0;
}
.kicker { color: var(--gold); }

/* =========================== app shell =========================== */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; width: var(--rail);
  flex-direction: column; padding: 20px 14px 16px;
  background: linear-gradient(180deg, rgba(13, 15, 19, .98), rgba(9, 10, 13, .98));
  border-right: 1px solid var(--hair); backdrop-filter: blur(12px);
}
.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 8px 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 19px; letter-spacing: -.03em; }
.brand-mark {
  display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; font-size: 17px;
  background: linear-gradient(140deg, var(--paydirt-hi), var(--paydirt)); color: #17130a;
  box-shadow: 0 6px 18px -6px rgba(224, 164, 74, .52);
}
.icon-button { display: inline-grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--ink-dim); font-family: var(--mono); font-size: 13px; transition: .16s var(--ease); }
.icon-button:hover { border-color: var(--hair-2); background: rgba(255, 255, 255, .04); color: var(--ink); }
.sidebar-close, .mobile-menu { display: none; }

.workspace-switcher { display: flex; width: 100%; min-height: 60px; align-items: center; gap: 11px; padding: 10px 11px; border: 1px solid var(--hair); border-radius: 12px; background: var(--panel); text-align: left; transition: .18s var(--ease); }
.workspace-switcher:hover { border-color: var(--hair-gold); background: var(--panel-2); transform: translateY(-1px); }
.workspace-avatar { display: grid; flex: 0 0 auto; width: 34px; height: 34px; place-items: center; border-radius: 9px; background: linear-gradient(140deg, rgba(124, 108, 246, .22), rgba(74, 108, 247, .08)); border: 1px solid var(--hair-gold); color: var(--gold-hi); font-family: var(--mono); font-weight: 600; font-size: 13px; }
.workspace-switcher-copy { min-width: 0; flex: 1; }
.workspace-switcher-copy strong { display: block; overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.workspace-switcher-copy small { display: block; overflow: hidden; margin-top: 2px; color: var(--ink-faint); font-family: var(--mono); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.chevron { color: var(--ink-ghost); font-family: var(--mono); font-size: 11px; }

.primary-nav { margin-top: 24px; display: flex; flex-direction: column; }
.nav-label { margin: 0 10px 10px; }
.nav-label-spaced { margin-top: 26px; }
.nav-item { display: flex; width: 100%; min-height: 44px; align-items: center; gap: 11px; padding: 0 12px; margin-bottom: 2px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink-dim); font-size: 13px; font-weight: 500; text-align: left; position: relative; transition: .16s var(--ease); }
.nav-item:hover { background: rgba(255, 255, 255, .04); color: var(--ink); }
.nav-item.is-active { border-color: var(--hair-gold); background: linear-gradient(100deg, var(--gold-dim), rgba(74, 108, 247, .03)); color: var(--gold-hi); }
.nav-item.is-active::before { content: ""; position: absolute; left: -14px; top: 50%; width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: var(--gold); transform: translateY(-50%); box-shadow: 0 0 12px var(--gold); }
.nav-symbol { display: inline-grid; width: 22px; height: 22px; place-items: center; border: 1px solid currentColor; border-radius: 7px; font-family: var(--mono); font-size: 11px; opacity: .85; }
.nav-count { min-width: 22px; margin-left: auto; padding: 2px 6px; border-radius: 6px; background: var(--violet-dim); color: var(--violet); font-family: var(--mono); font-size: 10px; text-align: center; }
.nav-item.is-active .nav-count { background: var(--gold-dim); color: var(--gold); }

.sidebar-foot { margin-top: auto; padding: 15px 10px 0; border-top: 1px solid var(--hair); }
.wss-product-signature { display: flex; align-items: center; gap: 8px; margin: 0 0 11px; color: var(--ink-faint); font-family: var(--mono); font-size: 9px; letter-spacing: .04em; }
.wss-product-signature img { width: 23px; height: 23px; border-radius: 6px; }
.wss-product-signature strong { color: var(--ink-dim); font-weight: 600; }
.rail-status { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; color: var(--ink-faint); font-family: var(--mono); font-size: 10px; }
.status-dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.status-dot-muted { color: #545963; }
.status-dot-good { color: var(--good); box-shadow: 0 0 0 4px var(--good-dim); animation: pulse 2.6s var(--ease) infinite; }
.status-dot-gold { color: var(--gold); box-shadow: 0 0 0 4px var(--gold-dim); }
.status-dot-danger { color: var(--danger); box-shadow: 0 0 0 4px var(--danger-dim); }
.rail-link { display: flex; justify-content: space-between; color: var(--ink-faint); font-size: 11px; }
.rail-link:hover { color: var(--gold); }
.sidebar-scrim { position: fixed; inset: 0; z-index: 35; background: rgba(0, 0, 0, .68); backdrop-filter: blur(2px); }

.app-frame { width: calc(100% - var(--rail)); min-width: 0; margin-left: var(--rail); display: flex; flex-direction: column; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 34px; border-bottom: 1px solid var(--hair); background: rgba(9, 10, 13, .82); backdrop-filter: blur(20px) saturate(1.4); }
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 14px; }
.breadcrumbs { display: flex; align-items: center; gap: 9px; color: var(--ink-faint); font-family: var(--mono); font-size: 11px; }
.breadcrumbs strong { color: var(--ink); font-weight: 500; }
.command-trigger { display: flex; min-height: 38px; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid var(--hair); border-radius: 9px; background: var(--panel); color: var(--ink-dim); font-size: 12px; transition: .16s var(--ease); }
.command-trigger:hover { border-color: var(--hair-2); color: var(--ink); }
.command-key { display: inline-grid; width: 20px; height: 20px; place-items: center; border: 1px solid var(--hair-2); border-radius: 6px; color: var(--gold); font-family: var(--mono); font-size: 11px; }
kbd { padding: 2px 6px; border: 1px solid var(--hair-2); border-radius: 5px; color: var(--ink-faint); font: 500 10px/1 var(--mono); }
.notification-button { position: relative; }
.notification-button i { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.profile-button { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 4px 8px 4px 4px; border: 1px solid transparent; border-radius: 10px; background: transparent; text-align: left; transition: .16s var(--ease); }
.profile-button:hover { border-color: var(--hair); background: rgba(255, 255, 255, .04); }
.profile-avatar { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 9px; border: 1px solid var(--violet-dim); background: var(--violet-dim); color: var(--violet); font-family: var(--mono); font-weight: 600; font-size: 11px; }
.profile-name { color: var(--ink-dim); font-size: 12px; font-weight: 500; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* connection banner */
.connection-banner { display: flex; min-height: 40px; align-items: center; gap: 11px; padding: 9px 34px; border-bottom: 1px solid var(--hair-gold); background: var(--gold-dim); color: var(--ink-dim); font-size: 12px; }
.connection-banner .signal-icon { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-dim); animation: pulse 2.2s var(--ease) infinite; }
.connection-banner.is-error { border-bottom-color: var(--danger-dim); background: var(--danger-dim); }
.connection-banner.is-error .signal-icon { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-dim); animation: none; }
.connection-banner.is-ready { border-bottom-color: var(--good-dim); background: var(--good-dim); }
.connection-banner.is-ready .signal-icon { background: var(--good); box-shadow: 0 0 0 4px var(--good-dim); }
.connection-banner .text-button { margin-left: auto; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--gold); font-size: 12px; font-weight: 600; transition: .16s var(--ease); }
.text-button:hover { color: var(--ink); }

/* main + view transitions */
.main-content { width: min(1480px, 100%); margin: 0 auto; padding: 40px 34px 96px; flex: 1; }
.page-view { display: none; }
.page-view.is-visible { display: block; animation: riseIn .42s var(--ease-out) both; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.page-heading h1 { max-width: 780px; margin: 10px 0 8px; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.03; letter-spacing: -.035em; }
.page-subtitle { max-width: 600px; margin: 0; color: var(--ink-dim); font-size: 14px; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow-rule { width: 30px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.heading-actions { display: flex; gap: 8px; }

/* buttons */
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: .18s var(--ease); }
.button:disabled { opacity: .55; cursor: default; }
.button-primary { background: linear-gradient(135deg, var(--gold-lo), var(--gold)); color: #fff; box-shadow: 0 12px 30px -14px rgba(124, 108, 246, .62); }
.button-primary:not(:disabled):hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 16px 36px -14px rgba(124, 108, 246, .72); }
.button-secondary { border-color: var(--hair-2); background: rgba(255, 255, 255, .03); color: var(--ink-dim); }
.button-secondary:not(:disabled):hover { border-color: var(--hair-gold); color: var(--ink); background: rgba(255, 255, 255, .06); }
.button-ghost { background: transparent; color: var(--ink-dim); }
.button-ghost:hover { color: var(--gold); }
.full-width { width: 100%; }
.mini-button { min-height: 32px; padding: 0 10px; border: 1px solid var(--hair-2); border-radius: 8px; background: transparent; color: var(--ink-dim); font-family: var(--mono); font-size: 10px; font-weight: 500; transition: .16s var(--ease); }
.mini-button:hover { border-color: var(--hair-gold); color: var(--gold); }

/* surfaces */
.surface { min-width: 0; border: 1px solid var(--hair); border-radius: var(--radius); background: linear-gradient(180deg, rgba(23, 26, 33, .6), rgba(18, 20, 25, .82)); box-shadow: var(--shadow-1); }
.surface-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 22px 23px 0; }
.surface-heading h2 { font-size: 19px; }
.section-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; }
.live-label { display: inline-flex; align-items: center; gap: 8px; color: var(--good); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.live-pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px var(--good-dim); animation: pulse 2.4s var(--ease) infinite; }
.command-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--violet); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.command-kicker .live-pulse { background: var(--violet); box-shadow: 0 0 0 4px var(--violet-dim); }

/* hero command / search */
.hero-command { margin-bottom: 24px; padding: 26px 28px; border: 1px solid var(--hair-gold); border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(74, 108, 247, .09), rgba(124, 108, 246, .05) 46%, rgba(19, 19, 24, .88)), var(--panel); box-shadow: var(--shadow-1); position: relative; overflow: hidden; }
.hero-command::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(124, 108, 246, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(74, 108, 247, .04) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(90deg, transparent 48%, #000); mask-image: linear-gradient(90deg, transparent 48%, #000); pointer-events: none; }
.hero-command-copy { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.hero-command h2 { margin: 12px 0 6px; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.08; letter-spacing: -.03em; }
.hero-command-copy p { max-width: 440px; margin: 0; color: var(--ink-dim); font-size: 13px; }
.search-form { display: flex; gap: 9px; margin-top: 22px; position: relative; z-index: 1; }
.search-form input { min-width: 0; flex: 1; min-height: 52px; padding: 0 16px; border: 1px solid var(--hair-2); border-radius: 11px; outline: 0; background: rgba(9, 10, 13, .7); color: var(--ink); font-size: 14px; transition: .16s var(--ease); }
.search-form input::placeholder { color: var(--ink-ghost); }
.search-form input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-dim); }
.quick-searches { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; color: var(--ink-faint); font-family: var(--mono); font-size: 10px; position: relative; z-index: 1; }
.quick-search { min-height: 30px; padding: 0 11px; border: 1px solid var(--hair); border-radius: 8px; background: rgba(255, 255, 255, .02); color: var(--ink-dim); font-size: 11px; transition: .16s var(--ease); }
.quick-search:hover { border-color: var(--violet); color: var(--violet); transform: translateY(-1px); }

/* metric grid */
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.metric-panel { min-height: 118px; padding: 20px; border: 1px solid var(--hair); border-radius: var(--radius); background: var(--panel); position: relative; overflow: hidden; transition: .2s var(--ease); }
.metric-panel:hover { border-color: var(--hair-2); transform: translateY(-2px); }
.metric-panel::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--accent, var(--gold)); opacity: .55; }
.metric-panel.m-gold { --accent: var(--gold); }
.metric-panel.m-violet { --accent: var(--violet); }
.metric-panel.m-blue { --accent: var(--blue); }
.metric-panel.m-good { --accent: var(--good); }
.metric-label { display: block; }
.metric-panel strong { display: block; margin-top: 14px; font-family: var(--mono); font-weight: 600; font-size: 30px; letter-spacing: -.03em; color: var(--ink); }
.metric-note { display: block; margin-top: 9px; color: var(--ink-faint); font-size: 11px; }
.metric-note.pos { color: var(--good); }

/* overview grids */
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr); gap: 14px; margin-bottom: 14px; }
.saved-list { display: flex; flex-direction: column; padding: 12px 22px 20px; }
.saved-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.saved-item:last-child { border-bottom: 0; }
.saved-item-mark { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border: 1px solid var(--hair-gold); border-radius: 8px; color: var(--gold); font-family: var(--mono); font-size: 12px; }
.saved-item-copy { min-width: 0; flex: 1; }
.saved-item-copy strong { display: block; overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.saved-item-copy small { display: block; overflow: hidden; margin-top: 3px; color: var(--ink-faint); font-family: var(--mono); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.saved-item-count { color: var(--violet); font-family: var(--mono); font-size: 10px; }

.recent-surface { padding-bottom: 6px; }
.recent-table-wrap { overflow-x: auto; padding: 14px 22px 20px; }
.lead-table { width: 100%; border-collapse: collapse; text-align: left; }
.lead-table th { padding: 0 12px 11px; color: var(--ink-faint); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.lead-table th:first-child, .lead-table td:first-child { padding-left: 0; }
.lead-table td { padding: 13px 12px; border-top: 1px solid var(--hair); color: var(--ink-dim); font-size: 12px; white-space: nowrap; }
.lead-table td strong { display: block; color: var(--ink); font-size: 13px; font-weight: 600; }
.lead-table td small { display: block; margin-top: 2px; color: var(--ink-faint); font-family: var(--mono); font-size: 10px; }
.lead-table tr { cursor: pointer; transition: background .15s var(--ease); }
.lead-table tbody tr:hover td { background: rgba(255, 255, 255, .025); }
.table-score { font-family: var(--mono); font-weight: 600; font-size: 15px; }
.table-score.s-hot { color: var(--gold); }
.table-score.s-warm { color: var(--blue); }
.table-score.s-long { color: var(--ink-faint); }

/* toolbar / filters */
.toolbar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.input-with-icon { display: flex; min-height: 44px; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--hair); border-radius: 10px; background: var(--panel); transition: .16s var(--ease); }
.input-with-icon:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-dim); }
.input-with-icon > span { color: var(--violet); font-family: var(--mono); }
.input-with-icon input { min-width: 240px; border: 0; outline: 0; background: transparent; font-size: 13px; }

/* search strip (lead room) */
.search-strip { margin-bottom: 16px; padding: 20px 22px; border: 1px solid var(--hair-gold); border-radius: var(--radius); background: linear-gradient(135deg, rgba(74, 108, 247, .06), rgba(19, 19, 24, .72)); }
.search-strip-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.search-meta { color: var(--ink-faint); font-family: var(--mono); font-size: 10px; }
.workspace-search-form { margin-top: 15px; }
.search-filters { display: flex; align-items: flex-end; gap: 14px; margin-top: 15px; flex-wrap: wrap; }
.search-filters label { display: grid; gap: 6px; color: var(--ink-faint); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.search-filters select { min-height: 36px; padding: 0 30px 0 11px; border: 1px solid var(--hair-2); border-radius: 9px; outline: 0; background: rgba(9, 10, 13, .7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236f747e' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center; color: var(--ink-dim); font-size: 12px; appearance: none; }
.search-filters select:focus { border-color: var(--violet); }
.filter-note { display: flex; align-items: center; gap: 8px; margin-left: auto; color: var(--ink-faint); font-family: var(--mono); font-size: 10px; }
.workspace-status { margin-bottom: 14px; color: var(--good); font-family: var(--mono); font-size: 11px; min-height: 0; }
.workspace-status:empty { display: none; }
.workspace-status.is-warn { color: var(--warning); }
.workspace-status.is-error { color: var(--danger); }

/* lead workspace grid */
.lead-workspace-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(400px, .98fr); align-items: start; gap: 15px; }
.lead-queue { overflow: hidden; }
.queue-heading { align-items: center; padding-bottom: 16px; }
.queue-count { display: inline-grid; min-width: 24px; height: 24px; place-items: center; margin-left: 7px; padding: 0 6px; border-radius: 7px; background: var(--violet-dim); color: var(--violet); font-family: var(--mono); font-weight: 600; font-size: 11px; vertical-align: 2px; }
.sort-select select { min-height: 34px; padding: 0 28px 0 10px; border: 1px solid var(--hair-2); border-radius: 8px; outline: 0; background: rgba(9, 10, 13, .7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236f747e' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center; color: var(--ink-dim); font-size: 11px; appearance: none; }
.queue-list { display: flex; flex-direction: column; border-top: 1px solid var(--hair); }
.lead-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; padding: 16px 22px; border: 0; border-bottom: 1px solid var(--hair); border-left: 2px solid transparent; background: transparent; text-align: left; cursor: pointer; transition: .16s var(--ease); animation: riseIn .4s var(--ease-out) both; }
.lead-row:last-child { border-bottom: 0; }
.lead-row:hover { background: rgba(255, 255, 255, .03); }
.lead-row.is-selected { border-left-color: var(--gold); background: linear-gradient(100deg, var(--gold-dim), transparent 60%); }
.lead-row-main { min-width: 0; }
.lead-row-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.lead-row-title strong { overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.lead-row-sub { display: block; overflow: hidden; margin-top: 6px; color: var(--ink-dim); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.lead-row-meta { display: flex; gap: 8px; margin-top: 8px; color: var(--ink-faint); font-family: var(--mono); font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; }
.lead-row-meta span { display: inline-flex; align-items: center; gap: 4px; }
.lead-row-score { min-width: 54px; text-align: right; }
.lead-row-score strong { display: block; font-family: var(--mono); font-weight: 600; font-size: 24px; line-height: 1; }
.lead-row-score small { display: block; margin-top: 5px; color: var(--ink-faint); font-family: var(--mono); font-size: 9px; }

/* band chips */
.band { flex: 0 0 auto; padding: 3px 8px; border-radius: 6px; font-family: var(--mono); font-size: 8.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.b-high { background: var(--good-dim); color: var(--good); border: 1px solid rgba(52, 211, 153, .28); }
.b-good { background: var(--blue-dim); color: var(--blue); border: 1px solid rgba(98, 166, 255, .28); }
.b-long { background: rgba(255, 255, 255, .05); color: var(--ink-faint); border: 1px solid var(--hair); }
.s-hot { color: var(--good); }
.s-warm { color: var(--blue); }
.s-long { color: var(--ink-faint); }

/* lead detail */
.lead-detail { position: sticky; top: 92px; min-height: 560px; overflow: hidden; }
.detail-loading { display: flex; min-height: 320px; align-items: center; justify-content: center; gap: 11px; color: var(--ink-faint); font-family: var(--mono); font-size: 11px; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--hair-2); border-top-color: var(--violet); border-radius: 50%; animation: spin .7s linear infinite; }
.detail-head { padding: 24px 24px 20px; border-bottom: 1px solid var(--hair); }
.detail-head-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.detail-head h2 { max-width: 320px; margin: 9px 0 6px; font-size: 24px; line-height: 1.08; letter-spacing: -.03em; }
.detail-location { margin: 0; color: var(--ink-dim); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.score-hero { min-width: 84px; padding: 12px 10px; border-radius: 12px; text-align: center; border: 1px solid var(--hair-gold); background: var(--gold-dim); }
.score-hero.s-warm { border-color: rgba(98, 166, 255, .28); background: var(--blue-dim); }
.score-hero.s-long { border-color: var(--hair); background: rgba(255, 255, 255, .04); }
.score-hero strong { display: block; font-family: var(--mono); font-weight: 600; font-size: 30px; line-height: 1; }
.score-hero small { display: block; margin-top: 5px; font-family: var(--mono); font-size: 8px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.detail-section { padding: 20px 24px; border-bottom: 1px solid var(--hair); }
.detail-section h3 { margin: 0 0 10px; color: var(--gold); font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.detail-story { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.55; }
.detail-story b { color: var(--gold-hi); font-weight: 600; }
.detail-reason { margin: 12px 0 0; padding: 12px 14px; border-left: 2px solid var(--gold); border-radius: 0 8px 8px 0; background: var(--gold-dim); color: var(--ink-dim); font-size: 12px; line-height: 1.5; }
.detail-reason strong { color: var(--gold); }
.reason-receipt { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.receipt-chip { padding: 4px 9px; border: 1px solid var(--hair); border-radius: 7px; background: rgba(255, 255, 255, .02); color: var(--ink-dim); font-family: var(--mono); font-size: 10px; }
.receipt-chip b { color: var(--good); font-weight: 600; }
.opener-quote { margin: 0; padding: 14px 16px; border-radius: 10px; background: rgba(157, 139, 255, .07); border: 1px solid var(--violet-dim); color: var(--ink); font-size: 14px; line-height: 1.5; font-style: italic; }

.evidence-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.evidence-list li { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-dim); font-size: 12px; }
.evidence-list span:first-child { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); }
.evidence-list b { color: var(--ink); font-weight: 600; text-align: right; }

/* contact state */
.contact-state { display: flex; align-items: center; gap: 11px; padding: 13px 14px; border-radius: 11px; border: 1px solid var(--hair); background: rgba(255, 255, 255, .02); }
.contact-state .cs-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; }
.contact-state .cs-copy { min-width: 0; flex: 1; }
.contact-state .cs-copy strong { display: block; font-size: 12px; }
.contact-state .cs-copy small { display: block; margin-top: 2px; color: var(--ink-faint); font-size: 11px; }
.cs-good { border-color: var(--good-dim); background: var(--good-dim); }
.cs-good .cs-dot { background: var(--good); box-shadow: 0 0 0 4px var(--good-dim); }
.cs-good .cs-copy strong { color: var(--good); }
.cs-accent { border-color: var(--violet-dim); background: var(--violet-dim); }
.cs-accent .cs-dot { background: var(--violet); box-shadow: 0 0 0 4px var(--violet-dim); }
.cs-accent .cs-copy strong { color: var(--violet); }
.cs-muted .cs-dot { background: var(--ink-faint); }
.cs-muted .cs-copy strong { color: var(--ink-dim); }
.cs-warn { border-color: rgba(224, 164, 74, .26); background: var(--warning-dim); }
.cs-warn .cs-dot { background: var(--warning); box-shadow: 0 0 0 4px var(--warning-dim); }
.cs-warn .cs-copy strong { color: var(--warning); }
.cs-danger { border-color: var(--danger-dim); background: var(--danger-dim); }
.cs-danger .cs-dot { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-dim); }
.cs-danger .cs-copy strong { color: var(--danger); }
.contact-detail { margin-top: 11px; display: flex; flex-direction: column; gap: 7px; }
.contact-detail a { font-family: var(--mono); font-size: 12px; }
.contact-lines { display: grid; gap: 6px; margin-top: 11px; color: var(--ink-dim); font-size: 12px; }
.contact-lines span { display: flex; align-items: center; gap: 7px; }
.contact-lines .mono { font-family: var(--mono); font-size: 11px; }

/* status stepper */
.status-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.status-chip { min-height: 30px; padding: 0 11px; border: 1px solid var(--hair-2); border-radius: 20px; background: transparent; color: var(--ink-faint); font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; transition: .16s var(--ease); }
.status-chip:hover { border-color: var(--hair-gold); color: var(--ink); }
.status-chip.is-active { border-color: var(--gold); background: var(--gold-dim); color: var(--gold); }

/* provenance */
.provenance { padding-bottom: 22px; }
.provenance-line { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--hair); color: var(--ink-faint); font-family: var(--mono); font-size: 10px; }
.provenance-line:last-child { border-bottom: 0; }
.provenance-line b, .provenance-line a { max-width: 62%; overflow: hidden; color: var(--ink-dim); text-align: right; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.provenance-line a { color: var(--blue); }
.fallback-flag { display: inline-flex; align-items: center; gap: 7px; margin-top: 3px; padding: 4px 9px; border-radius: 7px; background: var(--warning-dim); border: 1px solid rgba(224, 164, 74, .26); color: var(--warning); font-family: var(--mono); font-size: 10px; }

/* saved searches grid */
.saved-search-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.saved-search-card { display: flex; flex-direction: column; min-height: 210px; padding: 20px; border: 1px solid var(--hair); border-radius: var(--radius); background: var(--panel); transition: .2s var(--ease); }
.saved-search-card:hover { border-color: var(--hair-gold); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.saved-search-card h2 { margin: 14px 0 9px; font-size: 18px; letter-spacing: -.02em; }
.saved-search-card p { margin: 0; color: var(--ink-dim); font-size: 12px; flex: 1; }
.saved-search-card footer { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hair); color: var(--ink-faint); font-family: var(--mono); font-size: 10px; }
.saved-search-card footer strong { color: var(--violet); }
.saved-search-card-actions { display: flex; gap: 7px; margin-top: 14px; }

/* empty / error */
.empty-state, .error-state { display: flex; flex-direction: column; align-items: center; padding: 58px 24px; border: 1px dashed var(--hair-2); border-radius: var(--radius); background: rgba(255, 255, 255, .012); text-align: center; }
.empty-glyph, .error-glyph { display: inline-grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--hair-gold); border-radius: 10px; color: var(--gold); font-family: var(--mono); font-size: 17px; }
.error-glyph { border-color: var(--danger-dim); color: var(--danger); }
.empty-state h2, .error-state h2 { margin: 15px 0 6px; font-size: 18px; }
.empty-state p, .error-state p { max-width: 400px; margin: 0 auto 18px; color: var(--ink-dim); font-size: 13px; }

/* skeletons */
.skeleton-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; padding: 16px 22px; border-bottom: 1px solid var(--hair); }
.skeleton-line { display: block; border-radius: 6px; background: linear-gradient(100deg, var(--panel-2) 30%, var(--panel-3) 50%, var(--panel-2) 70%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.sk-1 { width: 62%; height: 14px; }
.sk-2 { width: 44%; height: 10px; margin-top: 10px; }
.sk-3 { width: 30%; height: 9px; margin-top: 10px; }
.sk-score { width: 40px; height: 26px; align-self: start; }

/* account / billing */
.account-status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid var(--hair); border-radius: 8px; color: var(--ink-dim); font-family: var(--mono); font-size: 10px; }
.account-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; margin-bottom: 14px; }
.plan-panel, .usage-panel { padding-bottom: 22px; }
.plan-badge { padding: 5px 9px; border-radius: 7px; background: var(--gold-dim); border: 1px solid var(--hair-gold); color: var(--gold); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.plan-price { display: flex; align-items: baseline; gap: 8px; padding: 22px 23px 4px; }
.plan-price strong { font-family: var(--mono); font-weight: 600; font-size: 42px; letter-spacing: -.04em; }
.plan-price span { color: var(--ink-faint); font-size: 13px; }
.panel-copy { margin: 0; padding: 0 23px; color: var(--ink-dim); font-size: 13px; line-height: 1.55; }
.plan-features { display: grid; gap: 9px; padding: 20px 23px; color: var(--ink-dim); font-size: 12px; }
.plan-features span { display: flex; gap: 9px; align-items: center; }
.plan-features b { color: var(--gold); font-family: var(--mono); }
.usage-number { display: flex; align-items: baseline; gap: 9px; padding: 24px 23px 18px; }
.usage-number strong { font-family: var(--mono); font-weight: 600; font-size: 42px; letter-spacing: -.04em; }
.usage-number span { color: var(--ink-faint); font-size: 13px; }
.progress-track { height: 9px; margin: 0 23px; overflow: hidden; border-radius: 5px; background: var(--panel-3); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-lo), var(--gold)); transition: width .8s var(--ease-out); }
.progress-track.over span { background: linear-gradient(90deg, var(--danger), #ffb199); }
.usage-breakdown { display: flex; justify-content: space-between; padding: 12px 23px 0; color: var(--ink-faint); font-family: var(--mono); font-size: 10px; }
.usage-breakdown b { color: var(--ink); }
.usage-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px 23px 0; }
.usage-metric { padding: 13px; border: 1px solid var(--hair); border-radius: 10px; }
.usage-metric small { display: block; color: var(--ink-faint); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.usage-metric b { display: block; margin-top: 7px; font-family: var(--mono); font-size: 18px; color: var(--ink); }
.billing-note { display: flex; align-items: center; gap: 10px; margin: 16px 23px 0; padding: 12px; border: 1px solid var(--hair); border-radius: 10px; color: var(--ink-dim); font-size: 12px; }

/* team */
.team-panel { padding-bottom: 4px; }
.team-summary { display: flex; align-items: center; gap: 14px; padding: 22px; }
.team-summary > div { flex: 1; }
.team-summary strong { font-size: 19px; }
.team-summary p { margin: 4px 0 0; color: var(--ink-faint); font-family: var(--mono); font-size: 11px; }
.seat-pill { padding: 6px 11px; border-radius: 8px; border: 1px solid var(--hair-2); color: var(--ink-dim); font-family: var(--mono); font-size: 10px; }
.member-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 13px; align-items: center; padding: 15px 22px; border-top: 1px solid var(--hair); }
.member-row > span:nth-child(2) { min-width: 0; }
.member-row strong { display: block; overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.member-row small { display: block; overflow: hidden; margin-top: 2px; color: var(--ink-faint); font-family: var(--mono); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.member-role { color: var(--gold); font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.member-state { color: var(--good); font-family: var(--mono); font-size: 10px; }
.callout { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 18px; border: 1px dashed var(--hair-2); border-radius: var(--radius); }
.callout > div { flex: 1; }
.callout strong { font-size: 15px; }
.callout p { margin: 4px 0 0; color: var(--ink-dim); font-size: 12px; }

/* coach / support */
.support-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 14px; }
.coach-panel, .support-case-panel { padding-bottom: 22px; }
.coach-mark { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--violet-dim); border-radius: 9px; background: var(--violet-dim); color: var(--violet); font-family: var(--mono); font-size: 10px; }
.chat-thread { display: flex; flex-direction: column; gap: 16px; min-height: 300px; padding: 24px 22px 14px; }
.chat-message { display: flex; gap: 11px; max-width: 540px; animation: riseIn .35s var(--ease-out) both; }
.chat-avatar { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 8px; background: var(--violet-dim); color: var(--violet); font-family: var(--mono); font-size: 8px; font-weight: 600; }
.chat-message p { margin: 0; padding: 11px 13px; border-radius: 12px; background: var(--panel-2); color: var(--ink); font-size: 13px; line-height: 1.5; }
.chat-message small { display: block; margin-top: 6px; color: var(--ink-faint); font-family: var(--mono); font-size: 9px; }
.chat-message-user { margin-left: auto; flex-direction: row-reverse; }
.chat-message-user p { background: var(--gold-dim); border: 1px solid var(--hair-gold); }
.chat-message-user .chat-avatar { background: var(--gold-dim); color: var(--gold); }
.chat-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.coach-form { display: flex; gap: 9px; padding: 0 22px; }
.coach-form input { min-width: 0; flex: 1; min-height: 46px; padding: 0 14px; border: 1px solid var(--hair-2); border-radius: 11px; outline: 0; background: rgba(9, 10, 13, .7); font-size: 13px; }
.coach-form input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-dim); }
.coach-disclaimer { margin: 12px 22px 0; color: var(--ink-faint); font-family: var(--mono); font-size: 10px; }
.support-form { display: grid; gap: 14px; padding: 22px; }
.support-form label { display: grid; gap: 7px; color: var(--ink-dim); font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.support-form input, .support-form textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--hair-2); border-radius: 9px; outline: 0; background: rgba(9, 10, 13, .7); color: var(--ink); font-size: 13px; font-family: var(--font); resize: vertical; }
.support-form input:focus, .support-form textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-dim); }
.form-note { min-height: 16px; margin: 0; color: var(--good); font-family: var(--mono); font-size: 10px; }
.form-note.is-error { color: var(--danger); }

/* dialogs */
.command-dialog { width: min(500px, calc(100% - 28px)); padding: 0; border: 1px solid var(--hair-gold); border-radius: 16px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); color: var(--ink); box-shadow: var(--shadow-2); }
.command-dialog::backdrop { background: rgba(4, 5, 8, .74); backdrop-filter: blur(4px); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; padding: 22px 22px 14px; }
.dialog-heading h2 { margin: 6px 0 0; font-size: 19px; }
.dialog-body { padding: 0 22px 18px; }
.dialog-input { margin: 0 22px 12px; }
.dialog-input input { width: 100%; min-height: 42px; border: 0; outline: 0; background: transparent; font-size: 13px; }
.command-list { display: flex; flex-direction: column; gap: 2px; padding: 0 10px 12px; }
.command-list button { display: grid; grid-template-columns: 26px 1fr auto; gap: 11px; align-items: center; min-height: 48px; padding: 0 11px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-dim); text-align: left; transition: .14s var(--ease); }
.command-list button:hover { background: var(--gold-dim); color: var(--ink); }
.command-list .nav-symbol { color: var(--gold); }
.dialog-actions { display: flex; gap: 9px; margin-top: 4px; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 80; max-width: 360px; padding: 13px 15px; border: 1px solid var(--hair-gold); border-radius: 11px; background: linear-gradient(180deg, var(--panel-3), var(--panel-2)); color: var(--ink); box-shadow: var(--shadow-2); font-size: 13px; animation: toastIn .3s var(--ease-out) both; }

.mobile-nav { display: none; }

/* keyframes */
@keyframes riseIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* =========================== responsive =========================== */
@media (max-width: 1160px) {
  :root { --rail: 232px; }
  .topbar, .connection-banner, .main-content { padding-left: 26px; padding-right: 26px; }
  .lead-workspace-grid, .overview-grid, .account-grid, .support-grid { grid-template-columns: minmax(0, 1fr); }
  .lead-detail { position: static; min-height: 0; }
  .saved-search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  body { padding-bottom: 72px; }
  .sidebar { width: min(300px, calc(100% - 44px)); transform: translateX(-104%); transition: transform .26s var(--ease-out); box-shadow: 24px 0 60px rgba(0, 0, 0, .5); }
  .sidebar.is-open { transform: none; }
  .sidebar-close, .mobile-menu { display: inline-grid; }
  .app-frame { width: 100%; margin-left: 0; }
  .topbar { min-height: 60px; padding: 0 16px; }
  .command-trigger span:not(.command-key), .command-trigger kbd { display: none; }
  .command-trigger { width: 40px; justify-content: center; padding: 0; }
  .profile-name, .profile-button .chevron { display: none; }
  .breadcrumbs span:not(:last-child) { display: none; }
  .connection-banner { padding: 9px 16px; font-size: 11px; }
  .main-content { padding: 26px 16px 52px; }
  .page-heading { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
  .page-heading h1 { font-size: 32px; }
  .page-heading > .button, .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .hero-command { padding: 20px 17px; }
  .hero-command-copy { display: block; }
  .hero-command-copy p { margin-top: 10px; }
  .search-form { flex-direction: column; }
  .search-form input { min-height: 54px; font-size: 16px; }
  .search-form .button { width: 100%; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .metric-panel { min-height: 104px; padding: 16px; }
  .metric-panel strong { font-size: 25px; }
  .surface-heading { padding-left: 16px; padding-right: 16px; }
  .saved-list, .recent-table-wrap, .chat-thread, .support-form, .coach-form, .coach-disclaimer { padding-left: 16px; padding-right: 16px; }
  .lead-row, .detail-head, .detail-section { padding-left: 16px; padding-right: 16px; }
  .lead-table { min-width: 560px; }
  .saved-search-grid { grid-template-columns: 1fr; }
  .search-strip { padding: 16px; }
  .usage-metrics { grid-template-columns: 1fr; }
  .member-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .member-role { display: none; }
  .mobile-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); min-height: 72px; border-top: 1px solid var(--hair); background: rgba(11, 12, 16, .96); backdrop-filter: blur(18px); }
  .mobile-nav-item { display: grid; place-items: center; align-content: center; gap: 4px; padding: 8px 4px; border: 0; background: transparent; color: var(--ink-faint); font-family: var(--mono); font-size: 9px; }
  .mobile-nav-item > span:first-child { font-size: 16px; }
  .mobile-nav-item.is-active { color: var(--gold); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  body { background: #fff; color: #111; }
  .sidebar, .topbar, .connection-banner, .mobile-nav, .search-strip, .toolbar, .toast, .detail-actions, .status-row { display: none !important; }
  .app-frame { width: 100%; margin-left: 0; }
  .main-content { padding: 0; }
  .page-view:not(#view-leads) { display: none !important; }
  .lead-workspace-grid { display: block; }
  .surface { border: 1px solid #ccc; background: #fff; box-shadow: none; }
  .lead-detail { position: static; margin-top: 18px; }
}
