/* ============================================================
   FIRM HEARTBEAT — Dashboard Styles
   All component and page styles. Import after design-tokens.css.
   Section index:
     1.  Reset & Base
     2.  Layout Shell
     3.  Sidebar
     4.  Main Content Area
     5.  Page Header
     6.  Dark Hero Cards
     7.  Metric Cards (.mc)
     8.  Cards (.card)
     9.  Pipeline Outcome Strip
    10.  Funnel Bars
    11.  AI Insight Strip
    12.  Tables
    13.  Badges — Status & Source
    14.  Buttons
    15.  Form Elements
    16.  Period Selector
    17.  FHBSelect (Custom Dropdown)
    18.  Lead Detail Panel
    19.  Score Circles
    20.  Donut Rings
    21.  Specialist Cards
    22.  Leaderboard
    23.  Activity Feed
    24.  Toast Notifications
    25.  Modal / Overlay
    26.  Init Loader
    27.  Animations & Transitions
    28.  Utility Classes
   ============================================================ */


/* ── 1. RESET & BASE ─────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: var(--text-base);
  line-height: 1.5;
  min-height: 100vh;
  overflow: hidden; /* shell handles scroll */
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

img, svg {
  display: block;
  max-width: 100%;
}


/* ── 2. LAYOUT SHELL ─────────────────────────────────────── */

#app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

#sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-sidebar);
  overflow-y: auto;
  overflow-x: hidden;
}

/* Custom scrollbar for sidebar */
#sidebar::-webkit-scrollbar { width: 4px; }
#sidebar::-webkit-scrollbar-track { background: transparent; }
#sidebar::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }

#main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
  position: relative;
}

/* Custom scrollbar for main */
#main-content::-webkit-scrollbar { width: 6px; }
#main-content::-webkit-scrollbar-track { background: transparent; }
#main-content::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

#page-container {
  min-height: 100%;
  padding-bottom: 60px;
}


/* ── 3. SIDEBAR ──────────────────────────────────────────── */

.sidebar-logo {
  padding: 20px 18px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-firm-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.sidebar-firm-plan {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 1px;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-group-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 10px 8px 4px;
  margin-top: 4px;
}

.nav-group-label:first-child {
  margin-top: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--sidebar-text);
  cursor: pointer;
  transition: background var(--duration-fast), color var(--duration-fast);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  position: relative;
  user-select: none;
  white-space: nowrap;
}

.nav-item:hover {
  background: var(--surface-sunken);
  color: var(--sidebar-text-hover);
}

.nav-item.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-text);
  font-weight: 600;
}

.nav-item.active .nav-icon {
  color: var(--accent);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}

.nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-3);
  transition: color var(--duration-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item:hover .nav-icon {
  color: var(--text-2);
}

.nav-gate-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: var(--surface-sunken);
  color: var(--text-3);
}

.sidebar-footer {
  padding: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.sidebar-footer-links {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 4px 8px 2px;
  flex-wrap: wrap;
}

.sidebar-footer-link {
  font-size: 11px;
  color: var(--text-3);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color var(--duration-fast);
}

.sidebar-footer-link:hover {
  color: var(--text-2);
}

.sidebar-footer-sep {
  font-size: 11px;
  color: var(--text-3);
  margin: 0 5px;
}

.sidebar-copyright {
  font-size: 10px;
  color: var(--text-3);
  padding: 0 8px 2px;
  line-height: 1.4;
}


/* ── 4. MAIN CONTENT AREA ────────────────────────────────── */

.page-wrapper {
  padding: 0 var(--page-padding) 60px;
}

/* Settings overrides page-wrapper padding — needs full-width chrome */
.page-wrapper.settings-page {
  padding: 0;
}


/* ── 5. PAGE HEADER ──────────────────────────────────────── */

.std-page-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.std-page-hdr-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.std-page-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--surface-sunken);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.std-page-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.std-page-sub {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 1px;
  font-weight: 400;
}

.std-page-hdr-right {
  display: flex;
  align-items: center;
  gap: 8px;
}


/* ── 6. DARK HERO CARDS ──────────────────────────────────── */

.std-hero {
  background: var(--hero-default-bg);
  border: 1px solid var(--hero-default-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.std-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 100% 50%, rgba(74,127,165,0.10), transparent);
  pointer-events: none;
}

.std-hero-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.std-hero-left {
  flex: 1;
  min-width: 0;
}

.std-hero-right {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.std-hero-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 6px;
}

.std-hero-num {
  font-family: var(--font-display);
  font-size: 52px;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.std-hero-num .accent-fragment {
  color: var(--accent);
}

.std-hero-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  line-height: 1.5;
}

.std-hero-sub strong {
  color: rgba(255,255,255,0.90);
  font-weight: 600;
}

.std-hero-kpi-strip {
  display: flex;
  gap: 0;
}

.std-hero-kpi {
  padding: 0 24px;
  border-left: 1px solid rgba(255,255,255,0.1);
  min-width: 100px;
}

.std-hero-kpi:first-child {
  border-left: none;
  padding-left: 0;
}

.std-hero-kpi-val {
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 3px;
  font-family: var(--font-display);
}

.std-hero-kpi-lbl {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  line-height: 1.3;
}

.std-hero-kpi-delta {
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
}

.std-hero-up   { color: #5DCAA5; }  /* Always this green on dark bg, never var(--accent) */
.std-hero-down { color: #FF9494; }
.std-hero-flat { color: rgba(255,255,255,0.65); } /* boosted from .50 for better readability */

/* Bottom KPI strip (4-column grid below hero statement) */
.std-hero-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
  position: relative;
  z-index: 1;
}

.std-hero-kpi-cell {
  padding: 0 20px 0 0;
}

.std-hero-kpi-cell:first-child {
  padding-left: 0;
}

.std-hero-kpi-cell-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 4px;
}

.std-hero-kpi-cell-val {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 3px;
}

.std-hero-kpi-cell-delta {
  font-size: 11px;
  font-weight: 600;
}

/* Page-specific hero bg overrides */
.hero-calls    { background: var(--hero-calls-bg);    border-color: var(--hero-calls-border); }
.hero-roi      { background: var(--hero-roi-bg);      border-color: var(--hero-roi-border); }
.hero-revenue  { background: var(--hero-revenue-bg);  border-color: var(--hero-revenue-border); }
.hero-finances { background: var(--hero-finances-bg); border-color: var(--hero-finances-border); }
.hero-lost     { background: var(--hero-lost-bg);     border-color: var(--hero-lost-border); }
.hero-paths    { background: var(--hero-paths-bg);    border-color: var(--hero-paths-border); }


/* ── 7. METRIC CARDS (.mc) ───────────────────────────────── */

.mc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.mc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left-width: 3px;
  border-left-color: var(--text-3);
  padding: var(--card-padding);
  box-shadow: var(--shadow-sm);
}

.mc.accent    { border-left-color: var(--accent);  background: var(--accent-light); }
.mc.danger    { border-left-color: var(--red);     background: var(--red-light); }
.mc.warn      { border-left-color: var(--amber);   background: var(--amber-light); }
.mc.info      { border-left-color: var(--blue);    background: var(--blue-light); }
.mc.hired     { border-left-color: var(--accent);  background: var(--accent-light); }
.mc.not-hired { border-left-color: var(--red);     background: var(--red-light); }
.mc.unqualified{ border-left-color: var(--text-3); background: var(--surface-sunken); }
.mc.outbound  { border-left-color: var(--purple);  background: var(--purple-light); }

.mc-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}

.mc-val {
  font-family: var(--font-display);
  font-size: var(--mc-val-size);
  color: var(--text);
  line-height: 1;
  margin-bottom: 2px;
}

.mc-label {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
}

.mc-delta {
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
}

.mc-delta.up   { color: var(--accent); }
.mc-delta.down { color: var(--red); }
.mc-delta.flat { color: var(--text-3); }


/* ── 8. CARDS (.card) ────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.card-meta {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 400;
}

.card-body {
  padding: 16px 20px;
}

.card-hdr-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.card-hdr-strip-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.card-hdr-strip-meta {
  font-size: 11px;
  color: var(--text-3);
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}


/* ── 9. PIPELINE OUTCOME STRIP ───────────────────────────── */

.pipeline-outcome-strip {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}

.pipeline-outcome-cell {
  flex: 1;
  padding: 14px 18px;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pipeline-outcome-cell:last-child {
  border-right: none;
}

.pipeline-outcome-stripe {
  width: 3px;
  height: 32px;
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 2px;
}

.pipeline-outcome-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 2px;
}

.pipeline-outcome-val {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  margin-bottom: 2px;
}

.pipeline-outcome-sub {
  font-size: 10px;
  color: var(--text-3);
}


/* ── 10. FUNNEL BARS ─────────────────────────────────────── */

.funnel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.funnel-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.funnel-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  width: 110px;
  flex-shrink: 0;
  text-align: right;
}

.funnel-bar-track {
  flex: 1;
  height: 24px;
  background: var(--surface-sunken);
  border-radius: 4px;
  overflow: hidden;
}

.funnel-bar-fill {
  height: 100%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  transition: width var(--duration-slow) var(--ease-bar);
}

.funnel-pct {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  width: 60px;
  flex-shrink: 0;
}

.funnel-drop {
  font-size: 10px;
  color: var(--text-3);
  font-weight: 400;
  margin-left: 3px;
}


/* ── 11. AI INSIGHT STRIP ────────────────────────────────── */

.ai-strip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--surface) 100%);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
}

.ai-strip-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.ai-strip-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-darker);
  margin-bottom: 2px;
}

.ai-strip-text {
  font-size: 12px;
  color: var(--text-2);
  font-style: italic;
  line-height: 1.5;
}

.ai-strip-text strong {
  color: var(--text);
  font-style: normal;
  font-weight: 600;
}


/* ── 12. TABLES ──────────────────────────────────────────── */

.data-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table thead th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: var(--z-raised);
}

.data-table thead th.sort-active {
  color: var(--accent);
}

.data-table thead th.sortable {
  cursor: pointer;
  user-select: none;
}

.data-table thead th.sortable:hover {
  color: var(--text-2);
}

.data-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--duration-fast);
  cursor: pointer;
}

.data-table tbody tr:last-child {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: var(--surface-2);
}

.data-table tbody tr.selected {
  background: var(--accent-light);
}

.data-table tbody td {
  padding: 10px 14px;
  color: var(--text);
  vertical-align: middle;
}

.data-table tbody td.text-right { text-align: right; }
.data-table tbody td.text-center { text-align: center; }
.data-table tbody td.muted { color: var(--text-3); }

/* Lead name cell */
.lead-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lead-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-darker);
  flex-shrink: 0;
}

.lead-name {
  font-weight: 600;
  color: var(--text);
}

.lead-sub {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 1px;
}


/* ── 13. BADGES — STATUS & SOURCE ────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  line-height: 1.3;
}

/* Status badges */
.badge-hired        { background: var(--accent-light);  color: var(--accent-darker); }
.badge-booked       { background: var(--blue-light);    color: var(--blue-darker); }
.badge-new          { background: var(--surface-sunken);color: var(--text-2); }
.badge-not-hired    { background: var(--red-light);     color: var(--red-dark); }
.badge-no-case      { background: var(--surface-sunken);color: var(--text-3); }
.badge-outbound     { background: var(--purple-light);  color: var(--purple-darker); }
.badge-pipeline     { background: var(--surface-sunken);color: var(--text-2); }

/* Source badges */
.badge-lsa          { background: var(--accent-light);  color: var(--accent-darker); }
.badge-ppc          { background: var(--blue-light);    color: var(--blue-darker); }
.badge-facebook     { background: var(--purple-light);  color: var(--purple-darker); }
.badge-organic      { background: var(--surface-sunken);color: var(--text-2); }
.badge-referral     { background: var(--red-light);     color: var(--red-dark); }
.badge-source-other { background: var(--surface-sunken);color: var(--text-3); }

/* Signal badges (ROI) */
.badge-invest-more  { background: var(--accent-light);  color: var(--accent-darker); }
.badge-scale-smart  { background: var(--purple-light);  color: var(--purple-darker); }
.badge-hold-steady  { background: var(--accent-light);  color: var(--accent-darker); }
.badge-measure-first{ background: var(--amber-light);   color: var(--amber-dark); }
.badge-high-damage  { background: var(--red-light);     color: var(--red-dark); }
.badge-med-damage   { background: var(--amber-light);   color: var(--amber-dark); }

/* Specialist performance */
.badge-strong       { background: var(--accent-light);  color: var(--accent-darker); }
.badge-on-target    { background: var(--accent-light);  color: var(--accent-darker); }
.badge-needs-work   { background: var(--red-light);     color: var(--red-dark); }


/* ── 14. BUTTONS ─────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast), box-shadow var(--duration-fast);
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--surface-sunken);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--surface-sunken);
  color: var(--text);
}

.btn-danger {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.btn-danger:hover:not(:disabled) {
  background: var(--red-dark);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.btn-lg {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  cursor: pointer;
  transition: background var(--duration-fast), color var(--duration-fast);
}

.btn-icon:hover {
  background: var(--surface-sunken);
  color: var(--text);
}


/* ── 15. FORM ELEMENTS ───────────────────────────────────── */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.form-label.required::after {
  content: ' *';
  color: var(--red);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font-sans);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
  line-height: 1.5;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-border);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-3);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-hint {
  font-size: 11px;
  color: var(--text-3);
}

.form-error {
  font-size: 11px;
  color: var(--red);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}


/* ── 16. PERIOD SELECTOR ─────────────────────────────────── */

.period-pill {
  display: flex;
  gap: 3px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  padding: 3px;
}

.period-btn {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: background var(--duration-fast), color var(--duration-fast);
  white-space: nowrap;
}

.period-btn:hover {
  color: var(--text);
}

.period-btn.active {
  background: var(--text);
  color: #fff;
}

.period-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: var(--z-overlay);
  min-width: 180px;
  display: none;
}

.period-dropdown.open {
  display: block;
}

.period-dropdown-item {
  display: flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background var(--duration-fast);
}

.period-dropdown-item:hover {
  background: var(--surface-sunken);
}

.period-dropdown-item.active {
  background: var(--accent-light);
  color: var(--accent-darker);
  font-weight: 600;
}

/* Custom date range sub-panel */
.period-custom-panel {
  background: var(--surface-sunken);
  border-radius: 0 0 var(--radius) var(--radius);
}
.ps-date-inp {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 7px;
  padding: 6px 9px;
  box-sizing: border-box;
  outline: none;
  transition: border-color var(--duration-fast);
  cursor: pointer;
}
.ps-date-inp:focus {
  border-color: var(--accent);
}
/* Dropdown open-upward variant */
.period-dropdown.open-up {
  top: auto;
  bottom: calc(100% + 6px);
}


/* ── 17. FHBSELECT (CUSTOM DROPDOWN) ─────────────────────── */

.fhb-select {
  position: relative;
  display: inline-block;
}

.fhb-select-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background var(--duration-fast);
  border: none;
  background: transparent;
}

.fhb-select-trigger:hover {
  background: var(--surface-sunken);
}

.fhb-select-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: var(--z-overlay);
  min-width: 160px;
  display: none;
}

.fhb-select-menu.open {
  display: block;
}

.fhb-select-option {
  display: flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background var(--duration-fast);
}

.fhb-select-option:hover {
  background: var(--surface-sunken);
}

.fhb-select-option.selected {
  background: var(--accent-light);
  color: var(--accent-darker);
  font-weight: 600;
}


/* ── 18. LEAD DETAIL PANEL ───────────────────────────────── */

.slide-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: var(--z-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base);
}

.slide-panel-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.slide-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 860px;
  max-width: 90vw;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--duration-base) var(--ease-spring), top .32s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.slide-panel.open {
  transform: translateX(0);
}

.slide-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.slide-panel-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.slide-panel-body {
  flex: 1;
  overflow: hidden;
  padding: 0;
}

.slide-panel-body::-webkit-scrollbar { width: 4px; }
.slide-panel-body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }

.ldp-section {
  margin-bottom: 20px;
}

.ldp-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.ldp-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ldp-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ldp-field-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
}

.ldp-field-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.ldp-notes-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ldp-note {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.ldp-note-meta {
  font-size: 10px;
  color: var(--text-3);
  margin-bottom: 4px;
}

.ldp-note-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

.ldp-note-input-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.ldp-score-row {
  display: flex;
  gap: 6px;
}

.ldp-score-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  cursor: pointer;
  transition: background var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast);
}

.ldp-score-circle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ldp-score-circle.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.ldp-touchpoints {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ldp-touchpoint {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.ldp-touchpoint-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.ldp-touchpoint-dot.first {
  background: var(--accent);
}

.ldp-touchpoint-dot.other {
  background: var(--text-3);
}


/* ── 19. SCORE CIRCLES ───────────────────────────────────── */

/* (see .ldp-score-circle above — reused in tables too) */


/* ── 20. DONUT RINGS (SVG) ───────────────────────────────── */

.donut-ring-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.donut-ring-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.donut-ring-val {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text);
  line-height: 1;
}

.donut-ring-label {
  font-size: 10px;
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}


/* ── 21. SPECIALIST CARDS ────────────────────────────────── */

.spec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
}

.spec-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.spec-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.spec-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.spec-role {
  font-size: 11px;
  color: var(--text-3);
}

.spec-stat-row {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.spec-stat {
  flex: 1;
}

.spec-stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 2px;
}

.spec-stat-val {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text);
  line-height: 1;
}


/* ── 22. LEADERBOARD ─────────────────────────────────────── */

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.leaderboard-row:last-child {
  border-bottom: none;
}

.leaderboard-rank {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.leaderboard-bar-track {
  flex: 1;
  height: 6px;
  background: var(--surface-sunken);
  border-radius: 3px;
  overflow: hidden;
}

.leaderboard-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width var(--duration-slow) var(--ease-bar);
}

.leaderboard-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  width: 40px;
  text-align: right;
  flex-shrink: 0;
}


/* ── 23. ACTIVITY FEED ───────────────────────────────────── */

.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.activity-item {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.activity-dot.hired    { background: var(--accent); }
.activity-dot.booked   { background: var(--blue); }
.activity-dot.new      { background: var(--text-3); }
.activity-dot.lost     { background: var(--red); }

.activity-text {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
}

.activity-text strong {
  color: var(--text);
  font-weight: 600;
}

.activity-time {
  font-size: 11px;
  color: var(--text-3);
  margin-left: auto;
  flex-shrink: 0;
  padding-left: 8px;
}


/* ── 24. TOAST NOTIFICATIONS ─────────────────────────────── */

#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--text);
  color: var(--surface);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  pointer-events: all;
  animation: toast-in var(--duration-base) var(--ease-spring);
  min-width: 240px;
  max-width: 360px;
}

.toast.success { background: var(--accent-dark); }
.toast.error   { background: var(--red); }
.toast.warning { background: var(--amber-dark); }

@keyframes toast-in {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}


/* ── 25. MODAL / OVERLAY ─────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.96);
  transition: transform var(--duration-base) var(--ease-spring);
}

.modal-overlay.open .modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}


/* ── 26. INIT LOADER ─────────────────────────────────────── */

#init-loader {
  position: fixed;
  inset: 0;
  background: var(--surface);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: opacity var(--duration-base);
}

#init-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.init-loader-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.init-loader-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
}

.init-loader-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ── 27. ANIMATIONS & TRANSITIONS ────────────────────────── */

/* Page enter animation — applied to .page-wrapper on mount */
@keyframes page-enter {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-enter {
  animation: page-enter var(--duration-base) var(--ease-spring) both;
}

/* Staggered card entrance */
@keyframes card-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card-rise {
  animation: card-rise var(--duration-slow) var(--ease-spring) both;
}

/* Number count-up is handled in JS with requestAnimationFrame */


/* ── 28. UTILITY CLASSES ─────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-right  { text-align: right; }
.text-center { text-align: center; }

.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-3); }
.text-danger  { color: var(--red); }
.text-warning { color: var(--amber); }

.font-display { font-family: var(--font-display); }
.font-mono    { font-family: var(--font-mono); }

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.mt-4  { margin-top: 16px; }
.mb-4  { margin-bottom: 16px; }
.mb-2  { margin-bottom: 8px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }

.flex            { display: flex; }
.flex-col        { flex-direction: column; }
.items-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1          { flex: 1; }
.flex-shrink-0   { flex-shrink: 0; }

.w-full  { width: 100%; }
.h-full  { height: 100%; }

.hidden  { display: none !important; }
.visible { display: block; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

/* Upgrade gate overlay */
.gate-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  text-align: center;
  gap: 12px;
}

.gate-icon {
  font-size: 32px;
  margin-bottom: 4px;
}

.gate-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.gate-desc {
  font-size: 14px;
  color: var(--text-2);
  max-width: 380px;
  line-height: 1.6;
}

/* Demo data banner */
.demo-banner {
  background: var(--amber-light);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 12px;
  color: var(--amber-dark);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}


/* ── ALL LEADS PAGE ──────────────────────────────────────── */

/* Hero */
.leads-hero {
  background: #0C0C0B;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1), opacity .3s ease;
  max-height: 300px;
  position: relative;
}
.leads-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 100% at 85% 50%, rgba(74,127,165,.10), transparent),
    radial-gradient(ellipse 30% 60% at 15% 80%, rgba(127,119,221,.05), transparent);
  pointer-events: none;
}
.leads-hero.collapsed { max-height: 0; opacity: 0; pointer-events: none; }

.leads-hero-inner {
  display: grid;
  grid-template-columns: auto 1px auto 1px 1fr auto;
  align-items: center;
  padding: 28px 28px 24px;
  gap: 28px;
  position: relative; z-index: 1;
}

.leads-hero-eyebrow {
  font-size: 9px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.68); margin-bottom: 6px;
}
.leads-hero-count {
  font-family: var(--font-display); font-size: 64px; color: #fff;
  line-height: 1; letter-spacing: -.02em;
}
.leads-hero-count-sub { font-size: 11px; color: rgba(255,255,255,.75); margin-top: 4px; }

.leads-hero-divider { height: 72px; background: rgba(255,255,255,.08); width: 1px; }

.leads-hero-status-label {
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.22); margin-bottom: 12px;
}
.leads-status-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.leads-status-row:last-child { margin-bottom: 0; }
.leads-status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.leads-status-count { font-size: 18px; font-weight: 700; color: #fff; line-height: 1; min-width: 28px; }
.leads-status-name { font-size: 12px; color: rgba(255,255,255,.62); }

.leads-hero-metrics {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 1px; background: rgba(255,255,255,.06);
  border-radius: 12px; overflow: hidden; align-self: center;
}
.leads-metric-cell { background: rgba(255,255,255,.04); padding: 14px 18px; text-align: center; }
.leads-metric-val {
  font-family: var(--font-display); font-size: 26px; color: #fff;
  line-height: 1; margin-bottom: 3px;
}
.leads-metric-val.green { color: #5DCAA5; }
.leads-metric-val.amber { color: var(--amber); }
.leads-metric-val.red   { color: #E24B4A; }
.leads-metric-lbl { font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.3); }
.leads-metric-sub { font-size: 10px; color: rgba(255,255,255,.60); margin-top: 2px; }

.leads-hero-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; flex-shrink: 0; }
.leads-actions-row { display: flex; gap: 7px; }

.leads-hero-btn {
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  padding: 8px 14px; border-radius: 9px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.65);
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  white-space: nowrap; transition: background .15s, color .15s;
}
.leads-hero-btn:hover { background: rgba(255,255,255,.11); color: #fff; }
.leads-hero-btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.leads-hero-btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.leads-collapse-btn {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-sans); font-size: 10px; font-weight: 600;
  color: rgba(255,255,255,.25); background: none; border: none;
  cursor: pointer; padding: 0; letter-spacing: .04em; transition: color .15s;
}
.leads-collapse-btn:hover { color: rgba(255,255,255,.5); }

/* Filter bar */
.leads-filter-bar {
  background: var(--surface); border: 1px solid var(--border); border-top: none;
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px; height: 48px;
  position: sticky; top: 0; z-index: 20;
}
.leads-search-wrap { position: relative; flex: 1; max-width: 300px; }
.leads-search-icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); pointer-events: none;
}
.leads-search-input {
  font-family: var(--font-sans); font-size: 12px; width: 100%;
  padding: 7px 10px 7px 32px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--surface-sunken); color: var(--text);
  outline: none; transition: border-color .15s, background .15s;
}
.leads-search-input:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-border); }
.leads-search-input::placeholder { color: var(--text-3); }

.leads-filter-sep { width: 1px; height: 22px; background: var(--border-strong); flex-shrink: 0; }
.leads-filter-chip {
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  padding: 4px 12px; border-radius: 99px; border: none;
  background: transparent; color: var(--text-3); cursor: pointer;
  transition: background .12s, color .12s;
}
.leads-filter-chip:hover { color: var(--text); }
.leads-filter-chip.active { background: var(--text); color: #fff; }

.leads-filter-dd {
  display: flex; align-items: center; gap: 5px; font-size: 11px;
  font-weight: 500; color: var(--text-2); padding: 5px 11px;
  border-radius: 8px; border: 1px solid var(--border-strong);
  cursor: pointer; font-family: var(--font-sans); background: var(--surface);
  transition: border-color .15s, color .15s; white-space: nowrap;
}
.leads-filter-dd:hover { border-color: var(--text-3); color: var(--text); }
.leads-filter-dd.active-filter { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

.leads-filter-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.leads-show-hero-btn {
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  color: var(--text-2); padding: 5px 10px; border-radius: 7px;
  border: 1px solid var(--border-strong); background: var(--surface);
  cursor: pointer; display: flex; align-items: center; gap: 5px;
  transition: background .12s;
}
.leads-show-hero-btn:hover { background: var(--surface-sunken); }
.leads-count-lbl { font-size: 11px; font-weight: 600; color: var(--text-3); white-space: nowrap; }

/* Table */
.leads-table-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-top: none; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden;
}
.leads-table-hdr {
  display: grid;
  grid-template-columns: 2.2fr 1.1fr 1fr 0.85fr 1.1fr 0.9fr 80px;
  padding: 0 16px; height: 36px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.leads-th {
  display: flex; align-items: center; gap: 4px;
  font-size: 9px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-3);
  padding-right: 12px; cursor: default;
}
.leads-th.sortable { cursor: pointer; }
.leads-th.sortable:hover { color: var(--text-2); }
.leads-th.sort-asc svg, .leads-th.sort-desc svg { color: var(--accent); }

.leads-table-row {
  display: grid;
  grid-template-columns: 2.2fr 1.1fr 1fr 0.85fr 1.1fr 0.9fr 80px;
  padding: 0 16px; min-height: 58px; align-items: center;
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .1s;
}
.leads-table-row:last-child { border-bottom: none; }
.leads-table-row:hover { background: var(--surface-2); }
.leads-table-row.selected { background: var(--accent-light); }
.leads-table-row.dim { opacity: .55; }

.leads-td { padding-right: 12px; }
.leads-td-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.leads-td-phone { font-size: 11px; color: var(--text-3); }

.leads-score-stars { display: flex; gap: 1px; font-size: 11px; }
.leads-star-on  { color: var(--amber); }
.leads-star-off { color: #E0E0DE; }

/* Score dots — horizontal row of numbered circles in table rows */
.leads-score-horiz {
  display: flex;
  gap: 3px;
  align-items: center;
}
.leads-score-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-3);
  cursor: default;
  font-family: var(--font-sans);
  flex-shrink: 0;
  transition: background var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast);
}
button.leads-score-dot {
  cursor: pointer;
}
button.leads-score-dot:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.leads-score-dot.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.leads-row-btns { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.leads-row-btn {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--border-strong); background: var(--surface-sunken);
  color: var(--text-3); font-size: 12px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .12s, color .12s;
}
.leads-row-btn:hover { background: var(--surface); color: var(--text); }

/* Lead detail panel — overrides .slide-panel for leads-specific content */
.ldp-header-block { margin-bottom: 16px; }
.ldp-lead-name { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -.01em; margin-bottom: 4px; }
.ldp-lead-meta { font-size: 12px; color: var(--text-3); display: flex; gap: 12px; flex-wrap: wrap; }

.ldp-status-row { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }

.ldp-value-block {
  background: var(--accent-light); border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px;
  display: flex; gap: 24px;
}
.ldp-value-item {}
.ldp-value-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent-darker); margin-bottom: 2px; }
.ldp-value-num { font-family: var(--font-display); font-size: 24px; color: var(--accent-darker); line-height: 1; }

/* Dropdown filter menu (shared) */
.filter-dropdown-menu {
  position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: 6px; z-index: 50; min-width: 160px; display: none;
}
.filter-dropdown-menu.open { display: block; }
.filter-dropdown-item {
  padding: 7px 10px; border-radius: 6px; font-size: 12px; font-weight: 500;
  color: var(--text); cursor: pointer; transition: background .1s;
}
.filter-dropdown-item:hover { background: var(--surface-sunken); }
.filter-dropdown-item.selected { background: var(--accent-light); color: var(--accent-darker); font-weight: 600; }


/* ── SALES PAGE ──────────────────────────────────────────── */

.sales-hero-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 28px 32px 24px;
  position: relative;
  z-index: 1;
}
.sales-hero-left { min-width: 0; }

.sales-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 16px 32px;
  border-top: 1px solid rgba(255,255,255,.07);
  position: relative;
  z-index: 1;
}
.sales-kpi { padding-right: 24px; }
.sales-kpi-lbl {
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.25); margin-bottom: 4px;
}
.sales-kpi-val { font-size: 19px; font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: 3px; }
.sales-kpi-delta { font-size: 11px; font-weight: 600; }

/* Pacing ring */
.sales-ring-wrap { display: flex; gap: 20px; align-items: center; flex-shrink: 0; }
.sales-ring-legend { display: flex; flex-direction: column; gap: 6px; }
.sales-ring-leg {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; font-size: 11px; color: rgba(255,255,255,.72);
}
.sales-ring-leg-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.sales-ring-leg-val { font-weight: 700; color: rgba(255,255,255,.75); font-size: 12px; }
.sales-ring-projected {
  margin-top: 6px; padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sales-ring-projected-val { font-size: 11px; color: #5DCAA5; font-weight: 600; }
.sales-ring-projected-lbl { font-size: 9px; color: rgba(255,255,255,.62); margin-top: 1px; }

/* Wide grid */
.sales-grid-wide {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 14px;
}

/* Toggle buttons */
.sales-tog { display: flex; gap: 2px; }
.sales-tog-btn {
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 99px; border: none;
  background: transparent; color: var(--text-3); cursor: pointer;
  transition: background .12s, color .12s;
}
.sales-tog-btn.active { background: var(--text); color: #fff; }

/* Monthly bar chart */
.sales-chart-wrap { padding: 20px 18px 0; }
.sales-bars-area {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 140px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.sales-target-line {
  position: absolute; left: 0; right: 0;
  border-top: 1.5px dashed rgba(0,0,0,.15);
  pointer-events: none;
}
.sales-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  height: 100%;
}
.sales-bar-label-group {
  position: absolute;
  bottom: 100%;
  left: 0; right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding-bottom: 4px;
}
.sales-bar-val {
  font-size: 9px; font-weight: 700; color: var(--text-2); white-space: nowrap;
}
.sales-bar-val.curr { color: var(--text); font-size: 10px; font-weight: 800; }
.sales-bar-tick {
  font-size: 10px; color: var(--accent); height: 13px;
  display: flex; align-items: center;
}
.sales-bar {
  width: 100%; border-radius: 5px 5px 0 0; flex-shrink: 0;
  transition: height .5s var(--ease-bar);
}
.sales-bar.hit    { background: #374151; }
.sales-bar.curr   { background: var(--text); }
.sales-bar.future { background: var(--surface-sunken); }

.sales-x-labels { display: flex; gap: 5px; padding: 6px 0 10px; }
.sales-x-lbl {
  flex: 1; text-align: center; font-size: 9px;
  color: var(--text-3); font-weight: 500;
}
.sales-x-lbl.curr { font-weight: 700; color: var(--text); }

.sales-chart-footer {
  display: flex; align-items: center; gap: 14px; padding: 0 0 14px;
  font-size: 10px; color: var(--text-3); flex-wrap: wrap;
}
.sales-leg { display: flex; align-items: center; gap: 5px; }
.sales-leg-swatch { width: 10px; height: 10px; border-radius: 2px; }
.sales-leg-dash { width: 14px; border-top: 1.5px dashed rgba(0,0,0,.3); }

/* AI strip */
.sales-ai-strip {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 18px; border-top: 1px solid var(--border);
  background: linear-gradient(90deg, var(--surface), var(--accent-light));
}
.sales-ai-tag {
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-dark); flex-shrink: 0; margin-top: 1px;
}
.sales-ai-text { font-size: 11px; color: var(--text-2); font-style: italic; line-height: 1.5; }

/* Specialist scorecard rows */
.sales-sc-section-lbl {
  padding: 9px 18px 5px;
  font-size: 9px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-3);
}
.sales-sc-section-lbl.bordered { border-top: 1px solid var(--border); }
.sales-sc-row {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 18px; border-bottom: 1px solid var(--border);
}
.sales-sc-row:last-of-type { border-bottom: none; }
.sales-sc-rank { font-size: 15px; width: 22px; text-align: center; flex-shrink: 0; }
.sales-sc-info { flex: 1; min-width: 0; }
.sales-sc-name { font-size: 13px; font-weight: 600; color: var(--text); }
.sales-sc-role { font-size: 10px; color: var(--text-3); }
.sales-sc-bar-wrap { width: 90px; }
.sales-sc-bar-track { height: 4px; background: var(--surface-sunken); border-radius: 99px; overflow: hidden; }
.sales-sc-bar-fill { height: 100%; border-radius: 99px; transition: width .5s var(--ease-bar); }
.sales-sc-pct { font-size: 14px; font-weight: 700; width: 40px; text-align: right; }
.sales-sc-extra { font-size: 10px; color: var(--text-3); width: 54px; text-align: right; }
.sales-sc-sig {
  font-size: 9px; font-weight: 700; padding: 2px 7px;
  border-radius: 99px; white-space: nowrap;
}
.sales-sig-strong { background: var(--accent-light); color: var(--accent-darker); }
.sales-sig-avg    { background: var(--amber-light);  color: var(--amber-dark); }
.sales-sig-weak   { background: var(--red-light);    color: var(--red-dark); }
.sales-card-link {
  font-size: 11px; font-weight: 600; color: var(--accent-dark);
  display: block; text-align: right; padding: 10px 18px;
  border-top: 1px solid var(--border); text-decoration: none;
  cursor: pointer;
}
.sales-card-link:hover { text-decoration: underline; }

/* Practice area bars */
.sales-pa-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px; border-bottom: 1px solid var(--border);
}
.sales-pa-row:last-child { border-bottom: none; }
.sales-pa-name { font-size: 12px; font-weight: 500; width: 120px; flex-shrink: 0; color: var(--text-2); }
.sales-pa-track { flex: 1; height: 7px; background: var(--surface-sunken); border-radius: 99px; overflow: hidden; }
.sales-pa-fill { height: 100%; border-radius: 99px; transition: width .5s var(--ease-bar); }
.sales-pa-val { font-size: 12px; font-weight: 700; width: 48px; text-align: right; color: var(--text); }
.sales-pa-ct  { font-size: 10px; color: var(--text-3); width: 40px; text-align: right; }

/* Pipeline */
.sales-pipe-summary {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.sales-pipe-sum-cell { padding: 14px 18px; }
.sales-pipe-sum-cell:first-child { border-right: 1px solid var(--border); }
.sales-pipe-sum-lbl { font-size: 10px; color: var(--text-3); margin-bottom: 4px; }
.sales-pipe-sum-val { font-family: var(--font-display); font-size: 26px; color: var(--text); line-height: 1.1; }
.sales-pipe-sum-val.green { color: var(--accent); }
.sales-pipe-sum-sub { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.sales-pipe-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px; border-bottom: 1px solid var(--border);
}
.sales-pipe-row:last-of-type { border-bottom: none; }
.sales-pipe-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.sales-pipe-name { flex: 1; font-size: 12px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sales-pipe-badge {
  font-size: 9px; font-weight: 700; padding: 2px 7px;
  border-radius: 99px; white-space: nowrap; flex-shrink: 0;
}
.sales-badge-hot  { background: rgba(239,159,39,.12); color: #92400E; }
.sales-badge-warm { background: var(--accent-light); color: var(--accent-darker); }
.sales-badge-cold { background: var(--surface-sunken); color: var(--text-3); }
.sales-pipe-val { font-size: 12px; font-weight: 700; width: 44px; text-align: right; flex-shrink: 0; }


/* ── CONSULT PAGE ─────────────────────────────────────────── */

.consult-hero-body {
  display: flex;
  align-items: stretch;
  position: relative;
  z-index: 1;
}
.consult-hero-main {
  flex: 1;
  padding: 28px 32px;
}
.consult-hero-num {
  font-family: var(--font-display);
  font-size: 52px;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.consult-hero-num .ac { color: var(--accent); }

.consult-hero-kpis {
  display: flex;
  border-left: 1px solid rgba(255,255,255,.07);
}
.consult-hkpi {
  padding: 28px 26px;
  border-right: 1px solid rgba(255,255,255,.07);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 110px;
}
.consult-hkpi:last-child { border-right: none; }
.consult-hkpi-l {
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.60); margin-bottom: 5px;
}
.consult-hkpi-v { font-size: 22px; font-weight: 700; color: #fff; line-height: 1.1; }
.consult-hkpi-v.g { color: #5DCAA5; }
.consult-hkpi-v.a { color: var(--amber); }
.consult-hkpi-v.r { color: #E24B4A; }
.consult-hkpi-s { font-size: 10px; color: rgba(255,255,255,.68); margin-top: 3px; }

/* Toggle */
.consult-tog { display: flex; gap: 2px; }
.consult-tog-btn {
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 99px; border: none;
  background: transparent; color: var(--text-3); cursor: pointer;
  transition: background .12s, color .12s;
}
.consult-tog-btn.active { background: var(--text); color: #fff; }

/* AI strip */
.consult-ai-strip {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 18px; border-top: 1px solid var(--border);
  background: linear-gradient(90deg, var(--surface), var(--accent-light));
}
.consult-ai-tag {
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-dark);
  flex-shrink: 0; margin-top: 1px;
}
.consult-ai-text { font-size: 11px; color: var(--text-2); font-style: italic; line-height: 1.5; }

/* Scorecard table */
.consult-sc-tbl { width: 100%; border-collapse: collapse; }
.consult-sc-th {
  font-size: 9px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-3);
  padding: 10px 18px; text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.consult-sc-th.r { text-align: right; }
.consult-sc-td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.consult-sc-tr:last-child .consult-sc-td { border-bottom: none; }
.consult-sc-tr:hover .consult-sc-td { background: var(--surface-2); cursor: pointer; }
.consult-sc-name-cell { display: flex; align-items: center; gap: 10px; }
.consult-sc-medal { font-size: 18px; width: 26px; flex-shrink: 0; }
.consult-sc-name { font-size: 13px; font-weight: 600; color: var(--text); }
.consult-sc-sub  { font-size: 10px; color: var(--text-3); margin-top: 1px; }
.consult-sc-bar-row { display: flex; align-items: center; gap: 8px; min-width: 140px; }
.consult-sc-track { flex: 1; height: 4px; background: var(--surface-sunken); border-radius: 99px; overflow: hidden; }
.consult-sc-fill  { height: 100%; border-radius: 99px; transition: width .5s var(--ease-bar); }
.consult-sc-pct   { font-size: 13px; font-weight: 700; white-space: nowrap; }
.consult-sc-td-r  { text-align: right; font-size: 12px; color: var(--text-2); font-weight: 500; }
.consult-sc-sig { font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.consult-sig-strong { background: var(--accent-light);  color: var(--accent-darker); }
.consult-sig-avg    { background: var(--amber-light);   color: var(--amber-dark); }
.consult-sig-weak   { background: var(--red-light);     color: var(--red-dark); }
.consult-avg-row .consult-sc-td { background: var(--surface-2); }

/* Outcomes stacked bar */
.consult-outcomes-bar {
  display: flex; height: 28px; border-radius: 8px;
  overflow: hidden; gap: 2px; margin-bottom: 16px;
}
.consult-ob-seg {
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff; border-radius: 4px;
  min-width: 0; overflow: hidden; transition: flex .5s var(--ease-bar);
}
.consult-outcome-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.consult-ol-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.consult-ol-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.consult-ol-name { font-size: 11px; color: var(--text-2); flex: 1; }
.consult-ol-val  { font-size: 12px; font-weight: 700; }
.consult-ol-pct  { font-size: 10px; color: var(--text-3); margin-left: 2px; }

/* Conversion bars */
.consult-cv-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.consult-cv-row:last-child { border-bottom: none; }
.consult-cv-lbl { font-size: 11px; font-weight: 500; color: var(--text-2); width: 120px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.consult-cv-track { flex: 1; height: 7px; background: var(--surface-sunken); border-radius: 99px; overflow: hidden; }
.consult-cv-fill  { height: 100%; border-radius: 99px; transition: width .5s var(--ease-bar); }
.consult-cv-val { font-size: 12px; font-weight: 700; width: 36px; text-align: right; }
.consult-cv-n   { font-size: 10px; color: var(--text-3); width: 48px; text-align: right; white-space: nowrap; }

/* Not-hired reasons */
.consult-nh-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px; border-bottom: 1px solid var(--border);
}
.consult-nh-row:last-child { border-bottom: none; }
.consult-nh-reason { flex: 1; font-size: 12px; color: var(--text-2); }
.consult-nh-bar-wrap { width: 120px; }
.consult-nh-track { height: 5px; background: var(--surface-sunken); border-radius: 99px; overflow: hidden; }
.consult-nh-fill  { height: 100%; border-radius: 99px; background: var(--red); transition: width .5s var(--ease-bar); }
.consult-nh-val { font-size: 12px; font-weight: 700; width: 28px; text-align: right; }

/* Pipeline */
.consult-pipe-summary {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.consult-ps-cell { padding: 16px 18px; }
.consult-ps-cell:first-child { border-right: 1px solid var(--border); }
.consult-ps-lbl { font-size: 10px; color: var(--text-3); margin-bottom: 4px; }
.consult-ps-val { font-family: var(--font-display); font-size: 26px; color: var(--text); line-height: 1.1; }
.consult-ps-val.g { color: var(--accent); }
.consult-ps-sub { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.consult-pipe-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-bottom: 1px solid var(--border);
}
.consult-pipe-row:last-of-type { border-bottom: none; }
.consult-pipe-dot  { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.consult-pipe-name { flex: 1; font-size: 12px; font-weight: 500; color: var(--text); }
.consult-pipe-spec { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.consult-pipe-badge { font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 99px; white-space: nowrap; flex-shrink: 0; }
.consult-badge-hot  { background: rgba(239,159,39,.12); color: #92400E; }
.consult-badge-warm { background: var(--accent-light); color: var(--accent-darker); }
.consult-badge-cold { background: var(--surface-sunken); color: var(--text-3); }
.consult-pipe-val { font-size: 12px; font-weight: 700; width: 44px; text-align: right; flex-shrink: 0; }

/* Empty state */
.consult-empty-state {
  padding: 40px 18px; text-align: center; color: var(--text-3);
}
.consult-empty-icon  { font-size: 32px; margin-bottom: 8px; }
.consult-empty-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.consult-empty-sub   { font-size: 11px; line-height: 1.5; }


/* ── SPECIALISTS PAGE ────────────────────────────────────── */

/* Hero */
.spec-hero-body {
  display: flex; align-items: stretch; position: relative; z-index: 1;
}
.spec-hero-main { flex: 1; padding: 28px 32px; }
.spec-hero-num {
  font-family: var(--font-display); font-size: 52px; color: #fff;
  line-height: 1; margin-bottom: 8px; letter-spacing: -0.01em;
}
.spec-hero-num .ac { color: var(--accent); }
.spec-hero-kpis { display: flex; border-left: 1px solid rgba(255,255,255,.07); }
.spec-hkpi {
  padding: 28px 26px; border-right: 1px solid rgba(255,255,255,.07);
  display: flex; flex-direction: column; justify-content: center; min-width: 115px;
}
.spec-hkpi:last-child { border-right: none; }
.spec-hkpi-l {
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.60); margin-bottom: 5px;
}
.spec-hkpi-v { font-size: 22px; font-weight: 700; color: #fff; line-height: 1.1; }
.spec-hkpi-v.g { color: #5DCAA5; }
.spec-hkpi-s { font-size: 10px; color: rgba(255,255,255,.68); margin-top: 3px; }

/* Section label with rule */
.spec-section-lbl {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.spec-section-lbl::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* Intake specialist card */
.spec-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  margin-bottom: 10px;
  transition: box-shadow var(--duration-base);
}
.spec-card:hover { box-shadow: var(--shadow-md); }

.spec-card-top { display: flex; align-items: center; }

.spec-rank-col {
  width: 52px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 20px 0; border-right: 1px solid var(--border);
  flex-shrink: 0; gap: 4px;
}
.spec-medal     { font-size: 22px; line-height: 1; }
.spec-rank-num  { font-size: 9px; font-weight: 700; letter-spacing: .05em; color: var(--text-3); }

.spec-card-info { flex: 1; padding: 18px 20px; min-width: 0; }
.spec-name-row  { display: flex; align-items: center; gap: 10px; margin-bottom: 3px; flex-wrap: wrap; }
.spec-name      { font-size: 15px; font-weight: 700; color: var(--text); }
.spec-sig       { font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.spec-sig-strong{ background: var(--accent-light);  color: var(--accent-darker); }
.spec-sig-avg   { background: var(--amber-light);   color: var(--amber-dark); }
.spec-sig-weak  { background: var(--red-light);     color: var(--red-dark); }
.spec-role      { font-size: 11px; color: var(--text-3); margin-bottom: 12px; }
.spec-bar-track { height: 5px; background: var(--surface-sunken); border-radius: 99px; overflow: hidden; }
.spec-bar-fill  { height: 100%; border-radius: 99px; transition: width .5s var(--ease-bar); }

.spec-rate-col {
  padding: 18px 24px; border-left: 1px solid var(--border);
  flex-shrink: 0; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-end;
}
.spec-rate {
  font-family: var(--font-display); font-size: 42px; line-height: 1;
}
.spec-rate-lbl {
  font-size: 9px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-3); margin-top: 3px; text-align: right;
}

.spec-stats {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--border);
}
.spec-stat {
  padding: 12px 0 12px 18px;
  border-right: 1px solid var(--border);
}
.spec-stat:last-child { border-right: none; }
.spec-stat-val { font-size: 17px; font-weight: 700; color: var(--text); line-height: 1; margin-bottom: 3px; }
.spec-stat-val.g { color: var(--accent); }
.spec-stat-val.a { color: var(--amber); }
.spec-stat-val.r { color: var(--red); }
.spec-stat-lbl {
  font-size: 9px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-3);
}

/* AI strip */
.spec-ai-strip {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 18px; border-top: 1px solid var(--border);
  background: linear-gradient(90deg, var(--surface), var(--accent-light));
}
.spec-ai-tag {
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-dark); flex-shrink: 0; margin-top: 1px;
}
.spec-ai-text { font-size: 11px; color: var(--text-2); font-style: italic; line-height: 1.5; }

/* Duration vs booking insight card */
.spec-insight-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.spec-insight-body {
  display: grid; grid-template-columns: 1fr 1px 1fr;
}
.spec-insight-divider { background: var(--border); }
.spec-insight-panel   { padding: 20px 22px; }
.spec-insight-panel-title {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 14px;
}

.spec-dc-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.spec-dc-row:last-of-type { margin-bottom: 0; }
.spec-dc-name { font-size: 12px; font-weight: 600; width: 70px; flex-shrink: 0; color: var(--text); }
.spec-dc-track {
  flex: 1; height: 28px; background: var(--surface-sunken);
  border-radius: 7px; overflow: hidden; position: relative;
}
.spec-dc-fill {
  height: 100%; border-radius: 7px;
  display: flex; align-items: center; padding-left: 10px;
  transition: width .5s var(--ease-bar);
}
.spec-dc-val    { font-size: 12px; font-weight: 700; color: #fff; }
.spec-dc-diff   { font-size: 11px; color: var(--text-3); margin-top: 8px; line-height: 1.5; }

.spec-bc-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.spec-bc-row:last-of-type { margin-bottom: 0; }
.spec-bc-name { font-size: 12px; font-weight: 600; width: 70px; flex-shrink: 0; color: var(--text); }
.spec-bc-track { flex: 1; height: 28px; background: var(--surface-sunken); border-radius: 7px; overflow: hidden; }
.spec-bc-fill {
  height: 100%; border-radius: 7px;
  display: flex; align-items: center; padding-left: 10px;
  transition: width .5s var(--ease-bar);
}
.spec-bc-val  { font-size: 12px; font-weight: 700; color: #fff; }
.spec-bc-rate { font-size: 13px; font-weight: 700; width: 44px; text-align: right; flex-shrink: 0; }

/* Toggle */
.spec-tog { display: flex; gap: 2px; }
.spec-tog-btn {
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 99px; border: none;
  background: transparent; color: var(--text-3); cursor: pointer;
  transition: background .12s, color .12s;
}
.spec-tog-btn.active { background: var(--text); color: #fff; }

/* Consult scorecard table */
.spec-sc-tbl { width: 100%; border-collapse: collapse; }
.spec-sc-th {
  font-size: 9px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-3);
  padding: 10px 18px; text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.spec-sc-th.r { text-align: right; }
.spec-sc-td {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.spec-sc-tr:last-child .spec-sc-td { border-bottom: none; }
.spec-sc-tr:hover .spec-sc-td { background: var(--surface-2); }
.spec-sc-name-cell { display: flex; align-items: center; gap: 10px; }
.spec-sc-medal  { font-size: 18px; width: 24px; flex-shrink: 0; }
.spec-sc-name   { font-size: 13px; font-weight: 600; color: var(--text); }
.spec-sc-cases  { font-size: 10px; color: var(--text-3); margin-top: 1px; }
.spec-bar-row   { display: flex; align-items: center; gap: 8px; }
.spec-bar-track { flex: 1; height: 4px; background: var(--surface-sunken); border-radius: 99px; overflow: hidden; min-width: 80px; }
.spec-bar-fill  { height: 100%; border-radius: 99px; transition: width .5s var(--ease-bar); }
.spec-bar-pct   { font-size: 13px; font-weight: 700; white-space: nowrap; width: 44px; text-align: right; }
.spec-sc-td-r   { text-align: right; font-size: 12px; color: var(--text-2); font-weight: 500; }
.spec-consult-sig { font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.spec-avg-row .spec-sc-td { background: var(--surface-2); }


/* ── PIPELINE PAGE ───────────────────────────────────────── */

.pl-hero-body {
  display: flex; align-items: stretch; position: relative; z-index: 1;
}
.pl-hero-main { flex: 1; padding: 28px 32px; }
.pl-hero-num {
  font-family: var(--font-display); font-size: 52px; color: #fff;
  line-height: 1; margin-bottom: 8px; letter-spacing: -0.01em;
}
.pl-hero-num .ac { color: var(--accent); }
.pl-hero-kpis { display: flex; border-left: 1px solid rgba(255,255,255,.07); }
.pl-hkpi {
  padding: 26px 22px; border-right: 1px solid rgba(255,255,255,.07);
  display: flex; flex-direction: column; justify-content: center; min-width: 108px;
}
.pl-hkpi:last-child { border-right: none; }
.pl-hkpi-l {
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.60); margin-bottom: 5px;
}
.pl-hkpi-v { font-size: 20px; font-weight: 700; color: #fff; line-height: 1.1; }
.pl-hkpi-v.g { color: #5DCAA5; }
.pl-hkpi-v.a { color: var(--amber); }
.pl-hkpi-v.r { color: #E24B4A; }
.pl-hkpi-s { font-size: 10px; color: rgba(255,255,255,.68); margin-top: 3px; }

/* 2-column grid */
.pl-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}

/* Toggle */
.pl-tog { display: flex; gap: 2px; }
.pl-tog-btn {
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 99px; border: none;
  background: transparent; color: var(--text-3); cursor: pointer;
  transition: background .12s, color .12s;
}
.pl-tog-btn.active { background: var(--text); color: #fff; }

/* AI strip */
.pl-ai-strip {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 20px; border-top: 1px solid var(--border);
  background: linear-gradient(90deg, var(--surface), var(--accent-light));
}
.pl-ai-tag {
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-dark); flex-shrink: 0; margin-top: 1px;
}
.pl-ai-text { font-size: 11px; color: var(--text-2); font-style: italic; line-height: 1.5; }

/* Funnel */
.pl-funnel-wrap { padding: 18px 22px; }
.pl-funnel-row { margin-bottom: 10px; }
.pl-funnel-row:last-child { margin-bottom: 0; }
.pl-funnel-top {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px;
}
.pl-funnel-lbl { font-size: 12px; font-weight: 600; color: var(--text); }
.pl-funnel-meta { display: flex; align-items: center; gap: 8px; }
.pl-funnel-n   { font-size: 13px; font-weight: 700; }
.pl-funnel-r   { font-size: 11px; color: var(--text-3); }
.pl-funnel-drop {
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px;
  background: rgba(192,57,43,.08); color: var(--red);
}
.pl-funnel-bar {
  height: 34px; background: var(--surface-sunken);
  border-radius: 8px; overflow: hidden;
}
.pl-funnel-fill {
  height: 100%; border-radius: 8px;
  display: flex; align-items: center; padding-left: 14px;
  transition: width .6s var(--ease-bar);
  min-width: 40px;
}
.pl-funnel-fill-lbl { font-size: 11px; font-weight: 700; color: #fff; white-space: nowrap; }

/* Pacing */
.pl-pacing-wrap {
  display: grid; grid-template-columns: auto 1fr;
  gap: 22px; align-items: center; padding: 20px 22px;
}
.pl-pacing-rows { display: flex; flex-direction: column; }
.pl-prow {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid var(--border);
}
.pl-prow:last-of-type { border-bottom: none; }
.pl-prow-l { font-size: 12px; color: var(--text-2); }
.pl-prow-v { font-size: 14px; font-weight: 700; color: var(--text); }
.pl-pbar-wrap { margin-top: 10px; }
.pl-pbar {
  height: 5px; background: var(--surface-sunken);
  border-radius: 99px; overflow: hidden; margin-bottom: 4px;
}
.pl-pbar-fill { height: 100%; border-radius: 99px; background: var(--accent); transition: width .6s var(--ease-bar); }
.pl-pbar-marks {
  display: flex; justify-content: space-between;
  font-size: 9px; color: var(--text-3); font-weight: 600;
}

/* Not hired */
.pl-nh-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; border-bottom: 1px solid var(--border);
}
.pl-nh-row:last-child { border-bottom: none; }
.pl-nh-name { flex: 1; font-size: 12px; color: var(--text-2); }
.pl-nh-track { width: 140px; height: 5px; background: var(--surface-sunken); border-radius: 99px; overflow: hidden; }
.pl-nh-fill  { height: 100%; border-radius: 99px; background: var(--red); transition: width .5s var(--ease-bar); }
.pl-nh-n   { font-size: 14px; font-weight: 700; width: 22px; text-align: right; }
.pl-nh-pct { font-size: 10px; color: var(--text-3); width: 34px; text-align: right; }

/* Hire rate breakdown */
.pl-bd-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px; border-bottom: 1px solid var(--border);
}
.pl-bd-row:last-of-type { border-bottom: none; }
.pl-bd-name  { flex: 1; font-size: 12px; font-weight: 500; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-bd-track { width: 120px; height: 6px; background: var(--surface-sunken); border-radius: 99px; overflow: hidden; }
.pl-bd-fill  { height: 100%; border-radius: 99px; transition: width .5s var(--ease-bar); }
.pl-bd-rate  { font-size: 13px; font-weight: 700; width: 42px; text-align: right; }
.pl-bd-ct    { font-size: 10px; color: var(--text-3); width: 40px; text-align: right; white-space: nowrap; }


/* ── LEAD PATHS PAGE ─────────────────────────────────────── */

/* Hero */
.paths-hero-body {
  display: flex; align-items: stretch; position: relative; z-index: 1;
}
.paths-hero-main { flex: 1; padding: 28px 32px; }
.paths-hero-num {
  font-family: var(--font-display); font-size: 52px; color: #fff;
  line-height: 1; margin-bottom: 8px; letter-spacing: -0.01em;
}
.paths-hero-num .ac { color: var(--accent); }
.paths-hero-kpis { display: flex; border-left: 1px solid rgba(255,255,255,.07); }
.paths-hkpi {
  padding: 26px 22px; border-right: 1px solid rgba(255,255,255,.07);
  display: flex; flex-direction: column; justify-content: center; min-width: 108px;
}
.paths-hkpi:last-child { border-right: none; }
.paths-hkpi-l {
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.60); margin-bottom: 5px;
}
.paths-hkpi-v { font-size: 20px; font-weight: 700; color: #fff; line-height: 1.1; }
.paths-hkpi-v.g { color: #5DCAA5; }
.paths-hkpi-s { font-size: 10px; color: rgba(255,255,255,.68); margin-top: 3px; }



/* Wide grid: journey paths (1.55fr) + right column (1fr) */
.paths-grid-wide {
  display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px;
}

/* Journey path cards */
.paths-jcard {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 20px; border-bottom: 1px solid var(--border);
  transition: background var(--duration-fast);
}
.paths-jcard:last-of-type { border-bottom: none; }
.paths-jcard:hover { background: var(--surface-2); }
.paths-jmedal { font-size: 18px; width: 26px; text-align: center; flex-shrink: 0; }
.paths-jpath {
  display: flex; align-items: center; gap: 6px; flex: 1; flex-wrap: wrap;
}
.paths-jchip {
  font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 99px;
}
.paths-jarrow { font-size: 11px; color: var(--text-3); }
.paths-jcount { font-size: 14px; font-weight: 700; width: 24px; text-align: right; }
.paths-jpct   { font-size: 10px; color: var(--text-3); width: 36px; text-align: right; }
.paths-jbadge {
  font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 99px;
  white-space: nowrap; margin-left: 4px;
}

/* AI strip */
.paths-ai-strip {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 20px; border-top: 1px solid var(--border);
  background: linear-gradient(90deg, var(--surface), var(--accent-light));
}
.paths-ai-tag {
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-dark); flex-shrink: 0; margin-top: 1px;
}
.paths-ai-text { font-size: 11px; color: var(--text-2); font-style: italic; line-height: 1.5; }

/* First/last touch rows */
.paths-trow {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px; border-bottom: 1px solid var(--border);
}
.paths-trow:last-child { border-bottom: none; }
.paths-trow-src { font-size: 12px; font-weight: 600; width: 80px; flex-shrink: 0; color: var(--text); }
.paths-trow-track { flex: 1; height: 7px; background: var(--surface-sunken); border-radius: 99px; overflow: hidden; }
.paths-trow-fill  { height: 100%; border-radius: 99px; transition: width .5s var(--ease-bar); }
.paths-trow-n   { font-size: 13px; font-weight: 700; width: 26px; text-align: right; }
.paths-trow-pct { font-size: 10px; color: var(--text-3); width: 34px; text-align: right; }

/* Donut wrap */
.paths-donut-wrap {
  display: flex; align-items: center; gap: 22px; padding: 18px 20px;
}
.paths-dl-legend { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.paths-dl-row { display: flex; align-items: center; gap: 10px; }
.paths-dl-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.paths-dl-lbl { flex: 1; font-size: 12px; color: var(--text-2); }
.paths-dl-val { font-size: 14px; font-weight: 700; }
.paths-dl-pct { font-size: 10px; color: var(--text-3); }
.paths-dl-inset {
  margin-top: 8px; padding: 11px;
  background: var(--surface-2); border-radius: 10px;
}
.paths-dl-inset-l { font-size: 10px; color: var(--text-3); margin-bottom: 3px; }
.paths-dl-inset-v { font-size: 16px; font-weight: 700; color: var(--purple); }
.paths-dl-inset-s { font-size: 10px; color: var(--text-3); }


/* ── PATHS PAGE — VIEW TOGGLE ───────────────────────────── */

.paths-view-toggle {
  display: flex; gap: 0; background: var(--surface-sunken);
  border-radius: var(--radius-sm); padding: 2px;
}
.pvt {
  padding: 5px 13px; border-radius: 5px; font-size: 11px; font-weight: 600;
  cursor: pointer; background: none; border: none; color: var(--text-3);
  transition: all var(--duration-fast); font-family: var(--font-sans);
  white-space: nowrap;
}
.pvt.active {
  background: var(--surface); color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,.10);
}

/* ── PATHS PAGE — MATRIX ─────────────────────────────────── */

.paths-matrix-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.paths-mstat {
  background: var(--surface-sunken); border-radius: 8px; padding: 12px 14px;
}
.paths-mstat-v {
  font-family: var(--font-display); font-size: 24px;
  color: var(--text); line-height: 1;
}
.paths-mstat-l { font-size: 10px; color: var(--text-3); margin-top: 4px; line-height: 1.4; }

.paths-matrix-table {
  border-collapse: collapse; width: 100%; font-size: 12px; margin: 16px 0;
}
.paths-matrix-table thead th {
  font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-3); padding: 8px 10px; border-bottom: 1px solid var(--border);
  text-align: center; white-space: nowrap;
}
.pmx-rh {
  text-align: left !important; border-right: 1px solid var(--border);
  color: var(--text-2) !important; font-weight: 600 !important;
  min-width: 120px; font-size: 10px !important; white-space: nowrap;
}
.pmx-ch { text-align: center; }
.pmx-src-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 99px;
  margin-right: 4px; vertical-align: middle; flex-shrink: 0;
}
.paths-matrix-table tbody td {
  padding: 7px 10px; border-bottom: .5px solid var(--border); text-align: center;
}
.paths-matrix-table tbody tr:last-child td { border-bottom: none; }
.pmx-td { text-align: center; }
.pmx-cell {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); width: 36px; height: 28px;
  font-weight: 700; font-size: 13px;
}
.pmx-zero { color: var(--text-3); font-size: 11px; }
.pmx-total-col { font-weight: 700; color: var(--text); }
.pmx-total-row td { border-top: 1px solid var(--border-strong); font-weight: 700; color: var(--text); }

.paths-matrix-legend {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px; border-top: 1px solid var(--border);
  background: var(--surface-2); flex-wrap: wrap;
}
.pmx-legend-lbl { font-size: 10px; color: var(--text-3); }
.pmx-legend-item {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; color: var(--text-2);
}
.pmx-legend-swatch {
  display: inline-block; width: 14px; height: 10px; border-radius: 2px; flex-shrink: 0;
}


/* ── CALLS & ANSWERING PAGE ──────────────────────────────── */

/* Hero */
.calls-hero-body {
  display: flex; align-items: stretch; position: relative; z-index: 1;
}
.calls-hero-main { flex: 1; padding: 28px 32px; }
.calls-hero-num {
  font-family: var(--font-display); font-size: 52px; color: #fff;
  line-height: 1; margin-bottom: 8px; letter-spacing: -0.01em;
}
.calls-hero-num .dim { color: rgba(255,255,255,.60); }
.calls-hero-kpis { display: flex; border-left: 1px solid rgba(255,255,255,.07); }
.calls-hkpi {
  padding: 26px 22px; border-right: 1px solid rgba(255,255,255,.07);
  display: flex; flex-direction: column; justify-content: center; min-width: 108px;
}
.calls-hkpi:last-child { border-right: none; }
.calls-hkpi-l {
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.60); margin-bottom: 5px;
}
.calls-hkpi-v { font-size: 20px; font-weight: 700; color: #fff; line-height: 1.1; }
.calls-hkpi-v.g { color: #5DCAA5; }
.calls-hkpi-v.a { color: var(--amber); }
.calls-hkpi-v.r { color: #E24B4A; }
.calls-hkpi-s { font-size: 10px; color: rgba(255,255,255,.68); margin-top: 3px; }

/* AI strip */
.calls-ai-strip {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 18px; border-top: 1px solid var(--border);
  background: linear-gradient(90deg, var(--surface), var(--accent-light));
}
.calls-ai-tag {
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-dark); flex-shrink: 0; margin-top: 1px;
}
.calls-ai-text { font-size: 11px; color: var(--text-2); font-style: italic; line-height: 1.5; }

/* Radial clock card */
.calls-radial-wrap {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 16px 18px 14px;
}
.calls-peak-col { flex: 1; }
.calls-peak-hdr {
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 10px;
}
.calls-peak-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid var(--border);
}
.calls-peak-row:last-of-type { border-bottom: none; }
.calls-peak-name {
  font-size: 12px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 7px;
}
.calls-peak-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.calls-peak-n { font-size: 17px; font-weight: 700; }
.calls-peak-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 14px; border-radius: 99px;
  font-size: 10px; font-weight: 700;
  background: var(--amber-light); color: var(--amber-dark);
  margin-top: 10px;
}
.calls-peak-legend {
  display: flex; gap: 14px; font-size: 10px; color: var(--text-3); margin-top: 12px;
}

/* Heatmap */
.calls-heatmap {
  display: grid;
  grid-template-columns: 44px repeat(8, 1fr);
  gap: 3px;
  padding: 14px 18px 10px;
}
.calls-hm-day-lbl {
  font-size: 10px; color: var(--text-3);
  display: flex; align-items: center;
}
.calls-hm-hour-lbl {
  font-size: 8px; color: var(--text-3); text-align: center;
}
.calls-hm-cell {
  height: 24px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 700;
}
.calls-hm-legend {
  display: flex; gap: 14px; font-size: 10px; color: var(--text-3);
  padding: 0 18px 14px;
}
.calls-hm-leg-item { display: flex; align-items: center; gap: 4px; }
.calls-hm-swatch {
  width: 10px; height: 10px; border-radius: 2px; display: inline-block;
}

/* Coverage rows */
.calls-cov-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; border-bottom: 1px solid var(--border);
}
.calls-cov-row:last-child { border-bottom: none; }
.calls-cov-name { font-size: 12px; font-weight: 600; width: 130px; flex-shrink: 0; color: var(--text); }
.calls-cov-track { flex: 1; height: 8px; background: var(--surface-sunken); border-radius: 99px; overflow: hidden; }
.calls-cov-fill  { height: 100%; border-radius: 99px; transition: width .5s var(--ease-bar); }
.calls-cov-val   { font-size: 12px; font-weight: 700; width: 30px; text-align: right; }
.calls-cov-badge {
  font-size: 9px; font-weight: 700; padding: 2px 8px;
  border-radius: 99px; white-space: nowrap;
}
.calls-badge-covered { background: var(--accent-light);  color: var(--accent-darker); }
.calls-badge-gap     { background: var(--red-light);     color: var(--red-dark); }
.calls-badge-partial { background: var(--amber-light);   color: var(--amber-dark); }

/* Coverage + services layout */
.calls-grid-coverage {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 14px;
}

/* Answering services */
.calls-svc-wrap { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.calls-svc {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.calls-svc.featured {
  background: var(--accent-light);
  border-color: rgba(74,127,165,.3);
}
.calls-svc-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--surface-2);
}
.calls-svc.featured .calls-svc-header { background: var(--accent-light); }
.calls-svc-name { font-size: 13px; font-weight: 700; color: var(--text); }
.calls-svc-rec {
  font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 99px;
  background: var(--accent); color: #fff; margin-left: 6px;
}
.calls-svc-sub  { font-size: 10px; color: var(--text-3); margin-top: 1px; }
.calls-svc-price { font-size: 14px; font-weight: 700; color: var(--accent); flex-shrink: 0; }
.calls-svc-body { display: flex; }
.calls-svc-stat {
  flex: 1; padding: 12px 14px; border-right: 1px solid var(--border);
}
.calls-svc-stat:last-child { border-right: none; }
.calls-svc-stat-v { font-size: 15px; font-weight: 700; color: var(--text); }
.calls-svc-stat-l {
  font-size: 9px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-3); margin-top: 2px;
}


/* ── ROI BY CHANNEL PAGE ─────────────────────────────────── */

/* Hero */
.roi-hero-body {
  display: flex; align-items: stretch; position: relative; z-index: 1;
}
.roi-hero-main { flex: 1; padding: 28px 32px; }
.roi-hero-num {
  font-family: var(--font-display);
  font-size: 44px; color: #fff; line-height: 1;
  margin-bottom: 6px; letter-spacing: -0.01em;
}
.roi-hero-num .ac { color: var(--accent); font-size: 28px; }
.roi-hero-kpis { display: flex; border-left: 1px solid rgba(255,255,255,.07); }
.roi-hkpi {
  padding: 28px 26px; border-right: 1px solid rgba(255,255,255,.07);
  display: flex; flex-direction: column; justify-content: center; min-width: 115px;
}
.roi-hkpi:last-child { border-right: none; }
.roi-hkpi-l {
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.60); margin-bottom: 5px;
}
.roi-hkpi-v { font-size: 22px; font-weight: 700; color: #fff; line-height: 1.1; }
.roi-hkpi-v.g { color: #5DCAA5; }
.roi-hkpi-s { font-size: 10px; color: rgba(255,255,255,.68); margin-top: 3px; }

/* Trading card grid */
.roi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.trading-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0,0,0,.08);
  transition: transform var(--duration-base), box-shadow var(--duration-base);
  cursor: default;
}
.trading-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
}

.tc-top {
  padding: 20px 18px 18px;
  position: relative;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tc-signal {
  font-size: 9px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 99px;
  display: inline-block; margin-bottom: 12px; align-self: flex-start;
}

.tc-channel-name {
  font-family: var(--font-display); font-size: 22px; color: #fff;
  margin-bottom: 2px; line-height: 1.1;
}
.tc-channel-sub { font-size: 10px; color: rgba(255,255,255,.75); }

.tc-rate {
  font-family: var(--font-display); font-size: 64px; color: #fff;
  line-height: 1; letter-spacing: -.02em;
}
.tc-rate-lbl {
  font-size: 9px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.75); margin-top: 3px;
}
.tc-icon {
  position: absolute; top: 16px; right: 16px;
  font-size: 28px; opacity: .25; pointer-events: none;
}

.tc-bottom { background: rgba(255,255,255,.96); padding: 14px 16px; }
.tc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.tc-stat-lbl {
  font-size: 9px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: #6B6B67; margin-bottom: 2px; /* WCAG AA: 5.3:1 on white */
}
.tc-stat-val { font-size: 15px; font-weight: 700; color: var(--text); }
.tc-advice {
  font-size: 10px; color: #4A4A46; line-height: 1.5; /* WCAG AA on tc-bottom white */
  padding: 8px 10px; border-radius: 7px;
}

/* Comparison section */
.roi-compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.roi-comp-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; border-bottom: 1px solid var(--border);
}
.roi-comp-row:last-of-type { border-bottom: none; }
.roi-comp-icon { font-size: 16px; width: 28px; text-align: center; flex-shrink: 0; }
.roi-comp-name { font-size: 12px; font-weight: 600; flex: 1; color: var(--text); }
.roi-comp-track { width: 100px; height: 6px; background: var(--surface-sunken); border-radius: 99px; overflow: hidden; }
.roi-comp-fill  { height: 100%; border-radius: 99px; transition: width .5s var(--ease-bar); }
.roi-comp-val   { font-size: 13px; font-weight: 700; width: 48px; text-align: right; }
.roi-comp-sig   { font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 99px; white-space: nowrap; }

/* AI strip */
.roi-ai-strip {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 18px; border-top: 1px solid var(--border);
  background: linear-gradient(90deg, var(--surface), var(--accent-light));
}
.roi-ai-tag {
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-dark); flex-shrink: 0; margin-top: 1px;
}
.roi-ai-text { font-size: 11px; color: var(--text-2); font-style: italic; line-height: 1.5; }


/* ── REVENUE PAGE ────────────────────────────────────────── */

/* Hero */
.rev-hero-body { display: flex; align-items: stretch; position: relative; z-index: 1; }
.rev-hero-main { flex: 1; padding: 28px 32px; }
.rev-hero-num {
  font-family: var(--font-display); font-size: 52px; color: #fff;
  line-height: 1; margin-bottom: 8px; letter-spacing: -0.01em;
}
.rev-hero-num .ac { color: var(--accent); }
.rev-hero-kpis { display: flex; border-left: 1px solid rgba(255,255,255,.07); }
.rev-hkpi {
  padding: 28px 22px; border-right: 1px solid rgba(255,255,255,.07);
  display: flex; flex-direction: column; justify-content: center; min-width: 110px;
}
.rev-hkpi:last-child { border-right: none; }
.rev-hkpi-l { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.60); margin-bottom: 5px; }
.rev-hkpi-v { font-size: 20px; font-weight: 700; color: #fff; line-height: 1.1; }
.rev-hkpi-v.g { color: #5DCAA5; }
.rev-hkpi-v.r { color: #E24B4A; }
.rev-hkpi-s { font-size: 10px; color: rgba(255,255,255,.68); margin-top: 3px; }

/* Toggle */
.rev-tog { display: flex; gap: 2px; }
.rev-tog-btn {
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 99px; border: none;
  background: transparent; color: var(--text-3); cursor: pointer;
  transition: background .12s, color .12s;
}
.rev-tog-btn.active { background: var(--text); color: #fff; }

/* AI strip */
.rev-ai-strip {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 18px; border-top: 1px solid var(--border);
  background: linear-gradient(90deg, var(--surface), var(--accent-light));
}
.rev-ai-tag { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); flex-shrink: 0; margin-top: 1px; }
.rev-ai-text { font-size: 11px; color: var(--text-2); font-style: italic; line-height: 1.5; }

/* Monthly bar chart card */
.rev-chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.rev-chart-hdr { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--border); }
.rev-chart-title { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }

.rev-big-chart {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 36px 24px 0; height: 220px; position: relative;
  border-bottom: 2px solid var(--border);
}
.rev-target-line { position: absolute; left: 24px; right: 24px; border-top: 1.5px dashed rgba(0,0,0,.1); pointer-events: none; }
.rev-target-line::before {
  content: attr(data-label);
  position: absolute; right: 0; top: -18px;
  font-size: 9px; font-weight: 600; color: var(--text-3);
}

.rev-bc-col {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; height: 100%; position: relative; cursor: default;
}
.rev-bc-col:hover .rev-bc-bar { filter: brightness(1.15); }
.rev-bc-col:hover .rev-bc-val { opacity: 1; }

.rev-bc-bar { width: 100%; border-radius: 6px 6px 0 0; transition: filter .15s; }
.rev-bc-bar.hit    { background: linear-gradient(to top, #2E3A52, #374B6A); }
.rev-bc-bar.curr   { background: linear-gradient(to top, var(--text), #3A3A38); }
.rev-bc-bar.miss   { background: linear-gradient(to top, #E8AEA8, #D4948E); }
.rev-bc-bar.future { background: var(--surface-sunken); }

.rev-bc-val {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 700; color: var(--text); white-space: nowrap;
  opacity: 0; transition: opacity .15s;
  background: var(--surface); padding: 2px 6px; border-radius: 4px;
  border: 1px solid var(--border-strong); pointer-events: none; z-index: 10;
}
.rev-bc-val.always { opacity: 1; font-weight: 800; }
.rev-bc-tick { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-size: 11px; line-height: 1; }

.rev-xlabels { display: flex; gap: 8px; padding: 8px 24px 0; }
.rev-xlabel { flex: 1; text-align: center; font-size: 9px; color: var(--text-3); font-weight: 500; padding-bottom: 12px; }
.rev-xlabel.curr { font-weight: 800; color: var(--text); font-size: 10px; }

.rev-chart-leg { display: flex; align-items: center; gap: 16px; padding: 0 24px 16px; font-size: 10px; color: var(--text-3); }
.rev-leg-item { display: flex; align-items: center; gap: 5px; }
.rev-leg-sw   { width: 10px; height: 10px; border-radius: 2px; }
.rev-leg-dash { width: 16px; border-top: 1.5px dashed rgba(0,0,0,.25); }

/* Stat tiles */
.rev-stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.rev-tile {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  position: relative; overflow: hidden;
}
.rev-tile::before {
  content: ''; position: absolute; top: -20px; right: -20px;
  width: 80px; height: 80px; border-radius: 50%; opacity: .06; pointer-events: none;
}
.rev-tile.green::before { background: var(--accent); }
.rev-tile.red::before   { background: var(--red); }
.rev-tile-icon { font-size: 24px; margin-bottom: 10px; }
.rev-tile-lbl  { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.rev-tile-val  { font-family: var(--font-display); font-size: 36px; line-height: 1; margin-bottom: 4px; }
.rev-tile-sub  { font-size: 11px; color: var(--text-3); }
.rev-tile-bar  { height: 3px; background: var(--surface-sunken); border-radius: 99px; margin-top: 12px; overflow: hidden; }
.rev-tile-bar-fill { height: 100%; border-radius: 99px; transition: width .6s var(--ease-bar); }

/* Waterfall */
.rev-waterfall-card {
  background: #0C0C0B; border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; position: relative;
}
.rev-waterfall-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(74,127,165,.07), transparent); pointer-events: none; }
.rev-waterfall-inner { display: flex; align-items: flex-end; gap: 0; padding: 32px 32px 0; height: 180px; position: relative; z-index: 1; }
.rev-wf-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.rev-wf-bar { width: 70%; border-radius: 8px 8px 0 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 10px; }
.rev-wf-bar-lbl { font-size: 11px; font-weight: 700; color: #fff; }
.rev-wf-arrow-col { width: 40px; display: flex; align-items: center; justify-content: center; padding-bottom: 30px; }
.rev-wf-arrow { font-size: 18px; color: rgba(255,255,255,.45); }
.rev-waterfall-labels { display: flex; border-top: 1px solid rgba(255,255,255,.07); position: relative; z-index: 1; }
.rev-wf-lbl-col { flex: 1; padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.rev-wf-lbl-col.arr { width: 40px; flex: none; }
.rev-wf-name   { font-size: 10px; color: rgba(255,255,255,.68); font-weight: 600; letter-spacing: .05em; }
.rev-wf-amount { font-size: 16px; font-weight: 700; font-family: var(--font-display); }

/* Bottom row */
.rev-bottom-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Practice area tiles */
.rev-pa-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px; }
.rev-pa-tile { border-radius: 10px; padding: 14px; position: relative; overflow: hidden; }
.rev-pa-tile-name { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.8); margin-bottom: 6px; }
.rev-pa-tile-val  { font-family: var(--font-display); font-size: 26px; color: #fff; line-height: 1; }
.rev-pa-tile-sub  { font-size: 10px; color: rgba(255,255,255,.72); margin-top: 4px; }
.rev-pa-tile-bar  { height: 3px; border-radius: 99px; margin-top: 10px; opacity: .5; overflow: hidden; }
.rev-pa-tile-bar-fill { height: 100%; border-radius: 99px; background: rgba(255,255,255,.8); }

/* Referral summary */
.rev-ref-badge { font-size:10px;font-weight:700;padding:3px 10px;border-radius:99px;background:var(--accent-light);color:var(--accent-darker);white-space:nowrap; }

/* 3-way toggle inside referral card header */
.rev-ref-toggle { display:flex;gap:3px; }
.rev-rtog { padding:4px 11px;border-radius:99px;font-size:11px;font-weight:600;cursor:pointer;border:1px solid var(--border-strong);background:var(--surface);color:var(--text-3);transition:all .1s;font-family:var(--font-sans); }
.rev-rtog:hover { background:var(--accent-light);color:var(--accent-darker);border-color:var(--accent-border); }
.rev-rtog.active { background:var(--accent);color:#fff;border-color:transparent; }

.rev-ref-summary { display:grid;border-bottom:1px solid var(--border); }

/* Source header rows */
.rev-ref-src-hdr { cursor:pointer; }
.rev-ref-count { font-size:11px;font-weight:700;color:var(--purple);background:#EEEDFE;padding:2px 9px;border-radius:99px; }
.rev-ref-cases { font-size:11px;font-weight:700;color:var(--green);background:var(--green-light,#E1F5EE);padding:2px 9px;border-radius:99px; }
.rev-ref-chev { font-size:11px;color:var(--text-3);transition:transform .15s;display:inline-block;margin-left:4px; }
.rev-ref-chev.open { transform:rotate(90deg); }

/* Expanded: individual lead rows (Value + Volume) */
.rev-ref-lead-list { background:var(--surface-2); }
.rev-ref-lead-row { display:grid;grid-template-columns:minmax(80px,auto) auto 1fr auto;align-items:center;gap:8px;padding:8px 20px 8px 36px;border-top:1px solid var(--border);transition:background .1s; }
.rev-ref-lead-row:hover { background:var(--surface-sunken); }
.rev-ref-lead-name { font-size:12px;font-weight:600;color:var(--text); }
.rev-ref-lead-pa { font-size:10px;font-weight:600;padding:2px 7px;border-radius:4px;white-space:nowrap;flex-shrink:0; }
.rev-ref-lead-type { font-size:11px;color:var(--text-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.rev-ref-lead-val { font-size:12px;font-weight:700;text-align:right;white-space:nowrap; }
.rev-ref-lead-ok { font-size:11px;color:var(--green);font-weight:600;white-space:nowrap; }
.rev-ref-lead-no { font-size:11px;color:var(--text-3);white-space:nowrap; }

/* Expanded: PA bar breakdown (Practice area view) */
.rev-ref-pa-breakdown { background:var(--surface-2);border-top:1px solid var(--border);padding:12px 20px 14px 36px;display:flex;flex-direction:column;gap:9px; }
.rev-ref-pa-row { display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:8px; }
.rev-ref-pa-chip { font-size:10px;font-weight:600;padding:2px 8px;border-radius:4px;white-space:nowrap; }
.rev-ref-pa-track { height:6px;background:var(--surface-sunken);border-radius:99px;overflow:hidden; }
.rev-ref-pa-fill { height:100%;border-radius:99px;transition:width .4s ease; }
.rev-ref-pa-n { font-size:11px;font-weight:600;color:var(--text-3);text-align:right;white-space:nowrap; }
.rev-ref-pa-val { font-size:11px;font-weight:700;min-width:44px;text-align:right;white-space:nowrap; }
.rev-ref-kpi { padding: 16px 20px; border-right: 1px solid var(--border); }
.rev-ref-kpi:nth-child(even) { border-right: none; }
.rev-ref-kpi-lbl { font-size: 10px; color: var(--text-3); margin-bottom: 3px; }
.rev-ref-kpi-val { font-family: var(--font-display); font-size: 28px; line-height: 1; }
.rev-ref-row { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.rev-ref-row:last-of-type { border-bottom: none; }
.rev-ref-dot  { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.rev-ref-name { flex: 1; font-size: 13px; font-weight: 600; color: var(--text); }
.rev-ref-conv { font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-light); padding: 2px 8px; border-radius: 99px; }
.rev-ref-val  { font-size: 14px; font-weight: 700; width: 52px; text-align: right; }


/* ── FINANCES PAGE ───────────────────────────────────────── */

/* Hero */
.fin-hero-body { display: flex; align-items: stretch; position: relative; z-index: 1; }
.fin-hero-main { flex: 1; padding: 28px 32px; }
.fin-hero-num {
  font-family: var(--font-display); font-size: 52px; color: #fff;
  line-height: 1; margin-bottom: 8px; letter-spacing: -0.01em;
}
.fin-hero-num .ac { color: var(--accent); }
.fin-hero-kpis { display: flex; border-left: 1px solid rgba(255,255,255,.07); }
.fin-hkpi {
  padding: 26px 22px; border-right: 1px solid rgba(255,255,255,.07);
  display: flex; flex-direction: column; justify-content: center; min-width: 110px;
}
.fin-hkpi:last-child { border-right: none; }
.fin-hkpi-l { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.60); margin-bottom: 5px; }
.fin-hkpi-v { font-size: 20px; font-weight: 700; color: #fff; line-height: 1.1; }
.fin-hkpi-v.g { color: #5DCAA5; }
.fin-hkpi-v.a { color: var(--amber); }
.fin-hkpi-s { font-size: 10px; color: rgba(255,255,255,.68); margin-top: 3px; }

/* Toggle */
.fin-tog { display: flex; gap: 2px; }
.fin-tog-btn {
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 99px; border: none;
  background: transparent; color: var(--text-3); cursor: pointer;
  transition: background .12s, color .12s;
}
.fin-tog-btn.active { background: var(--text); color: #fff; }

/* AI strip */
.fin-ai-strip {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 18px; border-top: 1px solid var(--border);
  background: linear-gradient(90deg, var(--surface), var(--accent-light));
}
.fin-ai-tag { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); flex-shrink: 0; margin-top: 1px; }
.fin-ai-text { font-size: 11px; color: var(--text-2); font-style: italic; line-height: 1.5; }

/* Dual bar chart */
.fin-chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.fin-chart-area {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 32px 24px 0; height: 200px; position: relative;
  border-bottom: 1px solid var(--border);
}
.fin-target-line { position: absolute; left: 24px; right: 24px; border-top: 1.5px dashed rgba(0,0,0,.1); pointer-events: none; }
.fin-bc { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.fin-bc-bars { flex: 1; display: flex; align-items: flex-end; gap: 2px; width: 100%; justify-content: center; }
.fin-bar { flex: 1; border-radius: 4px 4px 0 0; transition: filter .15s; }
.fin-bc-val { font-size: 9px; font-weight: 700; color: var(--text-2); white-space: nowrap; margin-bottom: 3px; text-align: center; }
.fin-bar:hover { filter: brightness(1.08); }
.fin-bc-lbl { text-align: center; font-size: 9px; font-weight: 500; color: var(--text-3); padding: 6px 0 12px; }
.fin-bc-lbl.curr { font-weight: 800; color: var(--text); }
.fin-chart-leg { display: flex; align-items: center; gap: 14px; padding: 10px 24px; font-size: 10px; color: var(--text-3); }
.fin-leg-item { display: flex; align-items: center; gap: 5px; }
.fin-leg-sw { width: 10px; height: 10px; border-radius: 2px; }

/* P&L table */
.fin-pl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.fin-pl-table { width: 100%; border-collapse: collapse; }
.fin-pl-th {
  font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3); padding: 11px 20px; text-align: right;
  border-bottom: 2px solid var(--border); background: var(--surface-2);
}
.fin-pl-th:first-child { text-align: left; min-width: 200px; }
.fin-pl-th.total { color: var(--text); font-size: 10px; }
.fin-pl-td { padding: 13px 20px; text-align: right; font-size: 12px; color: var(--text-2); border-bottom: 1px solid var(--border); }
.fin-pl-td:first-child { text-align: left; }
.fin-pl-td.strong { font-weight: 700; font-size: 13px; color: var(--text); }
.fin-pl-td.total  { font-weight: 800; }
.fin-pl-row-label { font-size: 13px; font-weight: 600; color: var(--text); }
.fin-pl-row-sub   { font-size: 10px; color: var(--text-3); margin-top: 1px; }
.fin-pl-tr.featured .fin-pl-td { background: rgba(74,127,165,.04); }
.fin-pl-tr.featured .fin-pl-td:first-child { border-left: 3px solid var(--accent); padding-left: 17px; }
.fin-pl-tr.dim .fin-pl-td { opacity: .65; }
.fin-pl-tr.footer .fin-pl-td { background: var(--surface-2); border-top: 1px solid var(--border-strong); }
.fin-pl-tr:last-child .fin-pl-td { border-bottom: none; }
.fin-rate-chip { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.fin-rate-chip.warn { background: var(--amber-light); color: var(--amber-dark); }
.fin-rate-chip.good { background: var(--accent-light); color: var(--accent-darker); }

/* AR card */
.fin-ar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.fin-ar-top { display: grid; grid-template-columns: 1fr 2fr; border-bottom: 1px solid var(--border); }
.fin-ar-outstanding { padding: 28px 24px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--border); }
.fin-ar-out-lbl { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(192,57,43,.6); margin-bottom: 6px; }
.fin-ar-out-val { font-family: var(--font-display); font-size: 52px; color: var(--red); line-height: 1; }
.fin-ar-out-sub { font-size: 11px; color: rgba(192,57,43,.5); margin-top: 6px; }
.fin-ar-summary { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.fin-ar-cell { padding: 20px; border-right: 1px solid var(--border); display: flex; flex-direction: column; justify-content: center; }
.fin-ar-cell:last-child { border-right: none; }
.fin-ar-cell-lbl { font-size: 10px; color: var(--text-3); margin-bottom: 4px; }
.fin-ar-cell-val { font-family: var(--font-display); font-size: 28px; line-height: 1; color: var(--text); }
.fin-ar-cell-sub { font-size: 10px; color: var(--text-3); margin-top: 3px; }
.fin-ar-tbl { width: 100%; border-collapse: collapse; }
.fin-ar-th { font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 10px 20px; text-align: right; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.fin-ar-th:first-child { text-align: left; }
.fin-ar-td { padding: 12px 20px; border-bottom: 1px solid var(--border); font-size: 12px; text-align: right; color: var(--text-2); }
.fin-ar-td:first-child { text-align: left; font-weight: 600; color: var(--text); }
.fin-ar-tr:last-child .fin-ar-td { border-bottom: none; }
.fin-mini-rate { display: inline-flex; align-items: center; gap: 6px; }
.fin-mini-track { width: 48px; height: 4px; background: var(--surface-sunken); border-radius: 99px; overflow: hidden; }
.fin-mini-fill  { height: 100%; border-radius: 99px; transition: width .5s var(--ease-bar); }


/* ── LOST REVENUE PAGE ───────────────────────────────────── */

/* Cinematic hero */
.lost-hero {
  background: #0D0808;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  border: 1px solid rgba(192,57,43,.12);
}
.lost-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 100% at 0% 50%, rgba(192,57,43,.14), transparent 70%);
  pointer-events: none;
}
.lost-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative; min-height: 240px;
}
.lost-hero-left {
  padding: 36px 40px;
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid rgba(255,255,255,.04);
  position: relative; z-index: 1;
}
.lost-hero-eyebrow {
  font-size: 9px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,100,100,.45);
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.lost-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: #E24B4A; flex-shrink: 0; position: relative;
}
.lost-pulse::after {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%; border: 2px solid #E24B4A;
  animation: lost-pulse 2s ease-out infinite; opacity: 0;
}
@keyframes lost-pulse {
  0%   { transform: scale(1); opacity: .7; }
  100% { transform: scale(2.5); opacity: 0; }
}
.lost-hero-num {
  font-family: var(--font-display); font-size: 68px;
  color: #E8AEA8; line-height: 1; letter-spacing: -.02em; margin-bottom: 12px;
}
.lost-hero-desc { font-size: 14px; color: rgba(255,255,255,.72); line-height: 1.75; }
.lost-hero-desc b { color: rgba(255,130,130,.65); font-weight: 600; }

.lost-hero-right {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: rgba(255,255,255,.04);
  position: relative; z-index: 1;
}
.lost-hero-stat {
  background: #0D0808; padding: 26px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.lost-hero-stat.danger { background: rgba(192,57,43,.07); }
.lost-hero-stat-lbl {
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,100,100,.35); margin-bottom: 8px;
}
.lost-hero-stat-val {
  font-family: var(--font-display); font-size: 36px;
  color: rgba(255,150,150,.75); line-height: 1;
}
.lost-hero-stat-val.red { color: #E24B4A; }
.lost-hero-stat-sub { font-size: 10px; color: rgba(255,255,255,.60); margin-top: 4px; }

.lost-hero-bar {
  height: 4px; background: rgba(255,255,255,.04);
  position: relative; overflow: hidden;
}
.lost-hero-bar-lbl {
  position: absolute; right: 16px; top: -17px;
  font-size: 9px; font-weight: 700; color: rgba(255,100,100,.4);
  letter-spacing: .06em; text-transform: uppercase;
}
.lost-hero-bar-fill {
  position: absolute; top: 0; left: 0; height: 100%;
  background: linear-gradient(to right, #8B1C1C, #C0392B, #E24B4A);
  transition: width 1.2s cubic-bezier(.25,.46,.45,.94);
}

/* Channel damage cards */
.lost-dmg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lost-dmg {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.lost-dmg-top { padding: 20px 22px 16px; }
.lost-dmg-hdr {
  display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px;
}
.lost-dmg-name { font-size: 13px; font-weight: 700; color: var(--text); }
.lost-dmg-sub  { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.lost-dmg-badge {
  font-size: 9px; font-weight: 700; padding: 3px 9px;
  border-radius: 99px; white-space: nowrap; flex-shrink: 0;
}
.lost-dmg-badge.high   { background: var(--red-light);   color: var(--red-dark); }
.lost-dmg-badge.medium { background: var(--amber-light);  color: var(--amber-dark); }
.lost-dmg-badge.low    { background: var(--accent-light); color: var(--accent-darker); }
.lost-dmg-big { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 8px; }
.lost-dmg-pct { font-family: var(--font-display); font-size: 56px; line-height: 1; letter-spacing: -.02em; }
.lost-dmg-pct-lbl { font-size: 11px; color: var(--text-3); padding-bottom: 10px; line-height: 1.4; }
.lost-dmg-bar { height: 5px; background: var(--surface-sunken); border-radius: 3px; overflow: hidden; margin-bottom: 14px; }
.lost-dmg-bar-fill { height: 100%; border-radius: 3px; transition: width .8s var(--ease-bar); }
.lost-dmg-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: 1px solid var(--border); }
.lost-dmg-stat { padding: 12px 16px; border-right: 1px solid var(--border); }
.lost-dmg-stat:last-child { border-right: none; }
.lost-dmg-stat-l { font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.lost-dmg-stat-v { font-size: 15px; font-weight: 700; color: var(--text); }

/* Cascade */
.lost-cascade { padding: 22px; }
.lost-cascade-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative;
}
.lost-cascade-grid::after {
  content: ''; position: absolute; top: 18px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(to right, rgba(192,57,43,.1), rgba(192,57,43,.25), rgba(74,127,165,.2));
  pointer-events: none;
}
.lost-casc { padding: 0 10px; position: relative; z-index: 1; }
.lost-casc:not(:last-child)::after {
  content: '→'; position: absolute; right: -10px; top: 12px;
  font-size: 16px; color: var(--text-3); z-index: 2;
}
.lost-casc-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 9px;
}
.lost-casc-title { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 4px; line-height: 1.3; }
.lost-casc-body  { font-size: 10px; color: var(--text-3); line-height: 1.5; margin-bottom: 7px; }
.lost-casc-note  { font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 99px; display: inline-block; }

/* Dot grid */
.lost-dot-legend { display: flex; gap: 12px; font-size: 10px; color: var(--text-3); }
.lost-dot-grid { display: flex; flex-wrap: wrap; gap: 4px; padding: 16px 20px; }
.lost-dot { width: 11px; height: 11px; border-radius: 3px; }
.lost-dot.ans  { background: var(--accent); opacity: .45; }
.lost-dot.miss { background: #E24B4A; }

.lost-burn-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); }
.lost-burn-stat { padding: 12px 16px; border-right: 1px solid var(--border); }
.lost-burn-stat:last-child { border-right: none; }
.lost-burn-stat-l { font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); margin-bottom: 3px; }
.lost-burn-stat-v { font-size: 16px; font-weight: 700; color: var(--red); }

.lost-ai-strip {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 18px; border-top: 1px solid var(--border);
  background: linear-gradient(90deg, var(--surface), var(--accent-light));
}
.lost-ai-tag { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); flex-shrink: 0; margin-top: 1px; }
.lost-ai-text { font-size: 11px; color: var(--text-2); font-style: italic; line-height: 1.5; }

/* Recovery dark card */
.lost-recovery {
  background: #091812; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid rgba(29,158,117,.1);
}
.lost-recovery-hdr {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-bottom: 1px solid rgba(29,158,117,.08);
}
.lost-recovery-title {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(111,207,151,.45);
}
.lost-rc-nums {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 1px; background: rgba(29,158,117,.08);
  border-bottom: 1px solid rgba(29,158,117,.08);
}
.lost-rc-num { background: #091812; padding: 26px 30px; }
.lost-rc-num-lbl { font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.68); margin-bottom: 8px; }
.lost-rc-num-val { font-family: var(--font-display); font-size: 52px; line-height: 1; letter-spacing: -.02em; margin-bottom: 4px; }
.lost-rc-num-sub { font-size: 11px; color: rgba(255,255,255,.65); }
.lost-rc-bottom { display: grid; grid-template-columns: 1fr 380px; border-top: 1px solid rgba(29,158,117,.08); }
.lost-rc-left { padding: 24px 30px; border-right: 1px solid rgba(29,158,117,.1); }
.lost-rc-right { display: flex; flex-direction: column; }
.lost-rc-math { font-size: 13px; color: rgba(255,255,255,.70); line-height: 2.1; margin-bottom: 20px; }
.lost-rc-math b { color: #5DCAA5; font-weight: 700; font-size: 15px; }
.lost-aa-box {
  display: flex; align-items: flex-start; gap: 16px; padding: 18px;
  background: rgba(29,158,117,.08); border: 1px solid rgba(29,158,117,.15);
  border-radius: 12px;
}
.lost-aa-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(29,158,117,.2); display: flex; align-items: center;
  justify-content: center; font-size: 22px; flex-shrink: 0;
}
.lost-aa-eyebrow { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(111,207,151,.5); margin-bottom: 5px; }
.lost-aa-name { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.lost-aa-desc { font-size: 11px; color: rgba(255,255,255,.72); line-height: 1.55; margin-bottom: 12px; }
.lost-aa-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.lost-aa-tag { font-size: 10px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: rgba(29,158,117,.15); color: rgba(111,207,151,.7); }
.lost-aa-btn {
  display: inline-block; padding: 10px 20px; font-size: 12px; font-weight: 700;
  background: var(--accent); color: #fff; border-radius: 9px; text-decoration: none;
  font-family: var(--font-sans); cursor: pointer; border: none;
  transition: background var(--duration-fast);
}
.lost-aa-btn:hover { background: var(--accent-dark); }
.lost-aa-note { font-size: 10px; color: rgba(255,255,255,.60); margin-top: 8px; }
.lost-rc-cost { padding: 24px 26px; border-bottom: 1px solid rgba(29,158,117,.08); flex: 1; }
.lost-rc-cost-lbl { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-bottom: 8px; }
.lost-rc-cost-val { font-family: var(--font-display); font-size: 48px; color: #5DCAA5; line-height: 1; margin-bottom: 4px; }
.lost-rc-cost-sub { font-size: 11px; color: rgba(255,255,255,.65); margin-bottom: 16px; }
.lost-rc-divider { height: 1px; background: rgba(255,255,255,.06); margin-bottom: 16px; }
.lost-rc-compare-lbl { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-bottom: 10px; }
.lost-rc-compare-row { display: flex; align-items: center; justify-content: space-between; font-size: 11px; margin-bottom: 7px; }
.lost-rc-compare-name { color: rgba(255,255,255,.68); }
.lost-rc-compare-val  { color: rgba(255,255,255,.80); font-weight: 600; }
.lost-rc-savings { padding: 16px 26px; background: rgba(29,158,117,.06); }
.lost-rc-savings-lbl { font-size: 10px; color: rgba(111,207,151,.45); font-weight: 600; margin-bottom: 3px; }
.lost-rc-savings-val { font-family: var(--font-display); font-size: 26px; color: #5DCAA5; }
.lost-rc-savings-sub { font-size: 10px; color: rgba(255,255,255,.60); margin-top: 2px; }

/* Option cards */
.lost-option-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.lost-option-stripe { height: 3px; }
.lost-option-body { padding: 22px; }
.lost-option-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.lost-option-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.lost-option-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.lost-option-sub   { font-size: 11px; color: var(--text-3); }
.lost-option-desc  { font-size: 12px; color: var(--text-2); line-height: 1.7; margin-bottom: 18px; }
.lost-option-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.lost-option-stat  { background: var(--surface-2); border-radius: 10px; padding: 12px; text-align: center; }
.lost-option-stat-v { font-family: var(--font-display); font-size: 22px; line-height: 1; margin-bottom: 3px; }
.lost-option-stat-l { font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }


/* ── NOTES PAGE ──────────────────────────────────────────── */

.notes-hero {
  background: #0C0C0B; border-radius: var(--radius-lg);
  margin-bottom: 20px; position: relative; overflow: hidden; padding: 28px 32px;
}
.notes-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 100% at 100% 50%, rgba(74,127,165,.08), transparent);
  pointer-events: none;
}
.notes-hero-ey {
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.68); margin-bottom: 6px;
}
.notes-hero-title {
  font-family: var(--font-display); font-size: 36px; color: #fff;
  line-height: 1; margin-bottom: 6px;
}
.notes-hero-sub { font-size: 13px; color: rgba(255,255,255,.72); margin-bottom: 20px; }
.notes-hero-stats {
  display: flex; gap: 0; border-top: 1px solid rgba(255,255,255,.07); padding-top: 16px;
  flex-wrap: wrap;
}
.notes-hs {
  padding-right: 28px; margin-right: 28px;
  border-right: 1px solid rgba(255,255,255,.07);
}
.notes-hs:last-child { border-right: none; }
.notes-hs-v { font-family: var(--font-display); font-size: 28px; color: #fff; line-height: 1; margin-bottom: 3px; }
.notes-hs-v.g { color: #5DCAA5; }
.notes-hs-v.a { color: var(--amber); }
.notes-hs-l { font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.65); }

/* Layout */
.notes-layout { display: grid; grid-template-columns: 1fr 280px; gap: 20px; align-items: start; }

/* Composer */
.notes-composer { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.notes-composer-hdr { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.notes-composer-title { font-size: 13px; font-weight: 700; color: var(--text); }
.notes-composer-hint  { font-size: 11px; color: var(--text-3); }
.notes-composer-body  { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.notes-field-lbl { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.notes-textarea {
  font-family: var(--font-sans); font-size: 12px; width: 100%;
  padding: 10px 12px; border: 1px solid var(--border-strong);
  border-radius: 9px; resize: vertical; min-height: 80px;
  color: var(--text); background: var(--surface); outline: none; line-height: 1.6;
  transition: border-color var(--duration-fast);
}
.notes-textarea::placeholder { color: var(--text-3); }
.notes-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-border); }
.notes-input-row { display: flex; gap: 8px; align-items: center; }
.notes-input {
  font-family: var(--font-sans); font-size: 12px; flex: 1;
  padding: 8px 12px; border: 1px solid var(--border-strong);
  border-radius: 8px; color: var(--text); outline: none;
  transition: border-color var(--duration-fast);
}
.notes-input:focus { border-color: var(--accent); }
.notes-select {
  font-family: var(--font-sans); font-size: 11px; padding: 7px 10px;
  border: 1px solid var(--border-strong); border-radius: 8px;
  background: var(--surface); color: var(--text-2); outline: none;
  cursor: pointer; transition: border-color var(--duration-fast);
}
.notes-select:focus { border-color: var(--accent); }
.notes-date {
  font-family: var(--font-sans); font-size: 11px; padding: 7px 10px;
  border: 1px solid var(--border-strong); border-radius: 8px;
  background: var(--surface); color: var(--text-2); outline: none;
  transition: border-color var(--duration-fast);
}
.notes-date:focus { border-color: var(--accent); }
.notes-add-btn {
  font-family: var(--font-sans); font-size: 11px; font-weight: 700;
  padding: 7px 14px; border-radius: 8px; border: none;
  background: var(--surface-sunken); color: var(--text-2);
  cursor: pointer; white-space: nowrap; transition: background var(--duration-fast);
}
.notes-add-btn:hover { background: var(--border-strong); color: var(--text); }

.notes-attached-box {
  background: rgba(74,127,165,.05); border: 1px solid rgba(74,127,165,.15);
  border-radius: 10px; padding: 10px 12px;
}
.notes-attached-box-lbl { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 8px; }
.notes-attached-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px;
  border-radius: 99px; background: var(--accent-light); border: 1px solid var(--accent-border);
  font-size: 11px; font-weight: 600; color: var(--accent-darker); margin: 2px; cursor: pointer;
  transition: background var(--duration-fast);
}
.notes-attached-chip:hover { background: var(--accent-border); }
.notes-attached-chip .remove { margin-left: 2px; opacity: .6; }

.notes-composer-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--border); background: var(--surface-2); }
.notes-composer-footer-hint { font-size: 11px; color: var(--text-3); font-style: italic; }
.notes-save-btn {
  font-family: var(--font-sans); font-size: 12px; font-weight: 700;
  padding: 9px 20px; border-radius: 9px; border: none;
  background: var(--accent); color: #fff; cursor: pointer;
  transition: background var(--duration-fast);
}
.notes-save-btn:hover { background: var(--accent-dark); }

/* Inline task/hw items in composer */
.notes-task-item { display: flex; align-items: center; gap: 8px; padding: 7px 2px; border-bottom: .5px solid var(--border); font-size: 12px; }
.notes-task-item:last-child { border-bottom: none; }
.notes-task-check { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--border-strong); flex-shrink: 0; }
.notes-task-text { flex: 1; color: var(--text); }
.notes-task-badge { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 99px; background: var(--surface-sunken); color: var(--text-2); }
.notes-task-due { font-size: 10px; color: var(--text-3); }
.notes-task-rm { font-size: 11px; color: var(--text-3); cursor: pointer; padding: 0 2px; }
.notes-task-rm:hover { color: var(--red); }

/* Feed */
.notes-feed-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.notes-feed-lbl  { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.notes-feed-count{ font-size: 11px; color: var(--text-3); }

/* Session cards */
.notes-session-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.notes-session-card:last-child { margin-bottom: 0; }
.notes-session-hdr { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); cursor: pointer; transition: background var(--duration-fast); }
.notes-session-hdr:hover { background: var(--surface-sunken); }
.notes-session-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.notes-session-date { font-size: 11px; font-weight: 700; color: var(--text); }
.notes-session-badges { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.notes-session-badge { font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 99px; }
.notes-session-body { padding: 14px 18px; }
.notes-session-notes { font-size: 12px; color: var(--text-2); line-height: 1.65; margin-bottom: 12px; }
.notes-session-chips { margin: 8px 0; }
.notes-stat-chip-small {
  display: inline-flex; align-items: center; padding: 3px 10px;
  border-radius: 99px; background: var(--accent-light); border: 1px solid var(--accent-border);
  font-size: 11px; font-weight: 600; color: var(--accent-darker); margin: 2px;
}
.notes-tasks-title { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.notes-session-task { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: .5px solid var(--border); font-size: 12px; }
.notes-session-task:last-child { border-bottom: none; }
.notes-session-task-done { text-decoration: line-through; color: var(--text-3); flex: 1; }
.notes-session-hw { background: rgba(239,159,39,.06); border: 1px solid rgba(239,159,39,.15); border-radius: 8px; padding: 10px 12px; margin-top: 10px; }
.notes-session-hw-lbl { font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); margin-bottom: 5px; }
.notes-session-hw-item { font-size: 12px; color: var(--text-2); padding: 3px 0; }

/* Sidebar */
.notes-sidebar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; position: sticky; top: 20px; }
.notes-sidebar-hdr { padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.notes-sidebar-lbl  { font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
.notes-sidebar-hint { font-size: 10px; color: var(--text-3); }
.notes-stat-attach { padding: 10px 14px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background var(--duration-fast); display: flex; align-items: center; justify-content: space-between; }
.notes-stat-attach:last-child { border-bottom: none; }
.notes-stat-attach:hover { background: var(--accent-light); }
.notes-stat-attach.attached { background: rgba(74,127,165,.06); }
.notes-stat-attach-lbl { font-size: 11px; font-weight: 500; color: var(--text-2); }
.notes-stat-attach-val { font-size: 13px; font-weight: 700; color: var(--text); }
.notes-stat-attach-action { font-size: 10px; color: var(--text-3); opacity: 0; transition: opacity var(--duration-fast); }
.notes-stat-attach:hover .notes-stat-attach-action { opacity: 1; }
.notes-stat-attach.attached .notes-stat-attach-action { opacity: 1; color: var(--accent); }


/* ── REPORTS PAGE ────────────────────────────────────────── */

.rpt-btn-primary {
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  padding: 8px 16px; border-radius: 9px; border: none;
  background: var(--accent); color: #fff; cursor: pointer;
  transition: background var(--duration-fast);
}
.rpt-btn-primary:hover { background: var(--accent-dark); }

.rpt-btn-secondary {
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  padding: 8px 14px; border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-2); cursor: pointer;
  transition: border-color var(--duration-fast), color var(--duration-fast);
}
.rpt-btn-secondary:hover { border-color: var(--text-3); color: var(--text); }

.rpt-layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.rpt-sidebar { display: flex; flex-direction: column; gap: 12px; }

.rpt-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.rpt-panel-hdr { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.rpt-panel-title { font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); }
.rpt-panel-body { padding: 12px 16px; }
.rpt-count-pill { font-size: 10px; font-weight: 600; background: var(--surface-sunken); padding: 1px 6px; border-radius: 99px; margin-left: 4px; color: var(--text-2); }

/* Saved report items */
.rpt-saved-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; cursor: pointer; transition: background var(--duration-fast); }
.rpt-saved-item:hover { background: var(--surface-sunken); }
.rpt-saved-item.active { background: var(--accent-light); }
.rpt-saved-dot  { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.rpt-saved-name { flex: 1; font-size: 12px; font-weight: 500; color: var(--text); }
.rpt-saved-date { font-size: 10px; color: var(--text-3); }
.rpt-saved-live { font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 99px; background: var(--accent-light); color: var(--accent-darker); }

/* Template grid */
.rpt-tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; }
.rpt-tpl {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 8px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; font-family: var(--font-sans);
  transition: background var(--duration-fast), border-color var(--duration-fast);
  text-align: center;
}
.rpt-tpl:hover { background: var(--surface-sunken); border-color: var(--border-strong); }
.rpt-tpl.active { background: var(--accent-light); border-color: rgba(74,127,165,.3); }
.rpt-tpl-icon { font-size: 18px; }
.rpt-tpl-lbl  { font-size: 10px; font-weight: 600; color: var(--text-2); line-height: 1.2; }

/* Title input */
.rpt-title-input {
  font-family: var(--font-sans); font-size: 13px; width: 100%;
  padding: 9px 12px; border: 1px solid var(--border-strong);
  border-radius: 9px; color: var(--text); outline: none;
  transition: border-color var(--duration-fast);
}
.rpt-title-input:focus { border-color: var(--accent); }

/* Date range radio */
.rpt-periods { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; }
.rpt-period {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px;
  border-radius: 8px; cursor: pointer; font-size: 12px;
  color: var(--text-2); transition: background var(--duration-fast);
  font-family: var(--font-sans);
}
.rpt-period:hover { background: var(--surface-sunken); }
.rpt-period.active { background: var(--accent-light); color: var(--accent-darker); font-weight: 600; }
.rpt-period input[type="radio"] { accent-color: var(--accent); }

/* Section checkboxes */
.rpt-metric-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  border-bottom: 1px solid var(--border); cursor: pointer;
  transition: background var(--duration-fast);
}
.rpt-metric-item:last-child { border-bottom: none; }
.rpt-metric-item:hover { background: var(--surface-2); }
.rpt-metric-check {
  width: 16px; height: 16px; border-radius: 4px;
  border: 1.5px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background var(--duration-fast);
}
.rpt-metric-check.on { background: var(--accent); border-color: var(--accent); }
.rpt-metric-icon { font-size: 14px; width: 20px; text-align: center; flex-shrink: 0; }
.rpt-metric-lbl  { flex: 1; font-size: 12px; font-weight: 500; color: var(--text); }

/* Canvas */
.rpt-canvas {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  min-height: 600px; display: flex; flex-direction: column;
}
.rpt-canvas-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.rpt-canvas-title { font-size: 13px; font-weight: 700; color: var(--text); }
.rpt-canvas-meta  { font-size: 11px; color: var(--text-3); }
.rpt-canvas-actions { display: flex; gap: 8px; }
.rpt-preview { padding: 0; flex: 1; background: var(--bg); }

/* Report sections */
.rpt-section { margin-bottom: 28px; }
.rpt-section-title {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3);
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.rpt-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Report inner pieces */
.rpt-dark-kpis { background: #0C0C0B; border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
.rpt-dark-kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: rgba(255,255,255,.05); }
.rpt-dark-kpi { background: #0C0C0B; padding: 18px 20px; }
.rpt-dark-kpi-l { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.68); margin-bottom: 6px; }
.rpt-dark-kpi-v { font-family: var(--font-display); font-size: 32px; color: #fff; line-height: 1; margin-bottom: 3px; }
.rpt-dark-kpi-s { font-size: 10px; color: rgba(255,255,255,.65); }

.rpt-insight {
  background: linear-gradient(135deg, var(--accent-light), var(--surface));
  border: 1px solid rgba(74,127,165,.15);
  border-radius: 10px; padding: 12px 14px; margin-top: 10px;
  display: flex; gap: 10px; align-items: flex-start;
}
.rpt-insight-icon { font-size: 16px; flex-shrink: 0; }
.rpt-insight-text { font-size: 11px; color: var(--text-2); line-height: 1.55; }

/* Mini bar chart for report */
.rpt-mini-chart { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; padding: 14px 14px 0; }
.rpt-mini-bars { display: flex; align-items: flex-end; gap: 4px; height: 90px; position: relative; border-bottom: 1px solid var(--border); }
.rpt-mini-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.rpt-mini-bar { width: 100%; border-radius: 3px 3px 0 0; }
.rpt-mini-val { font-size: 7px; font-weight: 700; color: var(--text-3); margin-bottom: 2px; white-space: nowrap; }
.rpt-mini-val.highlight { color: var(--text); font-weight: 800; }
.rpt-mini-xlabels { display: flex; gap: 4px; padding: 5px 0 10px; }
.rpt-mini-xlabel { flex: 1; text-align: center; font-size: 7px; color: var(--text-3); }
.rpt-mini-xlabel.curr { font-weight: 700; color: var(--text); }

/* Mini trading cards */
.rpt-roi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 10px; }
.rpt-roi-card { border-radius: 10px; overflow: hidden; }
.rpt-roi-card-top { padding: 12px 12px 10px; position: relative; }
.rpt-roi-card-bottom { padding: 8px 12px; font-size: 10px; color: rgba(255,255,255,.65); background: rgba(0,0,0,.22); }
.rpt-roi-signal { font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; display: inline-block; margin-bottom: 6px; }
.rpt-roi-name  { font-family: var(--font-display); font-size: 11px; color: #fff; margin-bottom: 2px; }
.rpt-roi-rate  { font-family: var(--font-display); font-size: 32px; color: #fff; line-height: 1; }
.rpt-roi-sub   { font-size: 9px; color: rgba(255,255,255,.60); margin-top: 2px; }

/* Funnel mini */
.rpt-funnel { background: var(--surface-2); border-radius: 10px; padding: 12px; }
.rpt-funnel-title { font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); margin-bottom: 9px; }
.rpt-funnel-row { display: flex; justify-content: space-between; font-size: 10px; margin-bottom: 3px; }
.rpt-funnel-bar-wrap { height: 18px; background: var(--surface-sunken); border-radius: 5px; overflow: hidden; margin-bottom: 5px; }
.rpt-funnel-fill { height: 100%; border-radius: 5px; display: flex; align-items: center; padding-left: 6px; font-size: 9px; font-weight: 700; color: #fff; }

/* Specialist mini card */
.rpt-spec-card { border-radius: 9px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rpt-spec-card:last-child { margin-bottom: 0; }
.rpt-spec-avatar { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.rpt-spec-rate { font-family: var(--font-display); font-size: 20px; }

/* Scorecard table mini */
.rpt-sc-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.rpt-sc-th { font-size: 8px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); padding: 7px 14px; text-align: left; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.rpt-sc-th.r { text-align: right; }
.rpt-sc-td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-2); }
.rpt-sc-td.r { text-align: right; }
.rpt-sc-tr:last-child .rpt-sc-td { border-bottom: none; }

/* Pacing ring mini */
.rpt-pacing-wrap { background: var(--surface-2); border-radius: 10px; padding: 14px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; margin-bottom: 10px; }
.rpt-pacing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.rpt-pacing-cell { background: var(--surface); border: 1px solid var(--border); border-radius: 7px; padding: 8px 10px; }
.rpt-pacing-cell-l { font-size: 8px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-bottom: 2px; }
.rpt-pacing-cell-v { font-family: var(--font-display); font-size: 18px; line-height: 1; }

/* Snap badge */
.rpt-snap-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--surface-sunken); color: var(--text-3); }
.rpt-snap-badge.live { background: var(--accent-light); color: var(--accent-darker); }

/* Empty state */
.rpt-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 32px; text-align: center; gap: 8px; }
.rpt-empty-icon  { font-size: 40px; margin-bottom: 6px; }
.rpt-empty-title { font-size: 16px; font-weight: 700; color: var(--text); }
.rpt-empty-sub   { font-size: 12px; color: var(--text-3); line-height: 1.6; max-width: 320px; }


/* ── PRESENTATION PAGE ───────────────────────────────────── */

.pres-present-all-btn {
  font-family: var(--font-sans); font-size: 12px; font-weight: 700;
  padding: 9px 18px; border-radius: 9px; border: none;
  background: var(--text); color: #fff; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: background var(--duration-fast);
}
.pres-present-all-btn:hover { background: #3a3a38; }

/* Section */
.pres-section { margin-bottom: 36px; }
.pres-section-hdr {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; padding: 10px 0; border-bottom: 1px solid var(--border);
}
.pres-section-lbl { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text); }
.pres-section-accent { width: 3px; height: 16px; border-radius: 2px; flex-shrink: 0; }
.pres-section-right { display: flex; align-items: center; gap: 12px; }
.pres-section-count { font-size: 11px; color: var(--text-3); }
.pres-section-actions { display: flex; gap: 6px; }
.pres-sect-btn {
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 7px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-2); cursor: pointer;
  transition: border-color var(--duration-fast);
}
.pres-sect-btn:hover { border-color: var(--text-3); }

/* Card grid */
.pres-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

/* Individual slide card */
.pres-card {
  border-radius: 14px; overflow: hidden;
  border: 2px solid transparent;
  position: relative; transition: transform .15s, box-shadow .15s, border-color .15s;
  cursor: pointer;
}
.pres-card:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(0,0,0,.18); }
.pres-card.selected { border-color: var(--accent); }
.pres-card-tick {
  position: absolute; top: 8px; right: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #fff; font-weight: 700; z-index: 10;
  opacity: 0; transition: opacity var(--duration-fast);
}
.pres-card.selected .pres-card-tick { opacity: 1; }

.pres-card-preview {
  aspect-ratio: 16/9; overflow: hidden; position: relative;
}

.pres-slide {
  width: 100%; height: 100%; position: relative;
  overflow: hidden; display: flex; flex-direction: column; justify-content: center;
}

.pres-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; background: rgba(0,0,0,.35); backdrop-filter: blur(8px);
}
.pres-card-title { font-size: 10px; font-weight: 600; color: rgba(255,255,255,.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pres-card-check {
  width: 18px; height: 18px; border-radius: 5px;
  border: 1.5px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background var(--duration-fast), border-color var(--duration-fast);
}
.pres-card.selected .pres-card-check { background: var(--accent); border-color: var(--accent); }

/* Slide content classes (reused across all slides) */
.s-eyebrow {
  font-size: 8px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 4px;
}
.s-num { font-family: var(--font-display); line-height: 1; letter-spacing: -.02em; }
.s-sub { font-size: 10px; color: rgba(255,255,255,.35); margin-top: 4px; line-height: 1.4; }
.s-badge {
  display: inline-flex; font-size: 8px; font-weight: 700;
  padding: 2px 8px; border-radius: 99px; letter-spacing: .06em; margin-bottom: 6px;
}
.s-ctx-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 0; border-bottom: .5px solid rgba(255,255,255,.07);
}
.s-ctx-row:last-child { border-bottom: none; }
.s-ctx-l { font-size: 9px; color: rgba(255,255,255,.3); font-weight: 500; }
.s-ctx-v { font-size: 13px; font-weight: 700; }

.s-ring { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); opacity: .25; }

.s-bar-row { margin-bottom: 8px; }
.s-bar-lbl-row { display: flex; justify-content: space-between; margin-bottom: 3px; }
.s-bar-lbl { font-size: 9px; color: rgba(255,255,255,.5); }
.s-bar-val { font-size: 11px; font-weight: 700; color: #fff; }
.s-bar-track { height: 7px; background: rgba(255,255,255,.07); border-radius: 4px; overflow: hidden; }
.s-bar-fill  { height: 100%; border-radius: 4px; }

.s-funnel-row { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.s-funnel-lbl { font-size: 8px; font-weight: 500; color: rgba(255,255,255,.45); width: 52px; flex-shrink: 0; }
.s-funnel-track { flex: 1; height: 16px; background: rgba(255,255,255,.07); border-radius: 4px; overflow: hidden; }
.s-funnel-fill {
  height: 100%; border-radius: 4px; display: flex; align-items: center;
  padding-left: 6px; font-size: 8px; font-weight: 700; color: #fff; white-space: nowrap;
}
.s-funnel-n { font-size: 10px; font-weight: 700; width: 20px; text-align: right; }

.s-split { display: grid; grid-template-columns: 1fr 1fr; height: 100%; }
.s-split-l { padding: 14px 12px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid rgba(255,255,255,.07); }
.s-split-r { padding: 14px 12px; display: flex; flex-direction: column; justify-content: center; gap: 0; }
.s-split-stat { padding: 5px 0; border-bottom: .5px solid rgba(255,255,255,.07); }
.s-split-stat:last-child { border-bottom: none; }
.s-split-stat-l { font-size: 8px; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1px; }
.s-split-stat-v { font-size: 14px; font-weight: 700; color: #fff; }

.s-lb-row { display: grid; grid-template-columns: 24px 1fr 48px; align-items: center; gap: 8px; padding: 5px 0; border-bottom: .5px solid rgba(255,255,255,.07); }
.s-lb-row:last-child { border-bottom: none; }
.s-lb-medal { font-size: 14px; text-align: center; }
.s-lb-name { font-size: 10px; font-weight: 600; color: #fff; margin-bottom: 3px; }
.s-lb-bar-track { height: 4px; background: rgba(255,255,255,.07); border-radius: 2px; overflow: hidden; }
.s-lb-bar-fill { height: 100%; border-radius: 2px; }
.s-lb-val { font-size: 14px; font-weight: 700; text-align: right; }

.s-roi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 6px 8px; }
.s-roi-card { border-radius: 8px; padding: 8px 10px; overflow: hidden; }
.s-roi-badge { font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; border-radius: 99px; background: rgba(255,255,255,.15); display: inline-block; margin-bottom: 5px; }
.s-roi-name { font-size: 9px; color: rgba(255,255,255,.6); margin-bottom: 2px; }
.s-roi-pct  { font-family: var(--font-display); font-size: 26px; color: #fff; line-height: 1; }

.s-wf { display: flex; align-items: flex-end; justify-content: center; gap: 8px; padding: 8px 10px 0; }
.s-wf-col { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1; }
.s-wf-bar { width: 100%; border-radius: 4px 4px 0 0; }
.s-wf-lbl { font-size: 7px; color: rgba(255,255,255,.35); text-align: center; font-weight: 600; }
.s-wf-val { font-size: 9px; font-weight: 700; color: #fff; text-align: center; }
.s-wf-arrow { font-size: 14px; color: rgba(255,255,255,.2); padding-bottom: 8px; flex-shrink: 0; }

.s-barchart { display: flex; align-items: flex-end; gap: 3px; padding: 8px 8px 0; border-bottom: .5px solid rgba(255,255,255,.08); }
.s-barchart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.s-barchart-bar { width: 100%; border-radius: 3px 3px 0 0; }
.s-barchart-val { font-size: 6px; font-weight: 700; color: rgba(255,255,255,.5); margin-bottom: 2px; white-space: nowrap; text-align: center; }
.s-barchart-lbl-row { display: flex; gap: 3px; padding: 4px 8px 6px; }
.s-barchart-lbl { flex: 1; text-align: center; font-size: 6px; color: rgba(255,255,255,.3); }

.s-path-chip { display: inline-flex; padding: 3px 8px; border-radius: 99px; font-size: 9px; font-weight: 600; margin: 2px; }
.s-path-arrow { font-size: 11px; color: rgba(255,255,255,.3); margin: 0 1px; }

.s-dots { display: flex; flex-wrap: wrap; gap: 2px; padding: 8px 10px; }
.s-dot { width: 8px; height: 8px; border-radius: 2px; }

/* Fullscreen overlay */
.pres-overlay {
  position: fixed; inset: 0; background: #050505; z-index: 9999;
  display: flex; flex-direction: column;
}
.pres-overlay-slide {
  flex: 1; overflow: hidden; display: flex; align-items: center; justify-content: center;
  padding: 24px 24px 56px;
}
.pres-fs-frame {
  width: min(calc((100vh - 80px) * 16/9), calc(100vw - 32px));
  height: min(calc(100vh - 80px), calc((100vw - 32px) * 9/16));
  position: relative; overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.05), 0 40px 160px rgba(0,0,0,.98);
}
.pres-fs-inner {
  position: absolute; top: 0; left: 0;
  transform-origin: top left;
}
/* Bottom HUD — floats over slide, auto-hides */
.pres-overlay-controls {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 16px 32px 20px;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, transparent 100%);
  transition: opacity .4s ease;
  pointer-events: none;
}
.pres-overlay-controls > * { pointer-events: auto; }

/* Floating exit button */
.pres-exit-btn {
  position: absolute; top: 20px; right: 24px;
  font-family: var(--font-sans); font-size: 11px; font-weight: 700;
  padding: 6px 14px; border-radius: 99px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.6); color: rgba(255,255,255,.55);
  cursor: pointer; letter-spacing: .04em;
  transition: opacity .4s ease, background .15s, color .15s;
  backdrop-filter: blur(8px);
  z-index: 10;
}
.pres-exit-btn:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Invisible click zones left/right third */
.pres-click-prev, .pres-click-next {
  position: absolute; top: 0; bottom: 60px;
  width: 30%; cursor: pointer; z-index: 5;
}
.pres-click-prev { left: 0; }
.pres-click-next { right: 0; }

/* Keep old ctrl classes for compat */
.pres-ctrl-btn { display: none; }
.pres-ctrl-hints { display: none; }
.pres-ctrl-counter { display: none; }
.pres-ctrl-title { display: none; }
.pres-ctrl-center { display: none; }
.pres-close-btn { display: none; }


/* ── SETTINGS PAGE ───────────────────────────────────────── */

/* Override page-wrapper padding for settings — it uses its own layout */
.settings-page { padding: 0 !important; }

/* Two-column chrome */
.set-chrome {
  display: grid;
  grid-template-columns: 216px 1fr;
  min-height: calc(100vh - var(--topbar-height, 0px));
  align-items: start;
}

/* Sticky left sidebar */
.set-sidebar {
  border-right: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.set-sidebar::-webkit-scrollbar { width: 3px; }
.set-sidebar::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }

.set-sidebar-inner { padding: 14px 0 48px; }

.set-nav-group-lbl {
  padding: 10px 14px 3px;
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3);
}
.set-nav-group-lbl:first-child { padding-top: 4px; }

.set-nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; margin: 1px 8px;
  border-radius: 9px; cursor: pointer;
  font-size: 12px; font-weight: 500; color: var(--text-2);
  border: none; background: transparent;
  width: calc(100% - 16px); text-align: left;
  font-family: var(--font-sans);
  transition: background var(--duration-fast), color var(--duration-fast);
}
.set-nav-item:hover { background: var(--surface-sunken); color: var(--text); }
.set-nav-item.active {
  background: var(--accent-light); color: var(--accent-darker); font-weight: 600;
}
.set-nav-icon { font-size: 14px; width: 18px; text-align: center; flex-shrink: 0; }

/* Right main content area */
.set-main {
  padding: 28px 32px 64px;
  min-height: 100vh;
  background: var(--bg);
}

/* Top of each section: title + Save button */
.set-section-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.set-section-h1 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.set-save-btn {
  font-family: var(--font-sans); font-size: 13px; font-weight: 700;
  padding: 10px 22px; border-radius: 10px; border: none;
  background: var(--accent); color: #fff; cursor: pointer;
  transition: background var(--duration-fast);
}
.set-save-btn:hover { background: var(--accent-dark); }

/* Card blocks inside sections */
.set-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 20px; overflow: hidden;
}
.set-card-title {
  font-size: 14px; font-weight: 700; color: var(--text);
  padding: 18px 24px 0;
}
.set-card-desc {
  font-size: 12px; color: var(--text-3);
  padding: 4px 24px 14px; border-bottom: 1px solid var(--border);
  line-height: 1.55;
}

/* Individual setting rows */
.set-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 13px 24px;
  border-bottom: 1px solid var(--border);
}
.set-row:last-child { border-bottom: none; }
.set-row-left { flex: 1; min-width: 0; }
.set-row-label { font-size: 13px; font-weight: 600; color: var(--text); }
.set-row-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; line-height: 1.45; }
.set-row-control { flex-shrink: 0; }

/* Inputs inside settings */
.set-input {
  font-family: var(--font-sans); font-size: 12px;
  padding: 8px 12px; border: 1px solid var(--border-strong);
  border-radius: 8px; color: var(--text); background: var(--surface);
  outline: none; width: 280px;
  transition: border-color var(--duration-fast);
}
.set-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-border); }
.set-input.readonly { background: var(--surface-sunken); color: var(--text-3); cursor: default; }
.set-input.narrow { width: 120px; }
.set-input.wide   { width: 360px; }

.set-select {
  font-family: var(--font-sans); font-size: 12px;
  padding: 8px 32px 8px 12px; border: 1px solid var(--border-strong);
  border-radius: 8px; background: var(--surface); color: var(--text);
  outline: none; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23ABABAB'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}

.set-btn {
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  padding: 8px 15px; border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-2); cursor: pointer;
  white-space: nowrap; transition: border-color var(--duration-fast), color var(--duration-fast);
}
.set-btn:hover { border-color: var(--text-3); color: var(--text); }
.set-btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.set-btn.accent:hover { background: var(--accent-dark); }
.set-btn.danger { color: var(--red); border-color: rgba(192,57,43,.3); }
.set-btn.danger:hover { background: var(--red-light); }
.set-btn.sm { font-size: 11px; padding: 5px 11px; }

/* Note / hint blocks */
.set-note {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0 24px 14px;
  padding: 10px 14px; border-radius: 9px;
  font-size: 11px; line-height: 1.55;
}
.set-note.info { background: var(--accent-light); border: 1px solid var(--accent-border); color: var(--accent-darker); }
.set-note.warn { background: var(--amber-light); border: 1px solid rgba(239,159,39,.3); color: var(--amber-dark, #92400E); }
.set-note.success { background: var(--green-light, #E1F5EE); border: 1px solid rgba(29,158,117,.2); color: var(--green-dark, #0F6E56); }

/* AI hint strip at bottom of a card */
.set-ai-strip {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 10px 18px; border-top: 1px solid var(--border);
  background: linear-gradient(90deg, var(--surface), var(--accent-light));
  font-size: 11px; color: var(--text-2); font-style: italic; line-height: 1.5;
}
.set-ai-tag {
  font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-dark); flex-shrink: 0; margin-top: 1px; font-style: normal;
}

/* ── FIRM: Business hours grid ── */
.biz-hours-grid {
  display: grid;
  grid-template-columns: 110px 130px 130px 1fr;
  gap: 0;
  padding: 0 24px 16px;
  align-items: center;
}
.biz-hours-hdr {
  font-size: 9px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-3);
  padding: 8px 0 8px;
}
.biz-hours-day { font-size: 12px; font-weight: 600; color: var(--text); padding: 9px 0; }
.biz-time-input {
  font-family: var(--font-sans); font-size: 12px;
  padding: 7px 10px; border: 1px solid var(--border-strong);
  border-radius: 7px; outline: none; width: 110px; color: var(--text-3);
  background: var(--surface-sunken); margin-right: 12px;
  transition: border-color var(--duration-fast), background var(--duration-fast), color var(--duration-fast);
}
.biz-time-input:not(:disabled) { background: var(--surface); color: var(--text); }
.biz-time-input:focus { border-color: var(--accent); }
.biz-time-input:disabled { opacity: .4; cursor: not-allowed; }
.biz-closed-wrap { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-2); }
.biz-closed-wrap input[type="checkbox"] { accent-color: var(--accent); width: 14px; height: 14px; cursor: pointer; }

/* ── FIRM: Holiday schedule ── */
.holiday-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px 12px;
}
.holiday-legend { display: flex; gap: 10px; padding: 0 24px 14px; flex-wrap: wrap; }
.holiday-legend-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 99px;
  font-size: 11px; font-weight: 600;
}
.holiday-legend-item.closed { background: var(--red-light); color: var(--red); }
.holiday-legend-item.limited { background: var(--amber-light); color: var(--amber-dark, #92400E); }
.holiday-row {
  display: grid; grid-template-columns: 140px 1fr auto auto;
  gap: 10px; align-items: center;
  padding: 10px 24px; border-bottom: .5px solid var(--border);
}
.holiday-row:last-child { border-bottom: none; }
.holiday-empty { padding: 16px 24px; font-size: 12px; color: var(--text-3); font-style: italic; }

/* ── FIRM: Practice areas ── */
.practice-area-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px; border-bottom: .5px solid var(--border);
}
.practice-area-row:last-child { border-bottom: none; }
.practice-area-name { flex: 1; font-size: 13px; font-weight: 600; color: var(--text); }
.practice-area-types { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* Placeholder section (for sub-sections not yet built) */
.set-placeholder {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 64px 32px; text-align: center; gap: 10px;
}
.set-placeholder-icon { font-size: 36px; margin-bottom: 6px; }
.set-placeholder-title { font-size: 16px; font-weight: 700; color: var(--text); }
.set-placeholder-sub { font-size: 12px; color: var(--text-3); max-width: 320px; line-height: 1.6; }

/* ── SETTINGS: TEAM ──────────────────────────────────────── */

.team-empty {
  padding: 16px 24px;
  font-size: 12px; color: var(--text-3); font-style: italic;
}

.team-spec-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px; border-bottom: .5px solid var(--border);
  transition: background var(--duration-fast);
}
.team-spec-row:last-child { border-bottom: none; }
.team-spec-row:hover { background: var(--surface-2); }

.team-spec-avatar {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent-light); color: var(--accent-darker);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}

.team-spec-name {
  flex: 1; font-size: 13px; font-weight: 600; color: var(--text);
}

.team-spec-actions { display: flex; gap: 6px; }

.team-add-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 24px; border-top: 1px solid var(--border);
  background: var(--surface-2);
}

.team-add-btn-row {
  padding: 12px 24px; border-top: 1px solid var(--border);
  background: var(--surface-2);
}

.team-add-btn {
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  color: var(--accent); background: transparent; border: none;
  cursor: pointer; padding: 0;
  transition: color var(--duration-fast);
}
.team-add-btn:hover { color: var(--accent-dark); }

/* ── SETTINGS: GOALS & TARGETS ───────────────────────────── */

.goals-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 20px 24px;
}

.goals-tier-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.goals-tier-card.goals-tier-target {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-border);
}

.goals-tier-hdr {
  padding: 16px 18px 12px;
  text-align: center;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.goals-tier-hdr-target {
  background: var(--accent-light);
}

.goals-tier-icon { font-size: 24px; margin-bottom: 6px; }
.goals-tier-name { font-size: 14px; font-weight: 700; color: var(--text); }
.goals-tier-desc { font-size: 10px; color: var(--text-3); margin-top: 2px; }

.goals-tier-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0;
  padding: 16px 14px;
}

.goals-tier-field { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.goals-tier-field-lbl {
  font-size: 9px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-3);
}
.goals-tier-input-wrap {
  display: flex; align-items: center; gap: 3px; width: 100%;
}
.goals-dollar { font-size: 11px; color: var(--text-3); flex-shrink: 0; }

.goals-tier-input {
  font-family: var(--font-sans); font-size: 17px; font-weight: 700;
  text-align: center; border: 1px solid var(--border-strong);
  border-radius: 8px; padding: 8px 6px;
  width: 100%; outline: none; color: var(--text);
  -moz-appearance: textfield;
  transition: border-color var(--duration-fast);
}
.goals-tier-input::-webkit-outer-spin-button,
.goals-tier-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.goals-tier-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-border); }
.goals-tier-input-accent { border-color: var(--accent); }
.goals-tier-input-accent:focus { border-color: var(--accent-dark); }

.goals-tier-divider {
  font-size: 10px; color: var(--text-3); text-align: center;
  padding: 0 8px; margin-top: 18px;
}

/* ── SETTINGS: FINANCIALS ────────────────────────────────── */

.fin-billing-box {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  background: var(--surface);
  width: 100%;
}
.fin-billing-area-lbl {
  font-size: 11px; font-weight: 600; color: var(--text-3);
  margin-bottom: 10px;
}
.fin-billing-opts { display: flex; gap: 8px; flex-wrap: wrap; }

.fin-billing-opt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px;
  border: 1px solid var(--border-strong);
  cursor: pointer; font-size: 12px; font-weight: 500;
  color: var(--text-2); background: var(--surface);
  transition: background var(--duration-fast),
              border-color var(--duration-fast),
              color var(--duration-fast);
  user-select: none;
}
.fin-billing-opt:hover { border-color: var(--text-3); color: var(--text); }
.fin-billing-opt.checked {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent-darker);
  font-weight: 600;
}
.fin-billing-opt input[type="checkbox"] { display: none; }

/* ── SETTINGS: LEADS & SOURCES ───────────────────────────── */

.ls-chips-wrap {
  display: flex; flex-wrap: wrap; gap: 7px;
  padding: 12px 24px 4px;
  min-height: 44px;
}

.ls-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 12px;
  border-radius: 99px; font-size: 12px; font-weight: 500;
  background: var(--surface-sunken);
  border: 1px solid var(--border-strong);
  color: var(--text-2);
}
.ls-chip-pending {
  background: var(--amber-light);
  border-color: rgba(239,159,39,.35);
  color: var(--amber-dark, #92400E);
}
.ls-chip-x {
  font-size: 14px; color: var(--text-3); cursor: pointer;
  line-height: 1; padding: 0 2px;
  transition: color var(--duration-fast);
}
.ls-chip-x:hover { color: var(--red); }

.ls-pending-badge {
  font-size: 9px; font-weight: 700; letter-spacing: .03em;
  padding: 2px 7px; border-radius: 99px;
  background: rgba(239,159,39,.2);
  color: var(--amber-dark, #92400E);
}

.ls-add-row {
  display: flex; align-items: center; gap: 0;
  padding: 10px 24px 16px;
}
.ls-add-row .set-btn { margin-left: 8px; border-radius: 8px; }

.ls-prefix-badge {
  display: inline-flex; align-items: center;
  padding: 8px 12px;
  font-size: 12px; font-weight: 600; color: var(--text-2);
  background: var(--surface-sunken);
  border: 1px solid var(--border-strong);
  border-radius: 8px 0 0 8px;
  white-space: nowrap; flex-shrink: 0;
}

/* ── SETTINGS: DESIGN CHOICES ────────────────────────────── */

/* Palette grid */
.design-palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  padding: 16px 24px 20px;
}

.design-palette-opt {
  border: 2px solid var(--border);
  border-radius: 11px; padding: 12px 14px;
  cursor: pointer; background: var(--surface);
  transition: border-color var(--duration-fast), background var(--duration-fast);
}
.design-palette-opt:hover { border-color: var(--border-strong); }
.design-palette-opt.active {
  border-color: var(--accent);
  background: var(--accent-light);
}

.design-palette-swatches { display: flex; gap: 4px; margin-bottom: 8px; }
.design-swatch { width: 22px; height: 22px; border-radius: 5px; }

.design-palette-name {
  font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 2px;
}
.design-palette-desc { font-size: 10px; color: var(--text-3); line-height: 1.4; }

.design-default-badge {
  font-size: 9px; font-weight: 700; letter-spacing: .04em;
  padding: 1px 6px; border-radius: 4px;
  background: var(--surface-sunken); color: var(--text-3);
  vertical-align: middle; margin-left: 4px;
}

/* Preview strip */
.design-preview-strip {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 16px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 10px;
}
.design-preview-btn-primary {
  font-family: var(--font-sans); font-size: 12px; font-weight: 700;
  padding: 8px 14px; border-radius: 8px; border: none;
  color: #fff; cursor: default;
}
.design-preview-filter {
  font-size: 11px; font-weight: 600;
  padding: 5px 10px; border-radius: 99px; border: 1px solid transparent;
}
.design-preview-metric {
  font-size: 12px; font-weight: 700;
}
.design-preview-bar {
  flex: 1; min-width: 80px; height: 6px;
  border-radius: 99px; opacity: .7;
}

/* Font grid */
.design-font-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  padding: 16px 24px 20px;
}

.design-font-opt {
  border: 2px solid var(--border);
  border-radius: 11px; padding: 14px 16px;
  cursor: pointer; background: var(--surface);
  transition: border-color var(--duration-fast), background var(--duration-fast);
}
.design-font-opt:hover { border-color: var(--border-strong); }
.design-font-opt.active {
  border-color: var(--accent);
  background: var(--accent-light);
}

.design-font-preview {
  font-size: 32px; font-weight: 700; margin-bottom: 6px;
  line-height: 1; color: var(--text);
}
.design-font-name { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.design-font-desc { font-size: 10px; color: var(--text-3); line-height: 1.4; }

/* Font size button group */
.design-size-group { display: flex; gap: 4px; }
.design-size-btn {
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-2);
  cursor: pointer; transition: background var(--duration-fast),
                               border-color var(--duration-fast),
                               color var(--duration-fast);
}
.design-size-btn:hover { border-color: var(--text-3); color: var(--text); }
.design-size-btn.active {
  background: var(--text); color: #fff;
  border-color: var(--text);
}

/* ── SETTINGS: VCARD GENERATOR ───────────────────────────── */

.vcard-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 20px 24px 24px;
  align-items: start;
}

.vcard-form { display: flex; flex-direction: column; gap: 14px; }

.vcard-field-group { display: flex; flex-direction: column; gap: 5px; }
.vcard-field-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-3);
}

/* Dark card preview */
.vcard-preview-side {
  display: flex; flex-direction: column; align-items: flex-start;
}

.vcard-dark-card {
  background: #0C0C0B;
  border-radius: 14px;
  padding: 24px 28px;
  width: 100%;
  min-height: 160px;
}

.vcard-card-avatar {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #fff;
  margin-bottom: 14px;
}
.vcard-card-name {
  font-size: 20px; font-weight: 700; color: #fff;
  margin-bottom: 3px; line-height: 1.2;
}
.vcard-card-role { font-size: 13px; color: rgba(255,255,255,.72); margin-bottom: 2px; }
.vcard-card-firm { font-size: 12px; color: rgba(255,255,255,.65); }

/* ── CSV IMPORT ───────────────────────────────────────────────── */
.imp-map-sel {
  font-family: var(--font-sans); font-size: 12px;
  padding: 5px 8px; border: 1.5px solid var(--border-strong);
  border-radius: 7px; background: var(--surface);
  color: var(--text); cursor: pointer; width: 100%;
}
.imp-map-sel:focus { border-color: var(--accent); outline: none; }

/* ── FORM/QUIZ BUILDER ────────────────────────────────────────── */
.lf-field-check { display: flex; align-items: center; gap: 10px; flex: 1; }
.lf-field-toggle {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--text-3); cursor: pointer;
}
.lf-req-toggle {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--text-3); cursor: pointer;
}

/* ── CONSULT ROWS ────────────────────────────────────────────── */
.consult-avg-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-top: 1px solid var(--border);
  margin-top: 8px;
}

/* ── ACCOUNT PAGE ROWS ────────────────────────────────────────── */
.fr { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); }
.fr:last-child { border-bottom: none; }
.fr-lbl { flex: 1; }
.fr-lbl-t { font-size: 13px; font-weight: 600; color: var(--text); }
.fr-lbl-s { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.fr-ctrl { display: flex; align-items: center; gap: 8px; }

/* ── REPORT ARCHIVE BUTTON ────────────────────────────────── */
.rpt-archive-btn {
  font-family: var(--font-sans);
  font-size: 12px;
  padding: 2px 6px;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  color: var(--text-3);
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s, background .15s;
  flex-shrink: 0;
}
.rpt-saved-item:hover .rpt-archive-btn { opacity: 1; }
.rpt-archive-btn:hover {
  background: var(--accent-light);
  color: var(--accent-darker);
  border-color: var(--accent-border);
}

/* ── LOADING SKELETONS ────────────────────────────────────── */
@keyframes skeleton-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skel {
  background: linear-gradient(90deg,
    var(--surface-sunken) 25%,
    rgba(0,0,0,.05) 50%,
    var(--surface-sunken) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 6px;
}
.skel-text  { height: 14px; }
.skel-title { height: 22px; width: 60%; margin-bottom: 8px; }
.skel-kpi   { height: 72px; border-radius: 10px; }
.skel-bar   { height: 120px; border-radius: 8px; }
.skel-row   { height: 52px; border-radius: 8px; margin-bottom: 4px; }
.page-skeleton {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.page-skeleton .skel-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

/* ══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — 768px and below
   Sidebar collapses to bottom nav / hamburger overlay
   ══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ── Layout ─────────────────────────────────────────────── */
  #app-shell { flex-direction: column; height: 100dvh; }

  #sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    width: 80%;
    max-width: 280px;
    height: 100dvh;
    z-index: 500;
    transition: left .25s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,.18);
  }
  #sidebar.mobile-open { left: 0; }

  #main-content {
    margin-left: 0;
    height: 100dvh;
    padding-bottom: 60px; /* space for bottom nav */
  }

  /* ── Mobile top bar ──────────────────────────────────────── */
  #fhb-mobile-topbar {
    display: flex !important;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 52px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    z-index: 400;
  }
  #fhb-mobile-topbar-title {
    flex: 1;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
  }
  #fhb-hamburger {
    width: 36px; height: 36px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 5px;
    cursor: pointer; background: none; border: none; padding: 4px;
    border-radius: 8px;
  }
  #fhb-hamburger span {
    display: block; width: 20px; height: 2px;
    background: var(--text); border-radius: 99px;
    transition: all .2s;
  }
  #sidebar.mobile-open ~ #main-content #fhb-mobile-topbar { pointer-events: none; }

  /* Overlay backdrop */
  #fhb-sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 450;
  }
  #fhb-sidebar-overlay.show { display: block; }

  /* Push page content down below topbar */
  #page-container { padding-top: 52px; }

  /* ── KPI grids: stack to 2-col on mobile ─────────────────── */
  .kpi-grid,
  .overview-kpis,
  .rev-kpis,
  [class*="kpi-row"] { grid-template-columns: 1fr 1fr !important; }

  /* ── Charts: full width ─────────────────────────────────── */
  .chart-wrap,
  .rpt-roi-grid,
  .rh-roi-grid { grid-template-columns: 1fr 1fr !important; }

  /* ── Lead panel: full screen on mobile ──────────────────── */
  .slide-panel {
    width: 100% !important;
    right: -100% !important;
  }
  .slide-panel.open { right: 0 !important; }

  /* ── Page padding ─────────────────────────────────────────── */
  .page-wrapper { padding: 16px !important; }
  .page-hero    { padding: 20px 16px !important; }

  /* ── Tables: scroll horizontally ────────────────────────── */
  .leads-tbl-wrap,
  .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* ── Settings: full-width sections ──────────────────────── */
  .settings-layout { flex-direction: column !important; }
  .set-sidebar { width: 100% !important; border-right: none !important; border-bottom: 1px solid var(--border); }

  /* ── Sankey canvas: taller on narrow screens ─────────────── */
  .paths-flow-wrap { height: 220px !important; }

  /* ── Dark KPI grids: 2 cols ──────────────────────────────── */
  .rpt-dark-kpi-grid,
  .rh-dark-grid { grid-template-columns: 1fr 1fr !important; }

  /* ── Sidebar footer: hide on mobile (shown in bottom nav) ── */
  .sidebar-footer { display: none; }

  /* ── Logo mark: smaller ──────────────────────────────────── */
  .sidebar-logo { padding: 12px 14px !important; }
}

/* ── Bottom navigation bar ───────────────────────────────── */
#fhb-bottom-nav {
  display: none; /* shown via JS on mobile */
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 56px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 400;
  align-items: stretch;
}
@media (max-width: 768px) {
  #fhb-bottom-nav { display: flex; }
}
.fhb-bnav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; cursor: pointer;
  background: none; border: none; padding: 4px;
  font-family: var(--font-sans);
  color: var(--text-3); font-size: 9px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
  transition: color .15s;
}
.fhb-bnav-item.active { color: var(--accent); }
.fhb-bnav-icon { font-size: 20px; line-height: 1; }

/* Tablet: narrow sidebar */
@media (min-width: 769px) and (max-width: 1024px) {
  :root { --sidebar-width: 64px; }
  .sidebar-firm-name,
  .sidebar-firm-plan,
  .sb-item-label,
  .sidebar-section-label { display: none; }
  .sb-item { justify-content: center; padding: 10px; }
  .sb-item-icon { margin-right: 0; }
  #sidebar { overflow: visible; }
  .sidebar-logo-mark { margin: 0 auto; }
}


/* ── LEAD DETAIL PANEL — full styling for ldp- classes ─────
   The JS renders these classes; this block provides all styles.
   ──────────────────────────────────────────────────────────── */

/* Fix panel body scroll — was overflow:hidden */
.slide-panel-body {
  overflow-y: auto !important;
  padding: 20px !important;
}

/* Two-column layout */
.ldp-panel-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  min-height: 0;
}
.ldp-main-col { min-width: 0; }
.ldp-side-col {
  border-left: 1px solid var(--border);
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Section label */
.ldp-section-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 18px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.ldp-section-lbl:first-child { margin-top: 0; }

/* Form grid */
.ldp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Field wrapper */
.ldp-pf {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Field label */
.ldp-pl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Text input */
.ldp-pi {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  outline: none;
  width: 100%;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.ldp-pi:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-border);
}
.ldp-pi.ldp-locked {
  background: var(--surface-sunken);
  color: var(--text-3);
  cursor: not-allowed;
}
.ldp-pi.ldp-date-narrow { max-width: 160px; }

/* Input with icon */
.ldp-pi-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.ldp-pi-wrap .ldp-pi { padding-right: 64px; }
.ldp-pi-icon {
  position: absolute;
  right: 8px;
  font-size: 14px;
  cursor: pointer;
  opacity: .5;
  transition: opacity .15s;
}
.ldp-pi-icon:hover { opacity: 1; }

/* Custom select (dropdown) */
.ldp-csel {
  position: relative;
}
.ldp-ctrig {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 7px 28px 7px 10px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  transition: border-color var(--duration-fast);
}
.ldp-ctrig::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-top-color: var(--text-3);
  border-bottom: none;
  margin-top: 2px;
}
.ldp-ctrig.open {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-border);
}
.ldp-placeholder { color: var(--text-3); }

.ldp-cdrop {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
}
.ldp-cdrop.open { display: block; }

.ldp-copt {
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .1s;
}
.ldp-copt:hover { background: var(--surface-sunken); }
.ldp-copt.on { background: var(--accent-light); color: var(--accent-darker); font-weight: 600; }
.ldp-copt-lbl { flex: 1; }
.ldp-copt-empty { padding: 8px 10px; font-size: 12px; color: var(--text-3); font-style: italic; }

/* Specialist avatar */
.ldp-spec-av {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* Attribute badge row */
.ldp-attr-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.ldp-attr-src-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--surface-sunken);
  color: var(--text-2);
  border: 1px solid var(--border);
}

/* Consultation checkboxes */
.ldp-consult-block { display: flex; flex-direction: column; gap: 8px; }
.ldp-consult-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}
.ldp-consult-lbl { font-size: 12px; font-weight: 500; flex: 1; }
.ldp-check {
  width: 16px; height: 16px;
  border-radius: 4px;
  cursor: pointer;
  accent-color: var(--accent);
}

/* Score row (reuse existing circles) */
.ldp-score-row { display: flex; gap: 6px; align-items: center; }

/* Sync badge */
.ldp-sync-badge {
  font-size: 9px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 99px;
  background: var(--surface-sunken);
  color: var(--text-3);
  border: 1px solid var(--border);
  vertical-align: middle;
}

/* Financial grid */
.ldp-fin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ldp-fin-cell { display: flex; flex-direction: column; gap: 4px; }
.ldp-fin-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-3);
}
.ldp-fin-inp {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  outline: none;
  width: 100%;
  transition: border-color var(--duration-fast);
}
.ldp-fin-inp:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-border); }
.ldp-fin-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 4px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.ldp-fin-total-lbl { font-size: 11px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
.ldp-fin-total-val { font-family: var(--font-display); font-size: 20px; color: var(--text); }
.ldp-rollup-hint { font-size: 11px; color: var(--text-3); margin-top: 6px; }

/* Notes */
.ldp-notes-feed { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.ldp-notes-empty { font-size: 12px; color: var(--text-3); padding: 12px 0; }
.ldp-note {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.ldp-note-meta { font-size: 10px; color: var(--text-3); margin-bottom: 4px; display: flex; gap: 8px; }
.ldp-note-ts { }
.ldp-note-author { font-weight: 600; }
.ldp-note-vis { }
.ldp-note-text { font-size: 13px; color: var(--text); line-height: 1.5; }
.ldp-note-footer { display: flex; justify-content: flex-end; margin-top: 6px; }
.ldp-note-input {
  font-family: var(--font-sans);
  font-size: 13px;
  width: 100%;
  min-height: 72px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--text);
  background: var(--surface);
  resize: vertical;
  outline: none;
  transition: border-color var(--duration-fast);
}
.ldp-note-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-border); }
.ldp-note-save { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; align-items: center; }
.ldp-note-save-btn {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background var(--duration-fast);
}
.ldp-note-save-btn:hover { background: var(--accent-dark); }
.ldp-note-sms { font-size: 11px; color: var(--text-3); }

/* SMS modal */
.ldp-sms-modal {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  margin-top: 12px;
}
.ldp-sms-body {
  font-family: var(--font-sans);
  font-size: 13px;
  width: 100%;
  min-height: 80px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--text);
  background: var(--surface);
  resize: vertical;
  outline: none;
}
.ldp-sms-body:focus { border-color: var(--accent); }
.ldp-sms-chars { font-size: 10px; color: var(--text-3); text-align: right; margin-top: 4px; }
.ldp-sms-tpl { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.ldp-sms-btn {
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 99px;
  border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-2);
  cursor: pointer; transition: background .1s;
}
.ldp-sms-btn:hover { background: var(--surface-sunken); }
.ldp-sms-send {
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  padding: 6px 16px; border-radius: var(--radius-sm); border: none;
  background: var(--accent); color: #fff; cursor: pointer;
}
.ldp-sms-send:hover { background: var(--accent-dark); }
.ldp-sms-cancel {
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  padding: 6px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-2); cursor: pointer;
}
.ldp-sms-close { float: right; cursor: pointer; font-size: 16px; color: var(--text-3); line-height: 1; }

/* Email notice */
.ldp-email-btn {
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 99px;
  border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-2);
  cursor: pointer;
}
.ldp-email-notice { font-size: 11px; color: var(--text-3); margin-top: 6px; }

/* Side actions */
.ldp-side-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
}

/* Save button */
.ldp-save-btn {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  width: 100%;
  transition: background var(--duration-fast);
}
.ldp-save-btn:hover { background: var(--accent-dark); }

/* Delete button */
.ldp-del-btn {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--red-border);
  background: transparent;
  color: var(--red);
  cursor: pointer;
  width: 100%;
  transition: background var(--duration-fast);
}
.ldp-del-btn:hover { background: var(--red-light); }

/* Status bubble chips */
.ldp-sbub {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: opacity .15s;
}

/* Dark mode overrides */
[data-theme=dark] .ldp-pi,
[data-theme=dark] .ldp-fin-inp,
[data-theme=dark] .ldp-note-input,
[data-theme=dark] .ldp-sms-body { background: var(--surface); border-color: var(--border-strong); }
[data-theme=dark] .ldp-ctrig,
[data-theme=dark] .ldp-cdrop { background: var(--surface); border-color: var(--border-strong); }
[data-theme=dark] .ldp-note { background: var(--surface-2); border-color: var(--border); }

/* Responsive — stack columns on narrow panels */
@media (max-width: 900px) {
  .ldp-panel-layout { grid-template-columns: 1fr; }
  .ldp-side-col { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 20px; }
}


/* ── SECURITY SETTINGS SECTION ──────────────────────────── */

.sec-account-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
}
.sec-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sec-email {
  font-size: 14px; font-weight: 600; color: var(--text);
}
.sec-member-since {
  font-size: 12px; color: var(--text-3); margin-top: 2px;
}

.sec-2fa-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.sec-2fa-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.sec-2fa-info { flex: 1; }
.sec-2fa-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.sec-2fa-sub   { font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.sec-2fa-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sec-enabled-badge {
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 99px;
  background: #DCFCE7; color: #166534;
  border: 1px solid #BBF7D0;
}
[data-theme=dark] .sec-enabled-badge { background: rgba(22,101,52,.25); color: #4ade80; border-color: rgba(74,222,128,.2); }

.sec-session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  flex-wrap: wrap;
}
.sec-session-info {}
.sec-session-email { font-size: 13px; font-weight: 500; color: var(--text); }
.sec-session-device { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ── ANSWERING SERVICES TOGGLE ───────────────────────────── */

.calls-svc-tog {
  display: flex;
  gap: 2px;
  background: var(--surface-sunken);
  border-radius: 99px;
  padding: 3px;
}
.calls-svc-tog-btn {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
  border: none;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  transition: background .12s, color .12s;
  white-space: nowrap;
}
.calls-svc-tog-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

/* ── LEAD DRAWER — label fix ────────────────────────────── */
/* Ensure ldp-fin-lbl renders with proper uppercase styling */
.ldp-fin-lbl {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
  color: var(--text-3) !important;
}
/* Drawer: tighten fin-grid to full-width single column on narrower panels */
@media (max-width: 1100px) {
  .ldp-fin-grid { grid-template-columns: 1fr 1fr 1fr; }
}


/* ── INTAKE PAGE ─────────────────────────────────────────── */

/* Hero layout — dark background, white text */
.intake-hero-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  padding: 28px 32px;
}
.intake-hero-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  max-width: 360px;
  padding-right: 32px;
}
.intake-hero-num {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -.03em;
  margin: 8px 0 4px;
}
/* Override std-hero-eyebrow and std-hero-sub for white text on dark */
.std-hero .std-hero-eyebrow { color: rgba(255,255,255,.45); }
.std-hero .std-hero-sub     { color: rgba(255,255,255,.75); }
.std-hero .std-hero-sub strong { color: #fff; font-weight: 700; }

/* KPI strip — fills remaining space as a horizontal row of stats */
.intake-hero-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  align-items: center;
  gap: 0;
  border-left: 1px solid rgba(255,255,255,.08);
  padding-left: 32px;
}
.intake-hero-kpi {
  padding: 20px 24px 20px 0;
  border-right: 1px solid rgba(255,255,255,.06);
  margin-right: 0;
}
.intake-hero-kpi:last-child { border-right: none; }
.intake-hero-kpi-val {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -.02em;
}
.intake-hero-kpi-lbl {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  margin-top: 4px;
}
.intake-hero-kpi-sub {
  font-size: 10px;
  color: rgba(255,255,255,.3);
  margin-top: 2px;
}

/* Toggle buttons (shared across scorecards, booking rate by, trend) */
.intake-tog {
  display: flex;
  gap: 2px;
  background: var(--surface-sunken);
  border-radius: 99px;
  padding: 3px;
}
.intake-tog-btn {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
  border: none;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  transition: background .12s, color .12s;
  white-space: nowrap;
}
.intake-tog-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

/* AI strip */
.intake-ai-strip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 20px;
  background: var(--accent-light);
  border-top: 1px solid var(--accent-border);
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
}
.intake-ai-tag {
  font-size: 9px; font-weight: 800;
  letter-spacing: .08em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  flex-shrink: 0;
  margin-top: 1px;
}
.intake-ai-text { flex: 1; }

/* Monthly bar chart */
.intake-chart-wrap { padding: 16px 20px 0; }
.intake-bars-area {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  border-bottom: 1px solid var(--border);
}
.intake-x-labels {
  display: flex;
  gap: 6px;
  padding-top: 6px;
  font-size: 10px;
  color: var(--text-3);
}

/* ── SECURITY — fix 2fa row alignment ───────────────────── */
/* Override to ensure icon+text+actions stay on one line */
.sec-2fa-row {
  align-items: center !important;
}
.sec-2fa-row > div:last-child {
  flex-shrink: 0;
  margin-left: auto;
}


/* ── INTAKE SCORECARD TABLE (consult-sc-table) ───────────── */
/* The intake scorecard uses <table class="consult-sc-table"> with
   bare <th> and <td class="consult-sc-name|consult-sc-val"> */

.consult-sc-table {
  width: 100%;
  border-collapse: collapse;
}
.consult-sc-table thead tr {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.consult-sc-table th {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 10px 16px;
  text-align: left;
  white-space: nowrap;
}
.consult-sc-table th:not(:first-child) { text-align: right; }
.consult-sc-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: 13px;
  color: var(--text);
}
.consult-sc-table tbody tr:last-child td { border-bottom: none; }
.consult-sc-table tbody tr:hover td { background: var(--surface-2); }

/* Name column — left-aligned, bold */
.consult-sc-table td.consult-sc-name {
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
/* Numeric value columns — right-aligned */
.consult-sc-table td.consult-sc-val {
  text-align: right;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
}
/* Bar column */
.consult-sc-table td:last-child {
  text-align: left;
  padding-right: 20px;
}
