/* =========================================================
   LOCALACT, Brand-aligned enterprise redesign
   Palette: LOCALACT sky blue primary + warm neutrals + data hues
   Type: Fraunces (display) + Inter (UI) + JetBrains Mono
   ========================================================= */

:root {
  /* Neutrals, Apple-style: soft gray surface with pure white cards */
  --cream: #F5F5F7;
  --cream-2: #ececee;
  --cream-3: #d4d4d7;
  --paper: #FFFFFF;
  --ink: #2a2a2b;
  --ink-2: #2a2a2b;
  --ink-3: #6E6E73;
  --ink-4: #a9a9ae;
  --ink-5: #a9a9ae;
  --line: #E5E5E7;
  --line-2: #d4d4d7;

  /* LOCALACT primary, sampled from app.localact.com */
  --brand-navy: #002857;     /* deep cobalt topbar */
  --brand-navy-2: #00234d;
  --terra: #002857;          /* primary action */
  --terra-2: #4d6989;        /* hover/lighter */
  --terra-3: #6e6e73;        /* was bright blue — now dark gray, per brand hierarchy */
  --terra-soft: #eef0f2;
  --terra-softer: #f7f8f9;

  /* Pastel data palette (matching LOCALACT chart colors) */
  --sage: #0d8a8a;           /* mint, positive */
  --sage-soft: #e2f1f1;
  --marigold: #d6b84d;       /* sunny yellow */
  --marigold-soft: #f8f3e0;
  --berry: #e46c63;          /* soft pink */
  --berry-soft: #fae6e4;
  --sky: #5b5d63;            /* was bright blue — now dark gray (brand hierarchy: navy/orange/dark-gray/gold) */
  --sky-soft: #ececee;
  --violet: #4d6989;         /* lavender */
  --violet-soft: #e0e5eb;
  --coral: #f6a663;          /* warm coral */
  --coral-soft: #fdf0e4;
  --clay: #b8846d;           /* clay / terracotta neutral */
  --clay-soft: #f5e7df;
  --teal: #56adad;           /* teal */
  --teal-soft: #e2f1f1;

  /* Semantic */
  --ok: #1f9d55;
  --warn: #ce9e07;
  --bad: #d92d20;

  /* Channel hues, LOCALACT pastel stack */
  --ch-ppc: #002857;         /* Paid Search — navy (was bright blue) */
  --ch-seo: #0d8a8a;
  --ch-lsa: #d6b84d;
  --ch-social: #e46c63;
  --ch-lseo: #4d6989;
  --ch-llm: #f6a663;

  /* Shape */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Shadows, cool neutral */
  --sh-1: 0 1px 2px rgba(15,30,46,.04), 0 2px 6px rgba(15,30,46,.04);
  --sh-2: 0 2px 6px rgba(15,30,46,.06), 0 8px 24px rgba(15,30,46,.07);
  --sh-3: 0 4px 12px rgba(15,30,46,.08), 0 20px 40px rgba(15,30,46,.12);

  /* Type, Apple HIG inspired (SF Pro stand-in: Inter Tight + Inter) */
  --ff-display: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  --ff-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --ff-mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Roboto Mono', monospace;

  /* Topbar brand bar (added for brand-aligned header) */
  --brand-bar-h: 0px;

  --sidebar-w: 240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  font-family: var(--ff-ui);
  color: var(--ink);
  background: var(--cream);
  font-feature-settings: "ss01","cv11";
  -webkit-font-smoothing: antialiased;
}
button { cursor: pointer; border: none; font-family: inherit; color: inherit; background: none; }
a { text-decoration: none; color: inherit; }
input, select, textarea { font-family: inherit; color: inherit; }
::selection { background: var(--terra); color: var(--cream); }

/* Display type */
.display {
  font-family: var(--ff-display);
  font-weight: 600;
  letter-spacing: -0.022em;
}

/* =========================================================
   APP SHELL
   ========================================================= */
.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: var(--cream);
}
.app-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* ---- Sidebar (LOCALACT white) ---- */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
  border-right: 1px solid var(--line);
}
.sidebar::before { display: none; }
.sb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px 14px;
  position: relative;
  z-index: 2;
  background: var(--brand-navy);
  color: var(--paper);
}
.sb-logo-mark {
  width: 30px; height: 30px;
  background: var(--paper);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-navy);
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.sb-logo-text {
  font-family: var(--ff-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--paper);
}
.sb-logo-text em {
  font-style: italic;
  color: var(--terra-3);
  font-weight: 400;
}

/* Location switcher */
.loc-sw {
  margin: 12px 14px 10px;
  background: var(--terra-softer);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 10px 12px;
  cursor: pointer;
  transition: all .15s;
  position: relative;
  z-index: 2;
}
.loc-sw:hover { background: var(--terra-soft); border-color: var(--terra-3); }
.loc-sw-lbl {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ink-4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.loc-sw-name {
  font-family: var(--ff-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.loc-sw-sub {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
}
.loc-sw-chev {
  color: var(--ink-4);
  font-size: 11px;
}

/* Account-scope state, shown when the current page spans every location
   (e.g. consolidated billing). Reads as "global", not a single store, and
   is non-interactive since there's nothing to switch. */
.loc-sw--account {
  cursor: default;
  background: rgba(29, 76, 181, 0.06);
  border-color: rgba(29, 76, 181, 0.18);
}
.loc-sw--account:hover {
  background: rgba(29, 76, 181, 0.06);
  border-color: rgba(29, 76, 181, 0.18);
}
.loc-sw--account .loc-sw-lbl { color: var(--brand-navy); }
.loc-sw--account .loc-sw-name { font-size: 14px; }
.loc-sw--account .loc-sw-name::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-navy);
  opacity: 0.7;
  margin-right: 7px;
  vertical-align: middle;
}

/* Breadcrumb scope pill, middle segment when a page is account-wide */
.crumb-scope {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(29, 76, 181, 0.08);
  color: var(--brand-navy);
  font-size: 11.5px;
  font-weight: 600;
}
.crumb-scope::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-navy);
  opacity: 0.7;
}

/* Multi-location switcher, interactive dropdown */
.loc-sw-wrap { position: relative; z-index: 5; margin: 12px 14px 10px; }
.loc-sw-wrap .loc-sw { margin: 0; }
.loc-sw.open { border-color: var(--terra-3); background: var(--terra-soft); }
.loc-sw--static { cursor: default; }
.loc-sw--static:hover { background: var(--terra-softer); border-color: var(--line); }
.loc-sw-menu {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 6px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  padding: 6px;
  z-index: 30;
  max-height: 320px; overflow-y: auto;
}
.loc-sw-item {
  display: flex; flex-direction: column; gap: 1px;
  padding: 8px 10px; border-radius: var(--r-sm);
  cursor: pointer; transition: background .12s;
}
.loc-sw-item:hover { background: var(--terra-softer); }
.loc-sw-item.on { background: var(--terra-soft); }
.loc-sw-item-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.loc-sw-item-sub { font-size: 10.5px; color: var(--ink-3); }

.sb-nav {
  flex: 1;
  padding: 6px 12px;
  overflow-y: auto;
  position: relative;
  z-index: 2;
}
.sb-nav::-webkit-scrollbar { width: 0; }
.sb-section {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--ink-4);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 10px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  margin-bottom: 1px;
  border: 1px solid transparent;
}
.nav-item:hover {
  background: var(--terra-softer);
  color: var(--ink);
}
.nav-item.active {
  background: var(--terra-soft);
  color: var(--terra);
  border-color: var(--terra-3);
  font-weight: 600;
}
.nav-item.active .nav-icon /* Default for inline icon SVGs, keep them small, stroked, transparent-filled.
   Components that need different behavior (Lenny, charts) set width/height/fill explicitly. */
svg:not([width]):not([height]) {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.topbar-search svg { width: 14px; height: 14px; color: var(--ink-4); }
.tb-icon-btn svg { width: 16px; height: 16px; }
.tb-lenny-btn svg { color: currentColor; }
.nav-icon {
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
}
.nav-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.nav-badge {
  margin-left: auto;
  background: var(--terra);
  color: var(--paper);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
}
.nav-item-premium {
  position: relative;
  margin: 6px 0 8px;
  background: linear-gradient(135deg, var(--la-brand-secondary-50) 0%, var(--la-brand-primary-50) 100%);
  border: 1px solid var(--la-brand-secondary-200) !important;
  color: var(--la-brand-secondary-700);
  font-weight: 700;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(77,105,137,0.18) inset, 0 4px 14px rgba(60,30,90,0.08);
}
.nav-item-premium::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--la-brand-secondary-500) 0%, var(--la-brand-primary-500) 100%);
}
.nav-item-premium:hover {
  background: linear-gradient(135deg, var(--la-brand-secondary-100) 0%, var(--la-brand-primary-100) 100%);
  color: var(--la-brand-secondary-800);
  transform: translateX(1px);
}
.nav-item-premium.active {
  background: linear-gradient(135deg, var(--la-brand-secondary-600) 0%, var(--la-brand-secondary-500) 100%);
  color: var(--cream);
  border-color: var(--la-brand-secondary-600) !important;
}
.nav-item-premium.active .nav-premium-badge { color: var(--la-brand-quaternary-400); }
.nav-premium-glow {
  position: absolute;
  right: -10px; top: -10px;
  width: 40px; height: 40px;
  background: radial-gradient(circle, rgba(246,166,99,0.45), transparent 65%);
  pointer-events: none;
}
.nav-premium-badge {
  font-size: 11px;
  color: var(--la-brand-quaternary-600);
  margin-left: 4px;
  filter: drop-shadow(0 0 4px rgba(196,154,0,0.45));
}
.nav-badge.soft {
  background: var(--marigold-soft);
  color: #725900;
}

/* Lenny sidebar card */
.sb-lenny {
  margin: 10px 14px;
  padding: 12px;
  background: linear-gradient(135deg, var(--terra-softer), var(--terra-soft));
  border: 1px solid var(--terra-3);
  border-radius: var(--r);
  cursor: pointer;
  transition: all .2s;
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.sb-lenny:hover { transform: translateY(-1px); border-color: var(--terra-2); box-shadow: var(--sh-2); }
.sb-lenny-row { display: flex; align-items: center; gap: 10px; }
.sb-lenny-avatar {
  width: 36px; height: 36px;
  background: var(--paper);
  border: 2px solid var(--terra-3);
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.sb-lenny-name { font-size: 12px; font-weight: 700; color: var(--ink); }
.sb-lenny-role { font-size: 10px; color: var(--ink-3); }
.sb-lenny-msg {
  font-size: 11px;
  color: var(--ink-2);
  margin-top: 8px;
  line-height: 1.4;
}
.sb-lenny-cta {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--terra);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* Playbook sidebar card (HQ) */
.sb-playbook {
  margin: 10px 14px;
  padding: 14px;
  background: linear-gradient(160deg, var(--la-brand-secondary-50) 0%, #ffffff 55%, var(--la-brand-primary-50) 100%);
  border: 1px solid var(--violet-soft);
  border-radius: var(--r);
  cursor: pointer;
  transition: all .18s ease;
  position: relative;
  z-index: 2;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(126, 87, 194, 0.06) inset;
}
.sb-playbook::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(248, 180, 127, 0.22), transparent 55%);
  pointer-events: none;
}
.sb-playbook:hover {
  transform: translateY(-1px);
  border-color: var(--violet);
  box-shadow: 0 6px 18px rgba(126, 87, 194, 0.16);
}
.sb-pb-head { display: flex; align-items: center; gap: 10px; position: relative; }
.sb-pb-mark {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--la-brand-secondary-500) 0%, var(--la-brand-secondary-400) 100%);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 40, 87, 0.22);
}
.sb-pb-name {
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.sb-pb-version {
  font-size: 10px;
  color: var(--ink-3);
  font-family: var(--ff-mono);
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.sb-pb-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 8px 10px;
  background: rgba(255, 252, 245, 0.72);
  border-radius: 7px;
  border: 1px solid rgba(126, 87, 194, 0.10);
  position: relative;
}
.sb-pb-stat { flex: 1; min-width: 0; }
.sb-pb-stat-v {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1;
}
.sb-pb-stat-l {
  font-size: 9.5px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-top: 3px;
}
.sb-pb-stat-divider { width: 1px; height: 22px; background: rgba(126, 87, 194, 0.14); }
.sb-pb-news {
  margin-top: 10px;
  padding: 9px 10px;
  background: rgba(255, 248, 235, 0.85);
  border: 1px solid rgba(248, 180, 127, 0.45);
  border-radius: 7px;
  position: relative;
}
.sb-pb-news-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 700;
  color: #917200;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.sb-pb-news-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--marigold);
  box-shadow: 0 0 0 3px rgba(248, 180, 127, 0.32);
  animation: sbPbDotPulse 2.1s ease-in-out infinite;
}
@keyframes sbPbDotPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(248, 180, 127, 0.32); }
  50%      { box-shadow: 0 0 0 5px rgba(248, 180, 127, 0.08); }
}
.sb-pb-news-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.sb-pb-news-sub {
  font-size: 10.5px;
  color: var(--ink-3);
  margin-top: 2px;
  line-height: 1.35;
}
.sb-pb-news-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.sb-pb-news-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  background: var(--paper);
  border: 1px solid rgba(248, 180, 127, 0.55);
  border-radius: 4px;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #917200;
  letter-spacing: 0.02em;
}
.sb-pb-news-row .sb-pb-news-sub {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--violet);
  margin-top: 0;
  margin-left: auto;
}
.sb-pb-cta {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--violet);
  margin-top: 10px;
  letter-spacing: 0.02em;
  position: relative;
}

.sb-bottom { padding: 8px 12px 14px; position: relative; z-index: 2; border-top: 1px solid var(--line); margin-top: 4px; }
.user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r);
  cursor: pointer;
  transition: background .15s;
}
.user-row:hover { background: var(--cream-2); }
.user-avatar-sm {
  width: 30px; height: 30px;
  background: var(--terra);
  color: var(--paper);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.user-name-sm { font-size: 12px; font-weight: 600; color: var(--ink); }
.user-role-sm { font-size: 10.5px; color: var(--ink-3); }

/* ---- Main area ---- */
.main {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: var(--cream);
}
.main::-webkit-scrollbar { width: 10px; }
.main::-webkit-scrollbar-track { background: transparent; }
.main::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 5px; }

/* Topbar */
.topbar {
  height: 64px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 64px;
  gap: 14px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}
@media (max-width: 1400px) {
  .topbar { padding: 0 48px; }
}
@media (max-width: 1200px) {
  .topbar { padding: 0 32px; }
}
.crumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
}
.crumb strong { color: var(--ink); font-weight: 600; }
.crumb .sep { color: var(--ink-5); }

/* ============================================================
   CHROME PICKERS, client (sidebar) + location & date (topbar)
   ============================================================ */

/* Client switcher, sidebar, top-left */
.client-sw-wrap { position: relative; margin: 14px 14px 12px; z-index: 7; }
.client-sw {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 9px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 15px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.client-sw:hover, .client-sw.open { border-color: var(--terra-3); box-shadow: var(--sh-1); }
.client-sw-av {
  width: 33px; height: 33px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--terra-soft); color: var(--terra-2);
  font-family: var(--ff-display); font-weight: 700; font-size: 13px;
  letter-spacing: .02em;
}
.client-sw-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.client-sw-lbl {
  font-size: 9px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-4);
}
.client-sw-name {
  font-family: var(--ff-display); font-size: 14px; font-weight: 600;
  color: var(--ink); line-height: 1.15; letter-spacing: -.015em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.client-sw-chev { color: var(--ink-4); font-size: 13px; flex-shrink: 0; line-height: 1; margin-left: 1px; }
.client-sw-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--paper); border: 1px solid var(--cream-3);
  border-radius: 14px; box-shadow: var(--sh-2);
  z-index: 30; padding: 6px;
}
.client-sw-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 9px; border-radius: 10px; cursor: pointer;
  transition: background .12s;
}
.client-sw-item:hover { background: var(--cream-2); }
.client-sw-item.on { background: var(--terra-soft); }
.client-sw-item-av {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-weight: 700; font-size: 11px;
  background: var(--cream-2); color: var(--ink-3);
}
.client-sw-item.on .client-sw-item-av { background: var(--terra-2); color: #fff; }
.client-sw-item-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.client-sw-item-sub { font-size: 11px; color: var(--ink-3); }

/* Topbar pickers, location + date range */
.tb-pickers { display: flex; align-items: center; gap: 10px; }
.tb-picker-wrap { position: relative; }
.tb-picker {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.tb-picker:hover { border-color: var(--line-2); box-shadow: var(--sh-1); }
.tb-picker.open { border-color: var(--terra-3); box-shadow: var(--sh-1); }
.tb-picker--static { cursor: default; }
.tb-picker--static:hover { border-color: var(--line); box-shadow: none; }
.tb-picker-ic { color: var(--ink-4); display: flex; flex-shrink: 0; }
.tb-picker-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.tb-picker-lbl {
  font-size: 9px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-4);
}
.tb-picker-val {
  font-size: 14px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px;
}
.tb-picker-chev { color: var(--ink-4); font-size: 13px; flex-shrink: 0; line-height: 1; margin-left: 2px; }
.tb-picker-menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--paper); border: 1px solid var(--cream-3);
  border-radius: 12px; box-shadow: var(--sh-2);
  z-index: 120; min-width: 240px; padding: 6px;
  max-height: 360px; overflow-y: auto;
}
.tb-pick-item {
  display: flex; flex-direction: column; gap: 1px;
  padding: 9px 11px; border-radius: 8px; cursor: pointer;
  transition: background .12s;
}
.tb-pick-item:hover { background: var(--cream-2); }
.tb-pick-item.on { background: var(--terra-soft); }
.tb-pick-item-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.tb-pick-item-sub { font-size: 11px; color: var(--ink-3); }
.topbar-spacer { flex: 1; }
.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 7px 14px;
  min-width: 240px;
  color: var(--ink-3);
  font-size: 12.5px;
  cursor: text;
  transition: border-color .15s;
}
.topbar-search:hover { border-color: var(--line-2); }
.topbar-search kbd {
  font-family: var(--ff-mono);
  font-size: 10px;
  background: var(--cream-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink-3);
  margin-left: auto;
}
.tb-icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: all .15s;
}
.tb-icon-btn:hover { border-color: var(--line-2); background: var(--cream-2); }
.tb-icon-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.tb-icon-btn .dot {
  position: absolute;
  top: 7px; right: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--terra);
  border: 2px solid var(--cream);
}
.tb-lenny-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  background: var(--brand-navy);
  color: var(--paper);
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--ink);
  transition: all .15s;
}
.tb-lenny-btn:hover { background: var(--ink-2); }
.tb-lenny-btn .avatar {
  width: 26px; height: 26px;
  background: var(--terra);
  border-radius: 50%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.tb-lenny-btn .avatar svg { width: 22px; height: 22px; }

/* ---- Density toggle (Owner / Pro view) ---- */
.density-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.density-seg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
  transition: color .15s, background .15s, box-shadow .15s;
}
.density-seg:hover { color: var(--ink-2); }
.density-seg .density-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: .55;
}
.density-seg.on {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--sh-1);
}
.density-seg.on .density-dot { background: var(--terra); opacity: 1; }

/* Page content */
.content {
  padding: 44px 64px 88px;
  max-width: 1480px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 1400px) {
  .content { padding: 40px 48px 80px; }
}
@media (max-width: 1200px) {
  .content { padding: 32px 32px 64px; }
}
.page { display: none; }
.page.active { display: block; animation: pageIn .28s ease both; }
@keyframes pageIn { from { transform: translateY(6px); } to { transform: translateY(0); } }

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  gap: 24px;
}
.page-title {
  font-family: var(--ff-display);
  font-size: 34px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.028em;
  line-height: 1.08;
}
.page-title em {
  font-style: normal;
  color: var(--ink);
  font-weight: 600;
}
.page-sub {
  font-size: 15px;
  color: var(--ink-3);
  margin-top: 6px;
  max-width: 560px;
  line-height: 1.45;
  letter-spacing: -0.008em;
}
.page-actions { display: flex; gap: 8px; align-items: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: all .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--brand-navy); color: var(--paper); }
.btn-primary:hover { background: var(--brand-navy-2); transform: translateY(-1px); }
.btn-terra { background: var(--terra); color: var(--paper); }
.btn-terra:hover { background: var(--terra-2); }
.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink-4); background: var(--cream-2); }
.btn-quiet { color: var(--ink-3); font-weight: 500; }
.btn-quiet:hover { color: var(--ink); }
.btn-sm { font-size: 12px; padding: 6px 12px; }
.btn-xs { font-size: 11px; padding: 4px 10px; font-weight: 600; }

/* Section labels */
.section-label {
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 28px 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--line-2);
}
.section-label .count {
  font-family: var(--ff-ui);
  font-size: 10.5px;
  color: var(--ink-4);
  background: var(--cream-2);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* Cards */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: none;
  transition: border-color .15s;
}
.card:hover { border-color: var(--line-2); }
.card-pad { padding: 24px 26px; }
.card-title {
  font-family: var(--ff-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.022em;
}
.card-sub {
  font-size: 13.5px;
  color: var(--ink-3);
  margin-top: 4px;
  letter-spacing: -0.005em;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  gap: 12px;
}

/* Grids */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
.grid-5-2 { grid-template-columns: 2.4fr 1fr; }
.grid-2-1 { grid-template-columns: 2fr 1fr; }

/* KPIs */
.kpi-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}
.kpi-card .spark {
  position: absolute;
  right: 14px; bottom: 10px;
  opacity: .9;
}
.kpi-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.kpi-label .dot { width: 7px; height: 7px; border-radius: 50%; }
.kpi-val {
  font-family: var(--ff-ui);
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum", "lnum", "cv11";
}
.kpi-val .unit { font-size: 20px; color: var(--ink-3); font-weight: 500; margin-right: 1px; }
.kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
}
.delta-up { color: var(--ok); background: var(--sage-soft); }
.delta-down { color: var(--bad); background: var(--berry-soft); }
.delta-flat { color: var(--ink-3); background: var(--cream-2); }

/* Tabs */
.tabs {
  display: flex;
  gap: 2px;
  background: var(--cream-2);
  border-radius: var(--r-pill);
  padding: 4px;
  width: fit-content;
  margin-bottom: 20px;
}
.tab {
  padding: 7px 16px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-3);
  transition: all .15s;
}
.tab.active {
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--sh-1);
}
.tab:hover:not(.active) { color: var(--ink); }

/* Pills / badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.badge-ok { background: var(--sage-soft); color: #0a6666; }
.badge-warn { background: var(--marigold-soft); color: #725900; }
.badge-bad { background: var(--berry-soft); color: #a12118; }
/* Sanctioned dark panel — navy + brand cover-streaks (matches Enterprise Reporting hero) */
.streak-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, var(--la-brand-secondary-900) 0%, rgba(0,17,37,0.55) 52%, rgba(0,17,37,0.20) 100%),
    url('brand/cover-streaks.png');
  background-size: cover, cover;
  background-position: center, right center;
  background-repeat: no-repeat, no-repeat;
  color: var(--cream);
  border: none !important;
}

.badge-info { background: var(--sky-soft); color: var(--brand-navy); }
.badge-neutral { background: var(--cream-2); color: var(--ink-2); }
.badge-terra { background: var(--terra-soft); color: var(--brand-navy); }

/* Tables */
.tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.tbl th {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  padding: 10px 20px;
  text-align: left;
  background: var(--cream-2);
  border-bottom: 1px solid var(--line);
}
.tbl td {
  padding: 13px 20px;
  font-size: 12.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--cream); }

/* Clickable location rows (HQ Locations table) */
.loc-row { transition: background .12s; }
.loc-row:hover { background: var(--cream); }

/* Progress */
.progress {
  height: 6px;
  background: var(--cream-2);
  border-radius: var(--r-pill);
  overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--terra), var(--marigold));
  transition: width .5s ease;
}

/* Empty / placeholder imagery */
.placeholder {
  background-image: repeating-linear-gradient(135deg, var(--cream-2) 0 10px, var(--cream) 10px 20px);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-4);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}

/* Lenny inline card */
.lenny-card {
  position: relative;
  background: linear-gradient(135deg, var(--terra-softer) 0%, var(--paper) 60%, var(--sage-soft) 100%);
  border: 1px solid var(--terra-3);
  border-radius: var(--r-xl);
  padding: 22px 24px;
  overflow: hidden;
}
.lenny-card::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(206,158,7,.16), transparent 70%);
  pointer-events: none;
}
.lenny-card::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(107,143,113,.14), transparent 70%);
  pointer-events: none;
}
.lenny-hdr {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  position: relative;
}
.lenny-hdr .avatar {
  width: 52px; height: 52px;
  background: var(--paper);
  border: 2px solid var(--cream-3);
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--sh-1);
}
.lenny-hdr .name {
  font-family: var(--ff-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.lenny-hdr .name em {
  font-weight: 400;
  font-style: italic;
  color: var(--terra);
}
.lenny-hdr .role {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lenny-hdr .role .status-dot {
  width: 7px; height: 7px;
  background: var(--ok);
  border-radius: 50%;
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: .6; }
}

.insight-list { position: relative; display: flex; flex-direction: column; gap: 2px; }
.insight {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px dashed var(--cream-3);
  position: relative;
}
.insight-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.insight-icon svg { width: 14px; height: 14px; }
.insight-body { flex: 1; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.insight-body strong { color: var(--ink); font-weight: 600; }
.insight-ctas { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

/* Mini sparkline */
.spark-bars { display: flex; align-items: flex-end; gap: 2px; height: 24px; }
.spark-bars span {
  width: 3px;
  background: var(--terra);
  border-radius: 2px;
  opacity: .75;
}

/* Score ring */
.score-ring { position: relative; display: inline-block; }
.score-ring svg { display: block; }
.score-ring .val {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--ff-display);
  font-size: 30px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.score-ring .val .lbl {
  font-family: var(--ff-ui);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-top: -2px;
}

/* Chat panel */
.chat-panel {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 380px; height: 560px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  display: none;
  flex-direction: column;
  z-index: 100;
  overflow: hidden;
  transform: translateY(8px);
  opacity: 0;
  transition: all .25s;
}
.chat-panel.open { display: flex; transform: translateY(0); opacity: 1; }
.chat-hdr {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--cream-2), var(--cream));
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-hdr .avatar {
  width: 38px; height: 38px;
  background: var(--paper);
  border: 2px solid var(--cream-3);
  border-radius: 50%;
  overflow: hidden;
}
.chat-hdr .name {
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.chat-hdr .status {
  font-size: 11px;
  color: var(--ok);
  display: flex; align-items: center; gap: 5px;
}
.chat-close {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 20px;
  width: 28px; height: 28px;
  border-radius: 50%;
}
.chat-close:hover { background: var(--cream-2); color: var(--ink); }
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: var(--r-lg);
  font-size: 13px;
  line-height: 1.5;
}
.chat-msg.bot {
  background: var(--cream-2);
  color: var(--ink);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-msg.user {
  background: var(--brand-navy);
  color: var(--paper);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-suggestions {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 4px;
}
.chat-sug {
  font-size: 11.5px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .15s;
}
.chat-sug:hover { background: var(--terra); color: var(--cream); border-color: var(--terra); }
.chat-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: var(--cream);
  display: flex;
  gap: 8px;
  align-items: center;
}
.chat-input {
  flex: 1;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  font-size: 13px;
  outline: none;
  transition: border-color .15s;
}
.chat-input:focus { border-color: var(--ink-4); }
.chat-send {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--terra);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
}
.chat-send:hover { background: var(--terra-2); }

/* Thinking dots */
.thinking { display: inline-flex; gap: 3px; align-items: center; }
.thinking span {
  width: 5px; height: 5px;
  background: var(--ink-4);
  border-radius: 50%;
  animation: think 1.4s infinite;
}
.thinking span:nth-child(2) { animation-delay: .2s; }
.thinking span:nth-child(3) { animation-delay: .4s; }
@keyframes think {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Notifications drawer */
.notif-panel {
  position: fixed;
  top: 70px; right: 20px;
  width: 380px;
  max-height: 520px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  display: none;
  flex-direction: column;
  z-index: 90;
  overflow: hidden;
}
.notif-panel.open { display: flex; animation: panelIn .2s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.notif-hdr {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.notif-hdr-title { font-family: var(--ff-display); font-size: 15px; font-weight: 600; }
.notif-body { flex: 1; overflow-y: auto; padding: 6px 0; }
.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--cream-2);
  cursor: pointer;
  transition: background .15s;
  align-items: flex-start;
}
.notif-item:hover { background: var(--cream); }
.notif-item.unread { background: var(--cream); }
.notif-item.unread::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--terra);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.notif-ic {
  width: 32px; height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.notif-ic svg { width: 14px; height: 14px; }
.notif-text { flex: 1; font-size: 12.5px; line-height: 1.45; color: var(--ink); }
.notif-text .t { font-weight: 600; }
.notif-text .m { color: var(--ink-3); margin-top: 2px; }
.notif-time { font-size: 10.5px; color: var(--ink-4); font-family: var(--ff-mono); }

/* Floating Lenny FAB (hero llama corner) */
.lenny-fab {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 64px; height: 64px;
  background: var(--brand-navy);
  border-radius: 50%;
  box-shadow: var(--sh-3);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 99;
  transition: transform .2s;
  border: 3px solid var(--cream);
  overflow: visible;
}
.lenny-fab:hover { transform: scale(1.05) rotate(-3deg); }
.lenny-fab svg { width: 52px; height: 52px; }
.lenny-fab .speech {
  position: absolute;
  right: 76px; top: 10px;
  background: var(--brand-navy);
  color: var(--paper);
  font-size: 12px;
  padding: 8px 14px;
  border-radius: var(--r-lg);
  white-space: nowrap;
  box-shadow: var(--sh-2);
  opacity: 0;
  transform: translateX(8px);
  transition: all .2s;
  pointer-events: none;
}
.lenny-fab:hover .speech { opacity: 1; transform: translateX(0); }
.lenny-fab .speech::after {
  content: '';
  position: absolute;
  right: -5px; top: 14px;
  width: 10px; height: 10px;
  background: var(--brand-navy);
  transform: rotate(45deg);
}
.lenny-fab.hidden { display: none; }

/* Tweaks panel */
.tweaks {
  position: fixed;
  top: 80px; right: 20px;
  width: 280px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  z-index: 95;
  display: none;
  overflow: hidden;
}
.tweaks.open { display: block; }
.tweaks-hdr {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--ff-display);
  font-size: 15px;
  font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
}
.tweaks-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 16px; }
.tweak-group-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tweak-options { display: flex; flex-direction: column; gap: 4px; }
.tweak-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r);
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 12.5px;
  transition: all .15s;
}
.tweak-opt:hover { background: var(--cream); }
.tweak-opt.on { border-color: var(--terra); background: var(--terra-soft); }
.tweak-opt .ic {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--cream-2);
  display: flex; align-items: center; justify-content: center;
}
.tweak-opt.on .ic { background: var(--terra); color: var(--cream); }
.tweak-opt .meta { flex: 1; }
.tweak-opt .t { font-weight: 600; }
.tweak-opt .s { font-size: 11px; color: var(--ink-3); }

/* Confetti */
.confetti-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 1000;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  width: 10px; height: 14px;
  top: -20px;
  animation: confetti-fall 2.6s linear forwards;
}
@keyframes confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: .4; }
}

/* Floating Lenny */
.floating-lenny {
  position: fixed;
  bottom: 24px; left: 294px;
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  pointer-events: none;
}
.floating-lenny > * { pointer-events: auto; }
.fl-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 3px solid var(--paper);
  background: var(--terra-soft);
  box-shadow: var(--sh-3);
  cursor: pointer;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
  animation: fl-bounce 4s ease-in-out infinite;
}
.fl-btn:hover { transform: translateY(-4px) scale(1.05); }
@keyframes fl-bounce {
  0%, 90%, 100% { transform: translateY(0); }
  93%, 97% { transform: translateY(-4px); }
}
.fl-bubble {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  width: 280px;
  box-shadow: var(--sh-3);
  position: relative;
  animation: bubbleIn .25s ease;
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fl-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 24px;
  width: 14px; height: 14px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.fl-close {
  position: absolute;
  top: 8px; right: 8px;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--ink-3);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}
.fl-close:hover { background: var(--cream-3); color: var(--ink); }
.fl-t { font-family: var(--ff-display); font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.fl-m { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }

/* Utility */
.row { display: flex; align-items: center; gap: 10px; }
.col { display: flex; flex-direction: column; }
.space { flex: 1; }
.mono { font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: -0.02em; }
.muted { color: var(--ink-3); }
.strong { font-weight: 600; color: var(--ink); }

/* ============================================================ */
/* BARE-MINIMUM LOCATION, OPPORTUNITY-LED HOME                  */
/* ============================================================ */

/* ---- Opportunity hero ---- */
.opp-hero {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--la-brand-secondary-800) 0%, var(--la-brand-secondary-500) 60%, var(--la-brand-secondary-400) 100%);
  color: var(--paper);
  margin-bottom: 16px;
  box-shadow: var(--sh-2);
}
.opp-hero-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(120deg, var(--la-brand-secondary-900) 0%, rgba(0,23,50,0.35) 55%, transparent 100%),
    url('brand/cover-streaks.png');
  background-size: cover, cover;
  background-position: center, right center;
  background-repeat: no-repeat, no-repeat;
  opacity: 0.98;
  pointer-events: none;
}
.opp-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  padding: 32px 36px;
  align-items: center;
}
.opp-hero-left { min-width: 0; }
.opp-hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.opp-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--marigold);
  box-shadow: 0 0 0 4px rgba(214,184,77,.25);
  animation: opp-pulse 2s ease-in-out infinite;
}
@keyframes opp-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(214,184,77,.25); }
  50% { box-shadow: 0 0 0 8px rgba(214,184,77,.12); }
}
.opp-hero-big {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--ff-display);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 18px;
  color: var(--paper);
}
.opp-hero-prefix { font-size: 56px; color: var(--marigold); font-weight: 400; }
.opp-hero-money {
  font-size: 92px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--la-brand-secondary-100) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.opp-hero-unit { font-size: 28px; color: rgba(255,255,255,.65); font-family: var(--ff-ui); font-weight: 500; margin-left: 6px; }
.opp-hero-sub {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,.82);
  max-width: 540px;
  margin-bottom: 22px;
}
.opp-hero-sub strong { color: var(--paper); font-weight: 600; }
.opp-hero-sub em { color: var(--marigold); font-style: normal; font-weight: 600; }
.opp-hero-ctas { display: flex; gap: 10px; }
.opp-hero-ctas .btn-ghost {
  background: rgba(255,255,255,.1);
  color: var(--paper);
  border-color: rgba(255,255,255,.2);
}
.opp-hero-ctas .btn-ghost:hover { background: rgba(255,255,255,.18); }
.opp-hero-ctas .btn-terra {
  background: var(--marigold);
  color: var(--la-brand-quaternary-950);
  border-color: transparent;
  font-weight: 700;
}
.opp-hero-ctas .btn-terra:hover { background: var(--la-brand-quaternary-400); transform: translateY(-1px); }

.opp-hero-right {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  backdrop-filter: blur(10px);
}
.opp-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 14px;
}
.opp-bar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.opp-bar {
  flex: 1;
  border-radius: var(--r);
  padding: 16px 14px;
  text-align: center;
  position: relative;
}
.opp-bar.today {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
.opp-bar.projected {
  background: linear-gradient(135deg, var(--la-brand-quaternary-500), var(--la-brand-quaternary-400));
  color: var(--la-brand-quaternary-950);
  box-shadow: 0 6px 24px rgba(196,154,0,.28);
}
.opp-bar-val {
  font-family: var(--ff-display);
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}
.opp-bar.today .opp-bar-val { color: var(--paper); }
.opp-bar.projected .opp-bar-val { color: var(--la-brand-quaternary-950); }
.opp-bar-cap {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.75;
}
.opp-bar-delta {
  position: absolute;
  top: -8px; right: -8px;
  background: var(--ok);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-2);
}
.opp-arrow { width: 40px; height: 50px; flex-shrink: 0; opacity: 0.7; }
.opp-hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 14px;
}
.opp-meta-item { text-align: center; }
.opp-meta-lbl {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 4px;
}
.opp-meta-val {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--paper);
  letter-spacing: -0.01em;
}

/* ---- Current state card ---- */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.cs-kpi {
  padding: 12px;
  border-radius: var(--r);
  background: var(--cream);
  border: 1px solid var(--line);
}
.cs-kpi-val {
  font-family: var(--ff-ui);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.cs-kpi-lbl {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-top: 6px;
  font-weight: 600;
}
.cs-kpi-ctx {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 6px;
  line-height: 1.3;
}
.cs-kpi-ctx strong { color: var(--ink-2); }
.cs-kpi-ctx.cs-bad { color: var(--bad); font-weight: 500; }

.cs-channel {
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}
.cs-channel-hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 12px;
}
.cs-channel-swatch {
  width: 10px; height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.cs-channel-meta {
  font-size: 11.5px;
  color: var(--ink-4);
  font-family: var(--ff-mono);
}
.cs-empties {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.cs-empty {
  font-size: 11.5px;
  color: var(--ink-4);
  padding: 10px 12px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-sm);
  background: repeating-linear-gradient(
    -45deg,
    transparent 0 8px,
    rgba(141,151,167,.04) 8px 9px
  );
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cs-empty-x { color: var(--ink-5); font-weight: 700; margin-right: 4px; }
.cs-empty-tag {
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-5);
}

/* ---- Potential card ---- */
.pot-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--terra-3);
  background: linear-gradient(135deg, #FFFFFF 0%, var(--terra-softer) 100%);
}
.pot-glow {
  position: absolute;
  top: -80px; right: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(214,184,77,.25), transparent 70%);
  pointer-events: none;
}
.pot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
  position: relative;
}
.pot-kpi {
  padding: 12px;
  border-radius: var(--r);
  background: var(--paper);
  border: 1px solid var(--line);
}
.pot-kpi-val {
  font-family: var(--ff-ui);
  font-size: 26px;
  font-weight: 600;
  color: var(--brand-navy);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.pot-kpi-lbl {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-top: 6px;
  font-weight: 600;
}
.pot-kpi-delta {
  font-size: 11.5px;
  color: var(--ok);
  margin-top: 6px;
  font-weight: 600;
}
.pot-money {
  padding: 14px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  position: relative;
}
.pot-money-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.pot-money-lbl {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 600;
  margin-bottom: 4px;
}
.pot-money-val {
  font-family: var(--ff-ui);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.pot-money-val .u {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-4);
  margin-left: 2px;
}
.pot-money-plus {
  font-size: 22px;
  color: var(--ink-4);
  font-weight: 300;
}

/* ---- Dormant channels grid ---- */
.dc-running {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.dc-running-lbl {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 600;
}
.dc-running-val {
  font-family: var(--ff-ui);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
.dc-running-arrow { color: var(--ink-4); font-weight: 400; }

.dc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.dc-card {
  padding: 18px 18px 16px;
  border-right: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  min-width: 0;
}
.dc-card:last-child { border-right: none; }
.dc-card:hover { background: var(--terra-softer); }
.dc-card.on { background: linear-gradient(180deg, var(--terra-softer), var(--paper)); }
.dc-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.dc-swatch {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  flex-shrink: 0;
}
.dc-swatch svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.dc-card-title {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
  min-width: 0;
}
.dc-toggle {
  width: 32px; height: 18px;
  border-radius: 10px;
  background: var(--line-2);
  position: relative;
  flex-shrink: 0;
  transition: background .2s;
}
.dc-toggle span {
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: var(--paper);
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.dc-toggle.on { background: var(--ok); }
.dc-toggle.on span { transform: translateX(14px); }

.dc-why {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.45;
  margin-bottom: 14px;
  min-height: 50px;
}
.dc-proj {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  margin-bottom: 10px;
}
.dc-proj-item.revenue { grid-column: span 2; border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 2px; }
.dc-proj-lbl {
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 600;
  margin-bottom: 2px;
}
.dc-proj-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.dc-confidence {
  font-size: 10.5px;
  color: var(--ink-4);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.dc-conf-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dc-conf-very-high { background: var(--ok); }
.dc-conf-high { background: var(--sage); }
.dc-conf-medium { background: var(--marigold); }

/* ---- Ramp plan ---- */
.ramp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ramp-phase {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.ramp-phase-hdr {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.ramp-phase-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  color: var(--paper);
  font-family: var(--ff-display);
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ramp-phase-label {
  font-family: var(--ff-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.ramp-phase-days {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-top: 3px;
  font-weight: 600;
  font-family: var(--ff-mono);
}
.ramp-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  flex: 1;
}
.ramp-item {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.ramp-item:last-child { border-bottom: none; }
.ramp-item-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.ramp-check {
  width: 14px; height: 14px;
  border: 1.6px solid;
  border-radius: 50%;
  flex-shrink: 0;
}
.ramp-s {
  flex: 1;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.ramp-fee {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  background: var(--cream);
  padding: 2px 7px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}
.ramp-lift {
  font-size: 11px;
  color: var(--ink-3);
  padding-left: 22px;
}
.ramp-expected {
  border-top: 2px solid;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 600;
}
.ramp-expected strong {
  font-family: var(--ff-display);
  font-size: 15px;
  letter-spacing: -0.01em;
  text-transform: none;
}

/* ---- Competitive context ---- */
.comp-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.comp-row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.comp-row:last-child { border-bottom: none; }
.comp-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.comp-t {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 3px;
}
.comp-t strong { color: var(--terra); font-weight: 700; }
.comp-m {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.45;
}

/* ---- Quick wins ---- */
.qw-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.qw-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px dashed var(--line);
}
.qw-row:last-child { border-bottom: none; }
.qw-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--terra-soft);
  color: var(--brand-navy);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.qw-t {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.qw-m {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
  line-height: 1.35;
}
.qw-cost {
  font-size: 10.5px;
  font-family: var(--ff-mono);
  color: var(--ink-3);
  background: var(--cream);
  padding: 3px 8px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  white-space: nowrap;
  flex-shrink: 0;
}

/* =========================================================
   SIMPLE / OWNER VIEW
   Calmer, larger-type, fewer-cards rendering of Home + Results.
   ========================================================= */
.simple-page { animation: simpleIn .34s cubic-bezier(.22,.61,.36,1) both; }
@keyframes simpleIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.simple-page .page-header { margin-bottom: 28px; }

/* ---- Headline stat tiles ---- */
.simple-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}
.simple-stat {
  padding: 24px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 168px;
}
.simple-stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: -0.005em;
  margin-bottom: 8px;
}
.simple-stat-value {
  font-family: var(--ff-display);
  font-size: 52px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}
.simple-stat-affix {
  font-size: 30px;
  color: var(--ink-3);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.simple-stat-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.simple-stat-delta {
  font-size: 12.5px;
  font-weight: 700;
  font-family: var(--ff-mono);
  padding: 2px 8px;
  border-radius: var(--r-pill);
}
.simple-stat-delta.delta-up   { color: var(--ok);   background: var(--sage-soft); }
.simple-stat-delta.delta-down { color: var(--bad);  background: var(--coral-soft); }
.simple-stat-delta.delta-flat { color: var(--ink-3); background: var(--cream-2); }
.simple-stat-sub {
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: -0.005em;
}
.simple-stat-spark { margin-top: auto; padding-top: 14px; }

/* ---- Lenny's plain-language read ---- */
.simple-lenny {
  padding: 0;
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid var(--violet);
  background: linear-gradient(135deg, var(--violet-soft) 0%, var(--paper) 46%);
}
.simple-lenny-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
}
.simple-lenny-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--cream-3);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(77,105,137,0.25);
}
.simple-lenny-name {
  font-family: var(--ff-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.simple-lenny-role {
  font-size: 12px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.simple-lenny-chat { margin-left: auto; }
.simple-lenny-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  padding: 22px 26px 24px;
  align-items: start;
}
.simple-read-divider { width: 1px; align-self: stretch; background: var(--line); }
.simple-read-tag {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  margin-bottom: 10px;
}
.simple-read-tag.working { color: var(--ok);     background: var(--sage-soft); }
.simple-read-tag.next    { color: var(--brand-navy); background: var(--terra-soft); }
.simple-read-text {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: -0.008em;
  text-wrap: pretty;
}

/* ---- Owner action list ---- */
.simple-actions { margin-bottom: 22px; }
.simple-action-list { display: flex; flex-direction: column; }
.simple-action-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.simple-action-row:last-child { border-bottom: none; padding-bottom: 2px; }
.simple-action-row:first-child { padding-top: 2px; }
.simple-action-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.simple-action-text { flex: 1; min-width: 0; }
.simple-action-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.simple-action-why {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 3px;
  line-height: 1.4;
}

/* ---- Channels at a glance ---- */
.simple-channels { margin-bottom: 22px; }
.simple-channel-list { display: flex; flex-direction: column; }
.simple-channel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.simple-channel-row:last-child { border-bottom: none; }
.simple-channel-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.simple-channel-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.008em;
}
.simple-channel-verdict { margin-left: 4px; }
.simple-channel-leads {
  margin-left: auto;
  font-size: 13px;
  color: var(--ink-3);
}
.simple-channel-leads strong {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-right: 3px;
}
.simple-channel-empty {
  margin-top: 6px;
  padding: 13px 14px;
  border: 1px dashed var(--violet);
  border-radius: var(--r);
  background: var(--violet-soft);
  color: var(--violet);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background .15s;
}
.simple-channel-empty:hover { background: var(--paper); }

/* ---- Footer back to Pro view ---- */
.simple-pro-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 22px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  background: var(--cream);
  font-size: 13.5px;
  color: var(--ink-3);
}

/* ---- Numbered walk-down question headings ---- */
.simple-q {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 12px;
}
.simple-q:first-of-type { margin-top: 6px; }
.simple-q-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.simple-q-title {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* ---- 1) How am I doing ---- */
.simple-hru { padding: 26px 30px 22px; margin-bottom: 6px; }
.simple-hru-top {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 30px;
  align-items: center;
}
.simple-hru-ring { display: flex; justify-content: center; }
.simple-hru-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 12px;
}
.simple-hru-result {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: -0.008em;
  text-wrap: pretty;
  margin: 0;
}
.simple-hru-nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--cream-2);
}
.simple-hru-num-val {
  font-family: var(--ff-display);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}
.simple-hru-num-lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-top: 8px;
}
.simple-hru-num-sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.simple-hru-num-sub .delta-up   { color: var(--ok);  font-weight: 700; }
.simple-hru-num-sub .delta-down { color: var(--bad); font-weight: 700; }
.simple-hru-num-sub .delta-flat { color: var(--ink-3); font-weight: 700; }

/* ---- 2) What changed ---- */
.simple-changed { margin-bottom: 6px; }
.simple-changed-list { display: flex; flex-direction: column; }
.simple-changed-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.simple-changed-row:last-child { border-bottom: none; padding-bottom: 2px; }
.simple-changed-row:first-child { padding-top: 2px; }
.simple-changed-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.simple-changed-text { font-size: 15px; color: var(--ink); line-height: 1.5; letter-spacing: -0.006em; }
.simple-changed-text strong { font-weight: 700; }

/* ---- 4) Approvals + payment ---- */
.simple-owe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 6px; }
.simple-owe { display: flex; flex-direction: column; }
.simple-owe-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.simple-owe-title { font-family: var(--ff-display); font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.simple-owe-list { display: flex; flex-direction: column; gap: 10px; }
.simple-owe-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--cream);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-color .15s, background .15s;
}
.simple-owe-row:hover { border-color: var(--marigold); background: var(--paper); }
.simple-owe-count {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--marigold-soft);
  color: #8a5a10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}
.simple-owe-copy { flex: 1; min-width: 0; }
.simple-owe-what { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -0.008em; }
.simple-owe-why { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.simple-owe-go { font-size: 12px; color: var(--ink-3); font-weight: 600; flex-shrink: 0; }
.simple-pay {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--sage-soft);
}
.simple-pay-check {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}
.simple-pay-lead { font-size: 14.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.008em; }
.simple-pay-sub { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; line-height: 1.45; }

/* ---- Program participation ---- */
.simple-part { margin-bottom: 6px; }
.simple-part-groups { display: flex; flex-direction: column; gap: 16px; }
.simple-part-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-4);
  margin-bottom: 10px;
}
.simple-part-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.simple-part-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  letter-spacing: -0.005em;
}
.simple-part-chip.on { background: var(--cream); border: 1px solid var(--line); color: var(--ink); }
.simple-part-chip.off {
  background: var(--paper);
  border: 1px dashed var(--line-2);
  color: var(--ink-3);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.simple-part-chip.off:hover { border-color: var(--terra); color: var(--terra); }
.simple-part-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.simple-part-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--cream-3);
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* ---- What LOCALACT is handling ---- */
.simple-handled {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: var(--r);
  background: linear-gradient(135deg, var(--sage-soft) 0%, var(--paper) 60%);
  border: 1px solid var(--sage);
}
.simple-handled-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--paper);
  border: 1.5px solid var(--sage);
}
.simple-handled-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2f5d3a;
  margin-bottom: 4px;
}
.simple-handled-text { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; letter-spacing: -0.005em; }

@media (max-width: 1100px) {
  .simple-stat-grid { grid-template-columns: 1fr; }
  .simple-lenny-body { grid-template-columns: 1fr; gap: 18px; }
  .simple-read-divider { width: auto; height: 1px; }
  .simple-hru-top { grid-template-columns: 1fr; gap: 20px; justify-items: center; text-align: center; }
  .simple-hru-badge { margin-left: auto; margin-right: auto; }
  .simple-hru-nums { grid-template-columns: 1fr; gap: 16px; }
  .simple-owe-grid { grid-template-columns: 1fr; }
}
