/* ==========================================================================
   PredictGrow — Mockup v2 · Sidebar shell + professional color system
   ------------------------------------------------------------------------
   Loaded AFTER ../assets/{styles,landing,app}.css. This is a full interface
   reinvention, not a restyle: the two stacked horizontal nav rows from v1
   (journey step-tabs + the pill subnav of 8 tools) are replaced by a single
   deep-navy LEFT SIDEBAR that carries the brand, the journey, the 8 Sales
   Machine tools with per-tool status, the readiness score, and the user.
   The content area becomes a clean app canvas with a slim topbar.

   Color is BACK — but as a system, not decoration:
     · Navy sidebar (#141d33) does the heavy "colorful + serious" lifting.
     · ONE brand accent (#2563eb) for primary actions, active nav, links.
     · Semantic color (green/amber/red) ONLY on genuine status.
     · Full color in data viz (quadrant, meters, charts).
     · The rainbow of decorative card-stripe colors stays GONE; the only
       accented card is the AI coach (always blue = always "AI", meaningful).
   Same markup fields, same actions as v1 — a different product to look at.
   ========================================================================== */

/* === TOKENS ============================================================= */
:root {
  /* Crisp, flat */
  --pg-radius-sm: 5px;
  --pg-radius: 8px;
  --pg-radius-lg: 12px;
  --pg-radius-btn: 7px;
  --pg-shadow-sm: 0 1px 2px rgba(16,24,40,0.04);
  --pg-shadow: 0 1px 3px rgba(16,24,40,0.06);
  --pg-shadow-lg: 0 4px 12px rgba(16,24,40,0.08);

  /* Neutrals (cool) */
  --pg-ink: #101828;
  --pg-ink-soft: #475467;
  --pg-muted: #98a2b3;
  --pg-border: #eaecf0;
  --pg-bg-alt: #f9fafb;

  /* One brand accent — confident, professional blue */
  --pg-blue: #2563eb;
  --pg-blue-dark: #1749b8;
  --pg-blue-light: #eff4ff;

  /* Sidebar palette */
  --v2-nav-bg: #141d33;
  --v2-nav-bg-2: #1d2942;
  --v2-nav-ink: #97a3b6;
  --v2-nav-ink-hi: #f2f5f9;
  --v2-nav-border: rgba(255,255,255,0.07);
  --v2-accent: #4f7cff;
  --v2-accent-soft: rgba(79,124,255,0.16);

  /* Semantic (refined tints, color WITH meaning) */
  --pg-success: #067647;
  --pg-success-bg: #ecfdf3;
  --pg-success-bd: #abefc6;
  --pg-warn: #b54708;
  --pg-warn-bg: #fffaeb;
  --pg-warn-bd: #fedf89;
  /* Muted the vivid oranges from v1 (#f97316 / #c2410c) for a more
     professional read across the app. */
  --pg-orange: #c2680c;
  --pg-orange-dark: #b54708;
  --pg-danger: #b42318;
  --pg-danger-bg: #fef3f2;
  --pg-danger-bd: #fecdca;

  --v2-sidebar-w: 252px;
}

body { color: var(--pg-ink); background: var(--pg-bg-alt); }

/* === APP SHELL ========================================================= */
.v2-shell {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

.v2-sidebar {
  width: var(--v2-sidebar-w);
  flex-shrink: 0;
  background: var(--v2-nav-bg);
  color: var(--v2-nav-ink);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 18px 14px 14px;
}

.v2-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  padding: 4px 8px 18px;
}

.v2-sidebar__brand .brand-mark span { background: var(--v2-accent); }

.v2-nav-section {
  margin-top: 14px;
}

.v2-nav-section__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b6b85;
  padding: 0 10px 8px;
}

.v2-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--v2-nav-ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  position: relative;
}

.v2-nav-item .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #6c7c99;
}

.v2-nav-item:hover {
  background: var(--v2-nav-bg-2);
  color: var(--v2-nav-ink-hi);
}

.v2-nav-item:hover .icon { color: var(--v2-nav-ink-hi); }

.v2-nav-item.is-active {
  background: var(--v2-accent-soft);
  color: #fff;
  font-weight: 600;
}

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

.v2-nav-item.is-active::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--v2-accent);
}

.v2-nav-item.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.v2-nav-item__label { flex: 1; min-width: 0; }

/* per-tool status chip on the right of a nav item */
.v2-nav-status {
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.v2-nav-status.is-done { color: #34d399; }
.v2-nav-status.is-mid { color: #fbbf24; }
.v2-nav-status.is-low { color: #f87171; }
.v2-nav-status.is-none { color: #56657f; font-weight: 500; }

.v2-nav-status__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  vertical-align: middle;
}

/* sidebar spacer pushes footer down */
.v2-sidebar__spacer { flex: 1; }

/* readiness score block in sidebar footer */
.v2-side-score {
  background: var(--v2-nav-bg-2);
  border: 1px solid var(--v2-nav-border);
  border-radius: 10px;
  padding: 13px 14px;
  margin-top: 16px;
}

.v2-side-score__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.v2-side-score__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5b6b85;
}

.v2-side-score__val {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.v2-side-score__bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
  margin-bottom: 8px;
}

.v2-side-score__bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--v2-accent), #34d399);
}

.v2-side-score__trend {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #34d399;
}

.v2-side-score__trend .icon { width: 12px; height: 12px; }

/* sidebar user row */
.v2-side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px 4px;
  margin-top: 12px;
  border-top: 1px solid var(--v2-nav-border);
  color: var(--v2-nav-ink-hi);
}

.v2-side-user .avatar {
  width: 30px; height: 30px;
  background: var(--v2-accent);
  color: #fff;
  font-size: 12px;
}

.v2-side-user__meta { flex: 1; min-width: 0; line-height: 1.3; }
.v2-side-user__name { font-size: 13px; font-weight: 600; color: #fff; }
.v2-side-user__mail { font-size: 11px; color: var(--v2-nav-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-side-user .icon { width: 15px; height: 15px; color: var(--v2-nav-ink); }

/* Sidebar user row is now a hamburger dropdown (reuses app.js's .user-menu
   toggle: it flips .is-open on .user-dropdown). Button resets + reposition
   the popup to open UPWARD from the sidebar footer. */
.v2-side-user-wrap { width: 100%; position: relative; }
.v2-side-user {
  width: 100%;
  background: transparent;
  border: none;
  border-top: 1px solid var(--v2-nav-border);
  border-radius: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-weight: 500;
  color: var(--v2-nav-ink-hi);
}
.v2-side-user[aria-expanded="true"] { background: transparent; }
.v2-side-user__chevron { transition: transform 0.15s ease; }
.v2-side-user[aria-expanded="true"] .v2-side-user__chevron { transform: rotate(180deg); }
.v2-sidebar .user-dropdown {
  top: auto;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  width: auto;
  transform: none;
}

/* === CONTENT + TOPBAR ================================================== */
.v2-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.v2-topbar {
  height: 60px;
  background: #fff;
  border-bottom: 1px solid var(--pg-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.v2-topbar__crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--pg-muted);
}

.v2-topbar__crumb a { color: var(--pg-muted); }
.v2-topbar__crumb a:hover { color: var(--pg-ink); }
.v2-topbar__crumb .current { color: var(--pg-ink); font-weight: 600; }

.v2-topbar__actions { display: flex; align-items: center; gap: 8px; }

.v2-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--pg-bg-alt);
  border: 1px solid var(--pg-border);
  border-radius: 8px;
  padding: 8px 12px;
  width: 260px;
  max-width: 30vw;
  color: var(--pg-muted);
  font-size: 13px;
}

.v2-search .icon { width: 15px; height: 15px; }
.v2-search input {
  border: none; background: transparent; outline: none;
  font-family: inherit; font-size: 13px; color: var(--pg-ink); flex: 1; min-width: 0;
}

.v2-topbar .icon-btn { color: var(--pg-ink-soft); }

.v2-lang {
  font-size: 12px; font-weight: 600; color: var(--pg-ink-soft);
  display: flex; align-items: center; gap: 6px;
  padding: 7px 10px; border: 1px solid var(--pg-border); border-radius: 8px;
}
.v2-lang .icon { width: 14px; height: 14px; }

.v2-main {
  flex: 1;
  padding: 28px 28px 48px;
}

.v2-main__container { max-width: 1080px; }

.v2-page-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.v2-page-sub {
  font-size: 14px;
  color: var(--pg-ink-soft);
  margin: 0 0 24px;
}

/* === COLOR RETURNS TO CONTENT — but systematic ======================== */

/* Primary action = brand blue (color back, ONE action color) */
.btn { border-radius: var(--pg-radius-btn); font-weight: 600; }
.btn-primary { background: var(--pg-blue); color: #fff; box-shadow: none; }
.btn-primary:hover { background: var(--pg-blue-dark); box-shadow: none; }
.btn-secondary { border: 1px solid var(--pg-border); font-weight: 600; color: var(--pg-ink); }
.btn-secondary:hover { border-color: var(--pg-blue); color: var(--pg-blue-dark); }

/* Cards: flat, hairline — NO rainbow stripes. The rainbow stays gone. */
.card { box-shadow: none; border: 1px solid var(--pg-border); }

/* Badges/chips: semantic color BACK, but refined (tint + text + border) */
.badge { border-radius: 6px; font-weight: 600; padding: 4px 10px; border: 1px solid transparent; }
.badge-success { background: var(--pg-success-bg); color: var(--pg-success); border-color: var(--pg-success-bd); }
.badge-orange, .badge-warn { background: var(--pg-warn-bg); color: var(--pg-warn); border-color: var(--pg-warn-bd); }
.badge-danger { background: var(--pg-danger-bg); color: var(--pg-danger); border-color: var(--pg-danger-bd); }
.badge-muted { background: var(--pg-bg-alt); color: var(--pg-ink-soft); border-color: var(--pg-border); }

.chip { border-radius: 6px; font-weight: 600; border: 1px solid var(--pg-border); }
.chip--purple { background: #f4f3ff; color: #5925dc; border-color: #d9d6fe; }
.chip--blue { background: var(--pg-blue-light); color: var(--pg-blue-dark); border-color: #c7d7fe; }
.chip--green { background: var(--pg-success-bg); color: var(--pg-success); border-color: var(--pg-success-bd); }
.chip--muted { background: var(--pg-bg-alt); color: var(--pg-ink-soft); border-color: var(--pg-border); }

/* Meters/progress keep color (data) */
.meter > span { background: var(--pg-blue); }
.priority-card__deltas strong { color: var(--pg-success); }

/* === AI COACH BAR — one consistent accent (blue = AI), not rainbow ==== */
.v2-coach-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(90deg, var(--pg-blue-light), #fff 60%);
  border: 1px solid #d5e2ff;
  border-left: 3px solid var(--pg-blue);
  border-radius: var(--pg-radius);
  padding: 13px 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.v2-coach-bar__icon { width: 18px; height: 18px; color: var(--pg-blue); flex-shrink: 0; }
.v2-coach-bar__text { flex: 1; min-width: 220px; font-size: 13px; color: var(--pg-ink-soft); line-height: 1.5; }
.v2-coach-bar__text strong { color: var(--pg-ink); font-weight: 600; }
.v2-coach-bar__actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; flex-wrap: wrap; }
.v2-coach-bar__secondary { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--pg-blue-dark); white-space: nowrap; }
.v2-coach-bar__secondary:hover { color: var(--pg-ink); }
.v2-coach-bar__secondary .icon { width: 13px; height: 13px; }

.v2-inline-action { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--pg-blue-dark); }
.v2-inline-action .icon { width: 13px; height: 13px; }

/* === SECTION HEADERS (content) ======================================== */
.v2-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 32px 0 14px;
}

.v2-section-head__title {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.v2-section-head__title .icon { width: 16px; height: 16px; color: var(--pg-blue); }
.v2-section-head__meta { font-size: 12px; color: var(--pg-muted); }

/* keep the old exec-section eyebrow readable if reused */
.exec-section__title { font-weight: 700; color: var(--pg-ink); letter-spacing: 0; }
.exec-section__title .icon { color: var(--pg-blue); }

/* === HUB: cascade flow (7 tools as a connected pipeline) ============== */
.v2-cascade {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-lg);
  overflow: hidden;
  background: #fff;
  margin-bottom: 8px;
}

.v2-stage {
  padding: 16px 12px 14px;
  border-right: 1px solid var(--pg-border);
  position: relative;
  text-align: center;
  transition: background 0.15s ease;
}

.v2-stage:last-child { border-right: none; }
.v2-stage:hover { background: var(--pg-bg-alt); }

.v2-stage__num {
  font-size: 10px;
  font-weight: 700;
  color: var(--pg-muted);
  letter-spacing: 0.04em;
}

.v2-stage__icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  margin: 8px auto 10px;
  background: var(--pg-blue-light);
  color: var(--pg-blue);
}

.v2-stage__icon .icon { width: 17px; height: 17px; }
.v2-stage.is-done .v2-stage__icon { background: var(--pg-success-bg); color: var(--pg-success); }
.v2-stage.is-empty .v2-stage__icon { background: var(--pg-bg-alt); color: var(--pg-muted); }

.v2-stage__name { font-size: 12px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; min-height: 30px; }

.v2-stage__bar { height: 4px; border-radius: 999px; background: var(--pg-border); overflow: hidden; }
.v2-stage__bar > span { display: block; height: 100%; border-radius: 999px; }
.v2-stage__pct { font-size: 11px; font-weight: 700; margin-top: 6px; display: block; }
.v2-stage.is-done .v2-stage__pct { color: var(--pg-success); }
.v2-stage.is-mid .v2-stage__pct { color: var(--pg-warn); }
.v2-stage.is-empty .v2-stage__pct { color: var(--pg-muted); }

.v2-cascade-caption {
  font-size: 12px; color: var(--pg-muted); margin: 10px 0 0;
  display: flex; align-items: center; gap: 6px;
}
.v2-cascade-caption .icon { width: 13px; height: 13px; }

/* === HUB: KPI stat row ================================================ */
.v2-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 8px;
}

.v2-kpi {
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-lg);
  padding: 16px 18px;
  background: #fff;
}

.v2-kpi__label { font-size: 11px; font-weight: 600; color: var(--pg-muted); letter-spacing: 0.02em; margin-bottom: 8px; text-transform: uppercase; }
.v2-kpi__val { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.v2-kpi__val.is-warn { color: var(--pg-warn); }
.v2-kpi__val.is-danger { color: var(--pg-danger); }
.v2-kpi__val.is-accent { color: var(--pg-blue); }
.v2-kpi__note { font-size: 11px; color: var(--pg-muted); margin-top: 3px; }

/* Projected-performance disclosure (kept) */
.v2-projection { border: 1px solid var(--pg-border); border-radius: var(--pg-radius-lg); padding: 0 22px 4px; margin: 24px 0 8px; background: #fff; }
.v2-projection summary { cursor: pointer; list-style: none; padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.v2-projection summary::-webkit-details-marker { display: none; }
.v2-projection summary::marker { content: ""; }
.v2-projection__title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.v2-projection__title .icon { width: 17px; height: 17px; color: var(--pg-blue); }
.v2-projection__hint { font-size: 12px; font-weight: 500; color: var(--pg-muted); }
.v2-projection__chevron { width: 16px; height: 16px; color: var(--pg-muted); transition: transform 0.15s ease; flex-shrink: 0; }
.v2-projection[open] .v2-projection__chevron { transform: rotate(180deg); }
.v2-projection__body { padding: 4px 0 20px; border-top: 1px solid var(--pg-border); }
.v2-projection:not([open]) .v2-projection__body { display: none; }

/* === RESPONSIVE ======================================================= */
@media (max-width: 960px) {
  .v2-shell { flex-direction: column; }
  .v2-sidebar {
    width: 100%; height: auto; position: static;
    flex-direction: row; align-items: center; gap: 6px;
    overflow-x: auto; padding: 10px 14px;
  }
  .v2-nav-section, .v2-sidebar__spacer, .v2-side-score, .v2-side-user, .v2-side-user-wrap { display: none; }
  .v2-sidebar__brand { padding: 4px 8px; }
  .v2-cascade { grid-template-columns: 1fr 1fr; }
  .v2-kpi-row { grid-template-columns: 1fr 1fr; }
}

/* Quadrant scatter (Segments matrix, Learn lesson): on narrow screens the
   bubble labels sit at 88–92% left and spilled past the box. Center each
   label under its dot and let it wrap, so nothing overflows. */
@media (max-width: 760px) {
  .quadrant-dot span {
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    white-space: normal;
    max-width: 76px;
    line-height: 1.2;
  }
}

@media (max-width: 640px) {
  .v2-main { padding: 20px 16px 40px; }
  .v2-search { display: none; }

  /* Topbar was overflowing at mobile — collapse the breadcrumb to just the
     current page, hide the "Learn" link (it lives in the sidebar hamburger
     menu too), and tighten padding. */
  .v2-topbar { padding: 0 14px; gap: 8px; }
  .v2-topbar__crumb a,
  .v2-topbar__crumb > span:not(.current) { display: none; }
  .v2-topbar a.v2-lang { display: none; }

  /* Coach bar: stack the primary button and "Previous suggestions"
     vertically so the secondary link is never cut off. */
  .v2-coach-bar { flex-direction: column; align-items: flex-start; }
  .v2-coach-bar__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .v2-coach-bar__actions .btn { width: 100%; justify-content: center; }
  .v2-coach-bar__secondary { justify-content: center; }

  .v2-kpi-row { grid-template-columns: 1fr; }

  /* Public footer (About / Landing): when it stacks on mobile it was left-
     aligned; center the journey row, the columns, and the bottom bar. */
  .site-footer .footer-journey,
  .site-footer .footer-columns,
  .site-footer .footer-bottom { text-align: center; }
  .site-footer .footer-journey { align-items: center; }
  .site-footer .footer-columns { justify-items: center; }
  .site-footer .footer-bottom { align-items: center; gap: 8px; }
}

/* ==========================================================================
   Execute page — "Are you on track?" goal scorecard + de-noised playbook
   The clearest possible read of what's achieved (✓), at risk (⚠) or behind
   (✗) — the headline of the Execute page.
   ========================================================================== */
.v2-scorecard {
  border: 1px solid var(--pg-border); border-radius: var(--pg-radius-lg);
  background: #fff; padding: 18px 20px; margin-bottom: 24px;
}
.v2-scorecard__head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 10px; margin-bottom: 16px;
}
.v2-scorecard__head strong { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.v2-scorecard__head strong .icon { width: 18px; height: 18px; color: var(--pg-blue); }
.v2-scorecard__summary { font-size: 12px; font-weight: 600; color: var(--pg-muted); }
.v2-scorecard__summary b { font-weight: 800; }
.v2-scorecard__summary .ok { color: var(--pg-success); }
.v2-scorecard__summary .risk { color: var(--pg-warn); }
.v2-scorecard__summary .bad { color: var(--pg-danger); }
.v2-scorecard__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px;
}
.v2-goal {
  border: 1px solid var(--pg-border); border-radius: var(--pg-radius);
  border-left-width: 4px; padding: 14px 15px;
}
.v2-goal.is-good   { border-left-color: var(--pg-success); }
.v2-goal.is-risk   { border-left-color: var(--pg-warn); }
.v2-goal.is-behind { border-left-color: var(--pg-danger); }
.v2-goal__status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; margin-bottom: 9px;
}
.is-good .v2-goal__status   { background: var(--pg-success-bg); color: var(--pg-success); }
.is-risk .v2-goal__status   { background: var(--pg-warn-bg); color: var(--pg-warn); }
.is-behind .v2-goal__status { background: var(--pg-danger-bg); color: var(--pg-danger); }
.v2-goal__label { font-size: 13px; font-weight: 700; color: var(--pg-ink); }
.v2-goal__value { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; margin: 2px 0 5px; }
.v2-goal__value span { font-size: 12px; font-weight: 500; color: var(--pg-muted); letter-spacing: 0; }
.v2-goal__hint { font-size: 12px; color: var(--pg-ink-soft); line-height: 1.45; }

/* De-noise the AI Coach Playbook — 4 different colored cards became one
   consistent accent (was a mini-rainbow). */
.exec-playbook .playbook-card,
.exec-playbook .playbook-card--risk,
.exec-playbook .playbook-card--action,
.exec-playbook .playbook-card--growth,
.exec-playbook .playbook-card--accounts {
  background: #fff !important; border: 1px solid var(--pg-border) !important;
  border-left: 3px solid var(--pg-blue) !important;
}
.exec-playbook .playbook-card__head { color: var(--pg-ink) !important; }
.exec-playbook .playbook-card__head .icon { color: var(--pg-blue) !important; }

/* Neutralize the scattered decorative section-title icons (purple/orange/
   green) on the Execute page so color only appears where it means something
   (status, data). */
.exec-section .chart-card__title .icon { color: var(--pg-ink-soft) !important; }

/* Progress Tracker professional polish: the row icons (were emoji) render as
   small muted monochrome glyphs; the AI-Coach-Adherence row was purple-tinted
   — neutralize it. */
.indicator-row__icon .icon,
.pace-row__icon .icon { width: 17px; height: 17px; color: var(--pg-muted); }
.collapsible-row { background: var(--pg-bg-alt) !important; border-color: var(--pg-border) !important; color: var(--pg-ink) !important; }
.collapsible-row .sub { color: var(--pg-muted) !important; }

/* ==========================================================================
   AI Coach — persistent, interactive helper (built by v2-coach.js)
   A floating "coach" that follows you on every page. Click the ✨-marked
   parts of the UI (or the suggestion chips) and it explains, in plain
   language, what each concept does — an onboarding guide for people who
   don't know RevOps vocabulary (segments, targets, pipeline, etc.).
   ========================================================================== */
.v2-coach-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--pg-ink); color: #fff;
  border: none; border-radius: 999px;
  padding: 12px 18px 12px 15px; cursor: pointer;
  box-shadow: 0 8px 24px rgba(16,24,40,0.28);
  font-family: inherit; font-size: 14px; font-weight: 600;
  transition: transform 0.12s ease;
}
.v2-coach-fab:hover { transform: translateY(-1px); }
.v2-coach-fab.is-hidden { display: none; }
.v2-coach-fab__icon { width: 20px; height: 20px; color: #ffd35c; flex-shrink: 0; }
.v2-coach-fab__badge {
  position: absolute; top: -4px; right: -4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--v2-accent, #4f7cff); color: #fff;
  font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--pg-ink);
}

.v2-coach-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 61;
  width: 352px; max-width: calc(100vw - 32px);
  height: 512px; max-height: calc(100vh - 44px);
  background: #fff; border: 1px solid var(--pg-border);
  border-radius: 16px; box-shadow: 0 16px 48px rgba(16,24,40,0.28);
  display: none; flex-direction: column; overflow: hidden;
}
.v2-coach-panel.is-open { display: flex; }

.v2-coach-panel__header {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 16px; background: var(--pg-ink); color: #fff; flex-shrink: 0;
}
.v2-coach-panel__header .v2-coach-panel__icon { width: 22px; height: 22px; color: #ffd35c; flex-shrink: 0; }
.v2-coach-panel__title { flex: 1; min-width: 0; line-height: 1.25; }
.v2-coach-panel__title strong { display: block; font-size: 14px; font-weight: 700; }
.v2-coach-panel__title span { font-size: 11px; color: rgba(255,255,255,0.68); }
.v2-coach-close {
  background: transparent; border: none; color: rgba(255,255,255,0.75);
  cursor: pointer; width: 28px; height: 28px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
}
.v2-coach-close:hover { background: rgba(255,255,255,0.12); color: #fff; }
.v2-coach-close .icon { width: 18px; height: 18px; }

.v2-coach-body {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 12px; background: var(--pg-bg-alt);
}
.v2-coach-msg {
  align-self: flex-start; background: #fff; border: 1px solid var(--pg-border);
  border-radius: 12px 12px 12px 4px; padding: 12px 14px;
  font-size: 13px; line-height: 1.55; color: var(--pg-ink-soft); max-width: 94%;
  animation: v2CoachIn 0.22s ease;
}
@keyframes v2CoachIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.v2-coach-msg__eyebrow {
  font-size: 10px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--pg-blue); margin-bottom: 5px; display: flex; align-items: center; gap: 5px;
}
.v2-coach-msg__eyebrow .icon { width: 12px; height: 12px; }
.v2-coach-msg strong.v2-coach-msg__title { display: block; color: var(--pg-ink); font-size: 13.5px; margin-bottom: 3px; }

.v2-coach-chips {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px;
  border-top: 1px solid var(--pg-border); background: #fff; flex-shrink: 0;
  max-height: 130px; overflow-y: auto;
}
.v2-coach-chip {
  border: 1px solid var(--pg-border); border-radius: 999px;
  padding: 7px 12px; font-size: 12px; font-weight: 600; color: var(--pg-blue-dark);
  background: #fff; cursor: pointer; font-family: inherit; text-align: left;
}
.v2-coach-chip:hover { border-color: var(--pg-blue); background: var(--pg-blue-light); }

/* Affordance: elements the coach can explain */
.has-coach { cursor: help; }
.has-coach:hover { outline: 2px dashed var(--v2-accent, #4f7cff); outline-offset: 3px; border-radius: 5px; }
.v2-coach-spark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; margin-left: 5px; border-radius: 50%;
  background: var(--pg-blue-light); color: var(--pg-blue-dark);
  font-size: 9px; font-weight: 800; vertical-align: middle; cursor: help; flex-shrink: 0;
}
.v2-coach-highlight { animation: v2CoachPulse 1.3s ease; border-radius: 6px; }
@keyframes v2CoachPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79,124,255,0); }
  25% { box-shadow: 0 0 0 5px rgba(79,124,255,0.35); }
}

@media (max-width: 640px) {
  .v2-coach-panel { right: 12px; bottom: 12px; height: calc(100vh - 90px); }
  .v2-coach-fab { right: 14px; bottom: 14px; }
  .v2-coach-fab__label { display: none; }
}
