/* Dashboard V2 — scoped under .dashv2 to avoid bleeding into the main app */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');

.dashv2 {
  --teal: #2d6e65;
  --teal-light: #eaf2f0;
  --warm: #8b6144;
  --warm-light: #f5ede6;
  --sage: #5a6e55;
  --sage-light: #edf2eb;
  --slate: #4a5a72;
  --slate-light: #eaeff6;
  --rose: #8b4a54;
  --rose-light: #f5eaec;
  --bg: #f9f7f4;
  --surface: #ffffff;
  --text-primary: #1c1a17;
  --text-secondary: #5a5549;
  --text-muted: #8e8880;
  --border: #e2ddd6;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1), 0 12px 32px rgba(0,0,0,0.06);
  --shadow-lg: 0 24px 80px rgba(0,0,0,0.18);

  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg); color: var(--text-primary);
  font-family: var(--sans); font-weight: 300; line-height: 1.6;
  display: flex; flex-direction: column; overflow: hidden;
}
.dashv2 *, .dashv2 *::before, .dashv2 *::after { box-sizing: border-box; }

.dashv2-loading { padding: 80px; text-align: center; color: #888; font-family: -apple-system,sans-serif; }

/* Top bar */
.dashv2-top {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 28px; background: #fff; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.dashv2-brand { font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--text-primary); flex: 1; letter-spacing: 0.01em; }
.dashv2-brand small { font-family: var(--sans); font-size: 11px; font-weight: 400; color: var(--text-muted); margin-left: 12px; text-transform: uppercase; letter-spacing: 0.12em; }
.dashv2-time { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.dashv2-btn {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  padding: 7px 14px; border-radius: 6px; border: 1px solid var(--border);
  background: transparent; color: var(--text-secondary); cursor: pointer; transition: all 0.18s;
}
.dashv2-btn:hover { background: var(--teal-light); color: var(--teal); border-color: var(--teal); }

/* Tabs */
.dashv2-nav {
  display: flex; gap: 0; padding: 0 28px; background: #fff;
  border-bottom: 1px solid var(--border); flex-shrink: 0; overflow-x: auto;
}
.dashv2-tab {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  padding: 14px 20px; background: transparent; border: none;
  color: var(--text-muted); cursor: pointer; letter-spacing: 0.05em; text-transform: uppercase;
  border-bottom: 2px solid transparent; transition: all 0.2s; position: relative; white-space: nowrap;
}
.dashv2-tab:hover { color: var(--text-primary); }
.dashv2-tab.active { color: var(--teal); border-bottom-color: var(--teal); }
.dashv2-tab .accent-dot { display: inline-block; width: 6px; height: 6px; background: var(--teal); border-radius: 50%; margin-left: 6px; vertical-align: 2px; }

/* Body scroll */
.dashv2-body { flex: 1; overflow-y: auto; padding: 28px 28px 48px; }
.dashv2-view { display: none; max-width: 1480px; margin: 0 auto; }
.dashv2-view.active { display: block; }

/* Hero */
.dashv2-hero { margin-bottom: 28px; }
.dashv2-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; font-family: var(--sans); }
.dashv2-hero h1 { font-family: var(--serif); font-size: 44px; font-weight: 400; line-height: 1.05; margin: 0 0 14px; color: var(--text-primary); letter-spacing: -0.01em; }
.dashv2-hero h1 em { font-style: italic; font-weight: 400; color: var(--text-primary); }
.dashv2-hero p { font-size: 14px; color: var(--text-secondary); max-width: 820px; margin: 0; line-height: 1.65; }

.dashv2-keymsg {
  background: var(--teal-light); border-left: 3px solid var(--teal);
  padding: 16px 20px; margin: 0 0 28px; border-radius: 0 6px 6px 0;
}
.dashv2-keymsg-label { font-size: 10px; font-weight: 600; color: var(--teal); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 6px; }
.dashv2-keymsg-text { font-family: var(--serif); font-size: 17px; font-weight: 400; color: var(--text-primary); font-style: italic; line-height: 1.4; }

/* KPI strip — top-accent style matching /dashboard */
.dashv2-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 28px; }
.dashv2-kpi {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 22px 24px; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 6px;
}
.dashv2-kpi::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--teal); }
.dashv2-kpi.warm::after { background: var(--warm); }
.dashv2-kpi.sage::after { background: var(--sage); }
.dashv2-kpi.slate::after { background: var(--slate); }
.dashv2-kpi.rose::after { background: var(--rose); }
.dashv2-kpi-value { font-family: var(--serif); font-size: 44px; font-weight: 300; color: var(--text-primary); line-height: 1; }
.dashv2-kpi-label { font-size: 12px; font-weight: 500; color: var(--text-secondary); }
.dashv2-kpi-sub { font-size: 11px; color: var(--text-muted); line-height: 1.5; min-height: 16px; }
.dashv2-kpi-sub .metric-pill { display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: var(--teal-light); color: var(--teal); margin-right: 4px; }
.dashv2-kpi-sub .metric-pill.warm { background: var(--warm-light); color: var(--warm); }
.dashv2-kpi-sub .metric-pill.sage { background: var(--sage-light); color: var(--sage); }
.dashv2-kpi.clickable { cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.dashv2-kpi.clickable:hover { transform: translateY(-1px); box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.08)); border-color: var(--teal); }
.dashv2-kpi.clickable:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.dashv2-kpi-chev { display: inline-block; opacity: 0.45; margin-left: 4px; font-size: 14px; transition: transform 0.15s ease, opacity 0.15s ease; }
.dashv2-kpi.clickable:hover .dashv2-kpi-chev { opacity: 1; transform: translateX(2px); color: var(--teal); }

/* Cards */
.dashv2-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.dashv2-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 28px; }
.dashv2-row3 { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 18px; margin-bottom: 28px; align-items: stretch; }
.dashv2-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 24px 26px; box-shadow: var(--shadow-sm);
  position: relative;
}
.dashv2-card-title {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.14em; margin: 0 0 16px;
}
.dashv2-card-sub { font-size: 12px; color: var(--text-muted); line-height: 1.6; }
.dashv2-card h3 {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 16px;
}
.dashv2-card h3 .h3-count { color: var(--teal); margin-left: 8px; font-weight: 700; }

/* Strategic Impact card */
.dashv2-impact { background: linear-gradient(135deg, #f4f1ec 0%, #edf2f0 100%) !important; border-color: #d8e8e4 !important; overflow: hidden; }
.dashv2-impact-corner { position: absolute; top: 0; right: 0; width: 100px; height: 100px; border-radius: 0 0 0 100px; background: rgba(45,110,101,0.04); pointer-events: none; }
.dashv2-impact-block { margin-bottom: 14px; }
.dashv2-impact-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.dashv2-impact-num { font-family: var(--serif); font-size: 32px; font-weight: 300; color: var(--text-primary); line-height: 1; }
.dashv2-impact-num.small { font-size: 26px; }
.dashv2-impact-num-secondary { font-family: var(--serif); font-size: 16px; color: var(--warm); }
.dashv2-impact-pill { font-size: 10px; font-weight: 500; color: var(--teal); background: var(--teal-light); padding: 3px 8px; border-radius: 10px; white-space: nowrap; }
.dashv2-impact-label { font-size: 11px; font-weight: 500; color: var(--text-secondary); margin-bottom: 4px; }
.dashv2-impact-desc { font-size: 10px; color: var(--text-muted); line-height: 1.6; }
.dashv2-impact-divider { border-top: 1px solid var(--border); margin: 14px 0; }
.dashv2-impact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dashv2-impact-progress { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-top: 8px; }
.dashv2-impact-progress-fill { height: 100%; border-radius: 2px; transition: width 0.5s; }
.dashv2-impact-hint { font-size: 9px; color: var(--teal); font-style: italic; text-align: right; margin-top: 6px; }
.dashv2-tier-bars { display: flex; gap: 6px; align-items: flex-end; height: 76px; padding-top: 6px; border-top: 1px solid var(--border); margin-top: 10px; }
.dashv2-tier-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.dashv2-tier-bar-wrap:hover .dashv2-tier-bar { background: var(--teal-dark, #1f4a44); }
.dashv2-tier-bar { width: 100%; background: var(--teal); border-radius: 3px 3px 0 0; transition: background 0.18s; min-height: 8px; }
.dashv2-tier-bar-count { font-family: var(--serif); font-size: 14px; color: var(--text-primary); font-weight: 500; line-height: 1; }
.dashv2-tier-bar-label { font-size: 9px; color: var(--text-muted); text-align: center; font-weight: 500; }
.dashv2-pipeline-bars { display: flex; flex-direction: column; gap: 6px; }
.dashv2-pipe-row { display: grid; grid-template-columns: 110px 1fr 36px; gap: 10px; align-items: center; padding: 4px 0; cursor: pointer; border-radius: 4px; }
.dashv2-pipe-row:hover { background: rgba(255,255,255,0.5); }
.dashv2-pipe-label { font-size: 11px; color: var(--text-secondary); }
.dashv2-pipe-track { height: 6px; background: rgba(0,0,0,0.05); border-radius: 3px; overflow: hidden; }
.dashv2-pipe-fill { height: 100%; background: var(--teal); border-radius: 3px; transition: width 0.5s; }
.dashv2-pipe-val { font-family: var(--serif); font-size: 14px; color: var(--text-primary); font-weight: 500; text-align: right; }

/* View headers (alignment tabs) */
.dashv2-view-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.dashv2-view-head.no-stat { padding-bottom: 14px; }
.dashv2-view-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 6px; }
.dashv2-view-eyebrow.teal { color: var(--teal); }
.dashv2-view-eyebrow.warm { color: var(--warm); }
.dashv2-view-eyebrow.slate { color: var(--slate); }
.dashv2-view-title { font-family: var(--serif); font-size: 26px; font-weight: 400; color: var(--text-primary); line-height: 1.1; }
.dashv2-view-sub { font-size: 12px; color: var(--text-muted); margin-top: 6px; max-width: 620px; line-height: 1.65; }
.dashv2-view-stat { text-align: right; flex-shrink: 0; }
.dashv2-view-stat-num { font-family: var(--serif); font-size: 42px; font-weight: 300; color: var(--text-primary); line-height: 1; }
.dashv2-view-stat-label { font-size: 11px; color: var(--text-muted); font-weight: 500; line-height: 1.4; margin-top: 4px; }

/* Axis explainer */
.dashv2-axis-explainer { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.dashv2-axis-card { background: var(--bg-cream-2, #f3efe8); border-radius: 6px; padding: 10px 14px; border-left: 3px solid var(--teal); }
.dashv2-axis-card.warm { border-left-color: var(--warm); }
.dashv2-axis-card.slate { border-left-color: var(--slate); }
.dashv2-axis-label { font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; color: var(--text-secondary); }
.dashv2-axis-card.warm .dashv2-axis-label { color: var(--warm); }
.dashv2-axis-card.slate .dashv2-axis-label { color: var(--slate); }
.dashv2-axis-desc { font-size: 10px; color: var(--text-muted); line-height: 1.55; }

.dashv2-matrix-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.dashv2-legend-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-muted); }
.dashv2-legend-item .dot { width: 10px; height: 10px; border-radius: 50%; }
.dashv2-legend-spacer { margin-left: auto; font-size: 10px; color: var(--text-muted); font-style: italic; }

/* Quadrant analysis */
.dashv2-quadrants { margin-top: 22px; padding: 22px 24px; background: linear-gradient(135deg, #edf4f2, #f4f2ee); border-radius: 10px; border: 1px solid var(--border); }
.dashv2-quadrants-label { font-size: 9px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.dashv2-quadrants-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dashv2-quadrant { padding: 14px 16px; background: #fff; border-radius: 7px; border-left: 3px solid var(--teal); cursor: pointer; transition: all 0.18s; }
.dashv2-quadrant:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.dashv2-quadrant.slate { border-left-color: var(--slate); }
.dashv2-quadrant.warm { border-left-color: var(--warm); }
.dashv2-quadrant.mute { border-left-color: #c8c3bc; }
.dashv2-quadrant-title { font-size: 11px; font-weight: 700; color: var(--teal); margin-bottom: 6px; }
.dashv2-quadrant.slate .dashv2-quadrant-title { color: var(--slate); }
.dashv2-quadrant.warm .dashv2-quadrant-title { color: var(--warm); }
.dashv2-quadrant.mute .dashv2-quadrant-title { color: var(--text-muted); }
.dashv2-quadrant-text { font-size: 10px; color: var(--text-secondary); line-height: 1.65; }

/* Pipeline × Engagement flow */
.dashv2-flow { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.dashv2-flow-row { display: grid; grid-template-columns: 110px 1fr 36px; gap: 12px; align-items: center; }
.dashv2-flow-label { font-size: 12px; color: var(--text-secondary); font-weight: 500; }
.dashv2-flow-bar { display: flex; height: 28px; background: var(--bg-cream); border-radius: 4px; overflow: hidden; min-width: 8px; }
.dashv2-flow-seg { display: flex; align-items: center; justify-content: center; min-width: 4px; cursor: pointer; transition: filter 0.15s; color: #fff; font-size: 10px; font-weight: 600; }
.dashv2-flow-seg:hover { filter: brightness(0.9); }
.dashv2-flow-seg span { white-space: nowrap; }
.dashv2-flow-total { font-family: var(--serif); font-size: 16px; color: var(--text-primary); font-weight: 500; text-align: right; }

/* AI Maturity tab */
.dashv2-ai-counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.dashv2-ai-counter { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 22px 24px; position: relative; overflow: hidden; cursor: pointer; transition: all 0.18s; }
.dashv2-ai-counter:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.dashv2-ai-counter::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--accent, var(--teal)); }
.dashv2-ai-counter .num { font-family: var(--serif); font-size: 42px; font-weight: 300; line-height: 1; color: var(--text-primary); margin-bottom: 4px; }
.dashv2-ai-counter .lbl { font-size: 12px; font-weight: 500; color: var(--text-secondary); }
.dashv2-ai-counter .sub { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

.dashv2-spectrum { padding: 20px 24px !important; }
.dashv2-spectrum-label { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.dashv2-spectrum-bar { height: 14px; border-radius: 7px; overflow: hidden; margin-bottom: 12px; gap: 0; }
.dashv2-spectrum-bar > div { display: flex; align-items: center; justify-content: center; }
.dashv2-spectrum-bar > div:first-child { margin-left: 0 !important; }
.dashv2-spectrum-legend { display: flex; gap: 22px; font-size: 10px; color: var(--text-muted); flex-wrap: wrap; }
.dashv2-spectrum-legend > div { display: flex; align-items: center; gap: 6px; }
.dashv2-spectrum-legend .sw { width: 10px; height: 10px; border-radius: 2px; }

.dashv2-ai-tiers { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; margin-top: 6px; margin-bottom: 18px; }
.dashv2-ai-tier { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 26px 26px 22px; cursor: pointer; transition: all 0.2s; position: relative; overflow: hidden; }
.dashv2-ai-tier:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.dashv2-ai-tier::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent, var(--teal)); }
.dashv2-ai-tier-num { font-family: var(--serif); font-size: 48px; font-weight: 300; line-height: 1; color: var(--accent, var(--teal)); margin-bottom: 4px; }
.dashv2-ai-tier-title { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--text-primary); margin-bottom: 4px; letter-spacing: -0.005em; }
.dashv2-ai-tier-pct { font-size: 11px; color: var(--text-muted); font-weight: 500; margin-bottom: 12px; letter-spacing: 0.04em; }
.dashv2-ai-tier-blurb { font-size: 12px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 14px; }
.dashv2-ai-tier-cta { font-size: 10px; color: var(--accent, var(--teal)); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

.dashv2-narrative { padding: 22px 26px !important; }
.dashv2-narrative-label { font-size: 9px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.dashv2-narrative-text { font-size: 13px; color: var(--text-secondary); line-height: 1.75; max-width: 860px; }
.dashv2-narrative-text strong { color: var(--text-primary); font-weight: 600; }

/* Geographic Footprint map */
.dashv2-map-wrap { position: relative; }
.dashv2-map { width: 100%; height: 360px; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-cream-2, #f3efe8); }
.dashv2-map-stats { font-size: 11px; color: var(--text-muted); margin-top: 10px; text-align: right; font-style: italic; }
.dashv2-map-expand,
.dashv2-map-collapse {
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  width: 30px; height: 30px; cursor: pointer; color: var(--text-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s; flex-shrink: 0; padding: 0;
}
.dashv2-map-expand:hover,
.dashv2-map-collapse:hover { background: var(--bg-cream-2, #f3efe8); border-color: var(--teal); color: var(--teal); }
.dashv2-map-expand svg,
.dashv2-map-collapse svg { width: 16px; height: 16px; }
.dashv2-map-collapse {
  position: absolute; top: 14px; right: 14px; z-index: 1100;
  display: none; box-shadow: var(--shadow-md);
}
.dashv2-map-wrap.expanded {
  position: fixed; inset: 0; z-index: 1500;
  background: var(--surface); padding: 14px; border-radius: 0;
  display: flex; flex-direction: column;
}
.dashv2-map-wrap.expanded .dashv2-map {
  flex: 1; height: auto !important; border-radius: 8px;
}
.dashv2-map-wrap.expanded .dashv2-map-collapse { display: inline-flex; }
body.dashv2-map-locked { overflow: hidden; }

.dashv2 .leaflet-container { background: #f3efe8; font-family: var(--sans); }
.dashv2 .leaflet-popup-content-wrapper { border-radius: 6px; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.dashv2 .leaflet-popup-content { margin: 12px 14px; }
.dashv2 .leaflet-popup-tip { background: var(--surface); }
.dashv2 .leaflet-control-zoom a { background: var(--surface); color: var(--text-primary); border-color: var(--border); }
.dashv2 .leaflet-control-zoom a:hover { background: var(--bg-cream-2, #f3efe8); }

.dashv2-section { margin-bottom: 36px; }
.dashv2-section-title {
  font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--text-primary); margin: 0 0 16px; letter-spacing: -0.005em;
}
.dashv2-section-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 18px; }

/* Bar rows */
.dashv2-bar-row { display: grid; grid-template-columns: 180px 1fr 56px; align-items: center; gap: 12px; padding: 8px 0; cursor: pointer; transition: background 0.15s; border-radius: 4px; }
.dashv2-bar-row:hover { background: var(--bg); }
.dashv2-bar-label { font-size: 12px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dashv2-bar-track { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; position: relative; }
.dashv2-bar-fill { height: 100%; background: var(--teal); border-radius: 4px; transition: width 0.5s cubic-bezier(.2,.8,.2,1); }
.dashv2-bar-fill.warm { background: var(--warm); }
.dashv2-bar-fill.sage { background: var(--sage); }
.dashv2-bar-fill.slate { background: var(--slate); }
.dashv2-bar-fill.rose { background: var(--rose); }
.dashv2-bar-val { font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--text-primary); text-align: right; }
.dashv2-bar-arrow { color: var(--text-muted); font-size: 14px; opacity: 0; transition: opacity 0.15s; }
.dashv2-bar-row:hover .dashv2-bar-arrow { opacity: 1; }

/* Donut (legacy) */
.dashv2-donut-wrap { display: flex; align-items: center; gap: 18px; }
.dashv2-donut-svg { flex-shrink: 0; max-width: 100%; }
.dashv2-donut-legend { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.dashv2-donut-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; cursor: pointer; padding: 4px 6px; border-radius: 4px; }
.dashv2-donut-item:hover { background: var(--bg); }
.dashv2-donut-swatch { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.dashv2-donut-name { color: var(--text-secondary); flex: 1; text-transform: capitalize; }
.dashv2-donut-num { font-family: var(--serif); font-size: 16px; color: var(--text-primary); font-weight: 500; }

/* Engagement card (redesigned) */
.dashv2-engagement { display: grid; grid-template-columns: 230px 1fr; gap: 26px; align-items: center; }
.dashv2-engagement-donut { display: flex; align-items: center; justify-content: center; }
.dashv2-engagement-donut .dashv2-donut-svg { width: 220px; height: 220px; }
.dashv2-donut-seg { transition: opacity 0.2s; cursor: pointer; }
.dashv2-engagement-legend { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
/* Legend rows: bullet · name · count · percent. The inline bar was dropped — the donut already
   shows proportions visually, and the bar was forcing a 5-column grid that overflowed when the
   engagement card was a third of the row3 (~340px content area). Pct column widened to 44px so
   "100%" never clips. */
.dashv2-eng-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) 36px 44px; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 5px; cursor: pointer; transition: background 0.15s, opacity 0.2s; min-width: 0; }
.dashv2-eng-row:hover { background: var(--bg-cream-2, #f3efe8); }
.dashv2-eng-bullet { width: 10px; height: 10px; border-radius: 2px; }
.dashv2-eng-name { font-size: 12px; color: var(--text-secondary); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashv2-eng-num { font-family: var(--serif); font-size: 18px; color: var(--text-primary); font-weight: 500; text-align: right; line-height: 1; font-variant-numeric: tabular-nums; }
.dashv2-eng-pct { font-size: 11px; color: var(--text-muted); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 1280px) {
  .dashv2-engagement { grid-template-columns: 1fr; }
  .dashv2-eng-row { grid-template-columns: 10px minmax(0,1fr) 36px 44px; }
}

/* Generic expandable card pattern */
.dashv2-can-expand { position: relative; }
.dashv2-card-expand-btn,
.dashv2-card-collapse-btn {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  width: 28px; height: 28px; cursor: pointer; color: var(--text-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s; padding: 0; opacity: 0.55;
}
.dashv2-card-expand-btn svg,
.dashv2-card-collapse-btn svg { width: 14px; height: 14px; }
.dashv2-card-expand-btn:hover,
.dashv2-card-collapse-btn:hover { background: var(--bg-cream-2, #f3efe8); border-color: var(--teal); color: var(--teal); opacity: 1; }
.dashv2-can-expand:hover .dashv2-card-expand-btn { opacity: 1; }
.dashv2-card-collapse-btn { display: none; }

.dashv2-card.expanded {
  position: fixed; inset: 24px; z-index: 1500;
  max-height: none; overflow: auto;
  box-shadow: 0 30px 100px rgba(0,0,0,0.22);
  padding: 36px 40px;
}
.dashv2-card.expanded .dashv2-card-expand-btn { display: none; }
.dashv2-card.expanded .dashv2-card-collapse-btn { display: inline-flex; opacity: 1; top: 18px; right: 18px; }
.dashv2-card.expanded .dashv2-card-title { font-size: 14px; }
.dashv2-card.expanded .dashv2-engagement { grid-template-columns: minmax(280px, 38%) 1fr; gap: 48px; max-width: 1200px; margin: 24px auto; }
.dashv2-card.expanded .dashv2-engagement-donut .dashv2-donut-svg { width: min(56vh, 480px); height: min(56vh, 480px); }
.dashv2-card.expanded .dashv2-eng-row { padding: 11px 12px; }
.dashv2-card.expanded .dashv2-eng-num { font-size: 22px; }
.dashv2-card.expanded .dashv2-bar-row { padding: 12px 8px; }
.dashv2-card.expanded .dashv2-bar-val { font-size: 22px; }
.dashv2-card.expanded .dashv2-heatmap { max-width: 1200px; margin: 22px auto 14px; gap: 8px; }
.dashv2-card.expanded .dashv2-hm-cell { height: 110px; border-radius: 12px; }
.dashv2-card.expanded .dashv2-hm-num { font-size: 42px; }
.dashv2-card.expanded .dashv2-hm-row-label { font-size: 14px; padding-right: 18px; }
.dashv2-card.expanded .dashv2-hm-col-label { font-size: 11px; padding-bottom: 14px; }
.dashv2-card.expanded .dashv2-hm-legend { max-width: 720px; margin-top: 12px; }
.dashv2-card.expanded .dashv2-hm-legend-num { font-size: 18px; }
.dashv2-card.expanded .dashv2-matrix-svg { max-width: none; height: calc(100vh - 380px); min-height: 360px; }
.dashv2-card.expanded .dashv2-flow-row { padding: 10px 0; }
.dashv2-card.expanded .dashv2-flow-bar { height: 36px; }
.dashv2-card.expanded .dashv2-flow-total { font-size: 22px; }
.dashv2-card.expanded .dashv2-quadrants { max-width: 1100px; margin-left: auto; margin-right: auto; }

body.dashv2-card-locked { overflow: hidden; }

/* AI maturity strip */
.dashv2-ai-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.dashv2-ai-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  padding: 22px; box-shadow: var(--shadow-sm); cursor: pointer; transition: all 0.2s;
  position: relative; overflow: hidden;
}
.dashv2-ai-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.dashv2-ai-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--teal); }
.dashv2-ai-card.gen::before { background: var(--warm); }
.dashv2-ai-card.agentic::before { background: var(--rose); }
.dashv2-ai-tier { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 8px; }
.dashv2-ai-num { font-family: var(--serif); font-size: 44px; font-weight: 500; color: var(--text-primary); line-height: 1; margin-bottom: 6px; }
.dashv2-ai-desc { font-size: 12px; color: var(--text-secondary); }

/* Filter chips */
.dashv2-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.dashv2-chip {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  padding: 7px 14px; border-radius: 18px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-secondary); cursor: pointer; transition: all 0.18s;
}
.dashv2-chip:hover { border-color: var(--teal); color: var(--teal); }
.dashv2-chip.active { background: var(--teal); border-color: var(--teal); color: #fff; }

/* Search */
.dashv2-search { width: 100%; max-width: 320px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 6px; font-family: var(--sans); font-size: 13px; color: var(--text-primary); background: var(--surface); margin-bottom: 14px; }
.dashv2-search:focus { outline: none; border-color: var(--teal); }

/* Company grid */
.dashv2-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }

/* Company card v2.30 — left engagement-color accent + structured rows + uniform tags */
.dashv2-cc {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  min-height: 220px;
  overflow: hidden;
}
.dashv2-cc:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}
.dashv2-cc:hover .dashv2-cc-accent { width: 6px; }
.dashv2-cc:hover .dashv2-cc-name { color: var(--teal); }

/* Left accent stripe — colored by engagement, widens on hover */
.dashv2-cc-accent {
  width: 4px;
  flex-shrink: 0;
  background: var(--text-muted);
  transition: width 0.18s ease;
}
.dashv2-cc--pilot    .dashv2-cc-accent { background: var(--teal); }
.dashv2-cc--interest .dashv2-cc-accent { background: var(--warm); }
.dashv2-cc--evolving .dashv2-cc-accent { background: var(--sage); }
.dashv2-cc--unclear  .dashv2-cc-accent { background: var(--border); }
.dashv2-cc--defunct  .dashv2-cc-accent { background: var(--rose); }
.dashv2-cc--none     .dashv2-cc-accent { background: var(--text-muted); }

.dashv2-cc-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 14px;
  min-width: 0;
}

/* Header row — index + cohort on the left, engagement chip on the right */
.dashv2-cc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.dashv2-cc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  min-width: 0;
}
.dashv2-cc-num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--text-muted);
  font-style: italic;
  font-weight: 500;
}
.dashv2-cc-sep { color: var(--border); font-weight: 400; }
.dashv2-cc-cohort {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.dashv2-cc-cohort.current { color: var(--teal); }

.dashv2-cc-badge {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 4px 9px;
  border-radius: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}
.dashv2-cc-badge.pilot    { background: var(--teal);       color: #fff; }
.dashv2-cc-badge.interest { background: var(--warm);       color: #fff; }
.dashv2-cc-badge.evolving { background: var(--sage-light); color: var(--sage); }
.dashv2-cc-badge.unclear  { background: var(--bg);         color: var(--text-muted); }
.dashv2-cc-badge.defunct  { background: #efe2e4;           color: var(--rose); }
.dashv2-cc-badge.none     { background: var(--bg);         color: var(--text-muted); }

/* Title block — name + location together, breathing room above mission */
.dashv2-cc-title { margin-bottom: 12px; }
.dashv2-cc-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  transition: color 0.18s ease;
}
.dashv2-cc-loc {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.dashv2-cc-mission {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer tags — outlined, uniform, with a small color-coded dot */
.dashv2-cc-foot {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.dashv2-cc-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  white-space: nowrap;
}
.dashv2-cc-tag-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}
.dashv2-cc-tag[data-kind="stage"] .dashv2-cc-tag-dot { background: var(--sage); }
.dashv2-cc-tag[data-kind="fund"]  .dashv2-cc-tag-dot { background: var(--warm); }
.dashv2-cc-tag[data-kind="ai"]    .dashv2-cc-tag-dot { background: var(--teal); }

/* Heatmap */
.dashv2-heatmap {
  display: grid;
  grid-template-columns: 150px repeat(5, 1fr);
  gap: 6px;
  margin: 6px 0 22px;
}
.dashv2-hm-corner { height: 1px; }
.dashv2-hm-col-label {
  font-size: 9.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0 4px 10px;
  text-align: center;
  font-weight: 600;
  align-self: end;
  line-height: 1.3;
}
.dashv2-hm-row-label {
  font-size: 12.5px;
  color: var(--text-primary);
  padding: 0 14px 0 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  white-space: nowrap;
}
.dashv2-hm-cell {
  height: 70px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: transform 0.18s cubic-bezier(.2,.8,.2,1), box-shadow 0.18s;
  position: relative;
  cursor: pointer;
  isolation: isolate;
}
.dashv2-hm-cell:hover {
  transform: scale(1.06) translateY(-1px);
  box-shadow: 0 6px 18px rgba(45, 110, 101, 0.28);
  z-index: 3;
}
.dashv2-hm-cell::before {
  content: ''; position: absolute; inset: 0; border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(0,0,0,0.04));
  pointer-events: none;
}
.dashv2-hm-cell.empty {
  background: #f4f2ee;
  border-color: #e8e4de;
  cursor: default;
  background-image: radial-gradient(circle at center, rgba(170, 158, 138, 0.22) 1.1px, transparent 1.4px);
  background-size: 8px 8px;
}
.dashv2-hm-cell.empty:hover { transform: none; box-shadow: none; }
.dashv2-hm-cell.empty::before { display: none; }
.dashv2-hm-num {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  position: relative; z-index: 1;
  font-variant-numeric: tabular-nums;
}

/* Color-scale legend */
.dashv2-hm-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 540px;
  margin: 0 auto 4px;
  padding-top: 6px;
}
.dashv2-hm-legend-end {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 10px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.10em; font-weight: 600;
  white-space: nowrap;
}
.dashv2-hm-legend-end.right { flex-direction: row-reverse; }
.dashv2-hm-legend-num {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0;
  text-transform: none;
}
.dashv2-hm-legend-bar {
  flex: 1;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(45,110,101,0.10), rgba(45,110,101,0.92));
  border: 1px solid rgba(45,110,101,0.18);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

/* Strategic Fit Matrix */
.dashv2-matrix-wrap { position: relative; }
.dashv2-matrix-svg { width: 100%; max-width: 920px; height: 540px; display: block; margin: 0 auto; }
.dashv2-matrix-bubble { cursor: pointer; transition: all 0.2s; }
.dashv2-matrix-bubble:hover { stroke-width: 2.5; }
.dashv2-matrix-tip {
  position: absolute; pointer-events: none; z-index: 5;
  background: #1c1a17; color: #f5f1ea;
  padding: 8px 12px; border-radius: 4px;
  font-family: Jost, sans-serif; font-size: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  opacity: 0; transition: opacity 0.12s;
  max-width: 260px;
}
.dashv2-matrix-tip.active { opacity: 1; }
.dashv2-matrix-tip-name { font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 500; margin-bottom: 2px; }
.dashv2-matrix-tip-meta { font-size: 11px; color: #c8c1b6; }
.dashv2-matrix-tip-cta { font-size: 10px; color: #8e8880; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 6px; }

/* Modal overlay */
.dashv2-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(28,26,23,0.55); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 32px; }
.dashv2-modal.active { display: flex; }
.dashv2-modal-card { background: var(--surface); border-radius: 8px; box-shadow: var(--shadow-lg); width: 100%; max-width: 920px; max-height: 88vh; overflow: hidden; display: flex; flex-direction: column; }
.dashv2-modal-head { padding: 20px 28px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 16px; }
.dashv2-modal-title { flex: 1; }
.dashv2-modal-title h2 { font-family: var(--serif); font-size: 28px; font-weight: 500; color: var(--text-primary); margin: 0 0 4px; letter-spacing: -0.01em; }
.dashv2-modal-title .sub { font-size: 12px; color: var(--text-muted); }
.dashv2-modal-close { background: transparent; border: none; cursor: pointer; padding: 8px; color: var(--text-muted); font-size: 22px; line-height: 1; }
.dashv2-modal-close:hover { color: var(--text-primary); }
.dashv2-modal-body { padding: 24px 28px; overflow-y: auto; flex: 1; }
.dashv2-modal-body h4 { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin: 18px 0 8px; }
.dashv2-modal-body p { font-size: 13px; color: var(--text-secondary); margin: 0 0 8px; line-height: 1.55; }
.dashv2-modal-body .field { display: grid; grid-template-columns: 130px 1fr; gap: 10px; margin-bottom: 6px; align-items: baseline; }
.dashv2-modal-body .field-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.dashv2-modal-body .field-val { font-size: 13px; color: var(--text-primary); }

/* v2.40 — Power-user Summary card at the top of the company modal. Visually
   distinct from the section bodies below (warm tinted strip + accent rule)
   so a returning user can scan-and-leave without reading the full record.
   Composed from structured fields client-side; no AI round-trip. */
.dashv2-modal-summary { background: linear-gradient(180deg, #fbf6ee 0%, #f7efe0 100%); border: 1px solid #e8dcc4; border-radius: 6px; padding: 14px 16px; margin: -4px 0 18px; position: relative; }
.dashv2-modal-summary::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; background: #c7984a; border-radius: 0 2px 2px 0; }
.dashv2-modal-summary-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: #8c6b2a; margin-bottom: 6px; }
.dashv2-modal-summary-body { font-family: 'Cormorant Garamond', serif; font-size: 16px; line-height: 1.55; color: #2a221a; }

.dashv2-modal-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.dashv2-modal-list li { padding: 10px 14px; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; transition: all 0.15s; display: flex; align-items: center; gap: 12px; font-size: 13px; }
.dashv2-modal-list li:hover { border-color: var(--teal); background: var(--teal-light); }

.dashv2-modal-nav { display: flex; gap: 6px; align-items: center; }
.dashv2-modal-nav button { background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 6px 10px; cursor: pointer; font-size: 14px; color: var(--text-secondary); }
.dashv2-modal-nav button:hover { background: var(--teal-light); color: var(--teal); border-color: var(--teal); }
/* "1 of 47" position indicator — tells the user the arrows walk a known sequence (v2.32). */
.dashv2-modal-pos { font-size: 11px; color: var(--text-muted); padding: 0 6px; min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; }

/* Footer */
.dashv2-footer { padding: 12px 28px; font-size: 11px; color: var(--text-muted); border-top: 1px solid var(--border); background: var(--surface); flex-shrink: 0; text-align: center; }

/* Responsive */
@media (max-width: 1280px) {
  .dashv2-row3 { grid-template-columns: 1fr 1fr; }
  .dashv2-row3 > .dashv2-impact { grid-column: 1 / -1; }
  .dashv2-ai-counters { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
  .dashv2-kpis { grid-template-columns: repeat(2, 1fr); }
  .dashv2-kpis > .dashv2-kpi:nth-child(5) { grid-column: 1 / -1; }
  .dashv2-grid-3 { grid-template-columns: 1fr; }
  .dashv2-grid-2 { grid-template-columns: 1fr; }
  .dashv2-row3 { grid-template-columns: 1fr; }
  .dashv2-row3 > .dashv2-impact { grid-column: auto; }
  .dashv2-ai-tiers { grid-template-columns: 1fr; }
  .dashv2-ai-grid { grid-template-columns: 1fr; }
  .dashv2-quadrants-grid { grid-template-columns: 1fr; }
  .dashv2-bar-row { grid-template-columns: 130px 1fr 50px; }
  .dashv2-heatmap { grid-template-columns: 100px repeat(5, 1fr); }
  .dashv2-view-head { flex-direction: column; gap: 12px; }
  .dashv2-view-stat { text-align: left; }
}
@media (max-width: 720px) {
  .dashv2-body { padding: 18px 16px 36px; }
  .dashv2-hero h1 { font-size: 28px; }
  .dashv2-kpis { grid-template-columns: 1fr; }
  .dashv2-kpis > .dashv2-kpi:nth-child(5) { grid-column: auto; }
  .dashv2-ai-counters { grid-template-columns: 1fr 1fr; }
  .dashv2-cards { grid-template-columns: 1fr; }
  .dashv2-modal { padding: 12px; }
  .dashv2-bar-row { grid-template-columns: 110px 1fr 44px; gap: 8px; }
  .dashv2-heatmap { grid-template-columns: 88px repeat(5, 1fr); gap: 3px; }
  .dashv2-hm-cell { height: 52px; border-radius: 6px; }
  .dashv2-hm-num { font-size: 18px; }
  .dashv2-hm-row-label { padding: 0 8px 0 0; font-size: 11px; }
  .dashv2-hm-col-label { font-size: 8.5px; padding-bottom: 6px; }
  .dashv2-flow-row { grid-template-columns: 88px 1fr 32px; gap: 8px; }
  .dashv2-pipe-row { grid-template-columns: 88px 1fr 32px; }
  .dashv2-impact-grid { grid-template-columns: 1fr; }
  .dashv2-axis-explainer { grid-template-columns: 1fr; }
}

/* KPI drill-in: grouped lists, search bar, chat-handoff footer */
.dashv2-modal-group { margin-bottom: 18px; }
.dashv2-modal-group-head { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.dashv2-modal-group-count { display: inline-block; background: var(--bg); color: var(--text-secondary); border-radius: 10px; padding: 1px 8px; font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.dashv2-modal-ask { display: flex; align-items: center; gap: 14px; padding: 14px 28px; border-top: 1px solid var(--border); background: var(--bg); }
.dashv2-modal-ask-btn { background: var(--teal); color: #fff; border: none; border-radius: 4px; padding: 8px 14px; font-size: 13px; font-weight: 500; cursor: pointer; transition: background 0.15s; white-space: nowrap; }
.dashv2-modal-ask-btn:hover { background: var(--teal-dark, #0e5b51); }
.dashv2-modal-ask-hint { font-size: 11px; color: var(--text-muted); line-height: 1.4; flex: 1; }

/* Applications-by-cohort breakdown */
.dashv2-cohort-legend { display: flex; gap: 18px; font-size: 11px; color: var(--text-muted); margin-bottom: 14px; }
.dashv2-cohort-legend i.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.dashv2-cohort-legend i.sw.teal { background: var(--teal-light); border: 1px solid var(--teal); }
.dashv2-cohort-legend i.sw.acc { background: var(--teal); }
.dashv2-cohort-list { display: flex; flex-direction: column; gap: 8px; }
.dashv2-cohort-row { display: grid; grid-template-columns: 70px 1fr 140px; gap: 12px; align-items: center; }
.dashv2-cohort-label { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.dashv2-cohort-track { position: relative; height: 18px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.dashv2-cohort-fill { position: absolute; top: 0; left: 0; bottom: 0; background: var(--teal-light); border-right: 1px solid var(--teal); }
.dashv2-cohort-fill.accepted { background: var(--teal); border-right: none; }
.dashv2-cohort-val { font-size: 12px; color: var(--text-secondary); text-align: right; }
.dashv2-cohort-acc { color: var(--teal); font-weight: 600; }

/* Searchable colleagues drill-in */
.dashv2-search-bar { margin-bottom: 10px; }
.dashv2-search-bar input { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 4px; font-size: 13px; font-family: inherit; background: var(--surface); color: var(--text-primary); }
.dashv2-search-bar input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-light); }
.dashv2-colleagues-hint { font-size: 11px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }
.dashv2-colleagues-list { display: flex; flex-direction: column; gap: 6px; }
.dashv2-colleague-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 4px; transition: border-color 0.15s, background 0.15s; }
.dashv2-colleague-row:hover { border-color: var(--teal); background: var(--teal-light); }
.dashv2-colleague-main { flex: 1; min-width: 0; }
.dashv2-colleague-name { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.dashv2-colleague-tag { display: inline-block; font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; padding: 1px 5px; background: var(--bg); border-radius: 3px; color: var(--text-muted); margin-left: 4px; vertical-align: middle; }
.dashv2-colleague-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashv2-colleague-actions { display: flex; gap: 6px; flex-shrink: 0; }
.dashv2-colleague-btn { background: var(--surface); border: 1px solid var(--border); border-radius: 3px; padding: 5px 10px; font-size: 11px; cursor: pointer; color: var(--text-secondary); transition: all 0.15s; }
.dashv2-colleague-btn:hover { border-color: var(--teal); color: var(--teal); }
.dashv2-colleague-btn.ask:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.dashv2-colleagues-more { padding: 12px; text-align: center; font-size: 11px; color: var(--text-muted); }
@media (max-width: 720px) {
  .dashv2-colleague-row { flex-direction: column; align-items: stretch; }
  .dashv2-colleague-actions { justify-content: flex-end; }
  .dashv2-cohort-row { grid-template-columns: 50px 1fr; }
  .dashv2-cohort-val { grid-column: 2; text-align: left; font-size: 11px; }
  .dashv2-modal-ask { flex-direction: column; align-items: stretch; }
}
