/* ═══════════════════════════════════════════════════════════
   Account Strategic Brief — Command Center (Jul-2026 rebuild)

   Layers:
     abx-  the command-center layout (hero, sticky nav, sections)
     ab2-  reusable visual primitives (viz panels, mini tables,
           chips, play cards) — shared by the new sections
     ab-   controls / research / inventory + the LEGACY APPENDIX
           (one-release escape hatch; delete the appendix block
           styles together with _account_brief_legacy_appendix.html)
   All colors/sizes ride themes.css tokens.
   ═══════════════════════════════════════════════════════════ */

/* ── Command-center page ─────────────────────────────────── */
.abx-page { margin-top: 14px; }

.abx-hero { display: flex; flex-direction: column; gap: 12px; }

/* Identity strip */
.abx-identity {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 16px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 10px;
}
.abx-identity-name {
  font-size: 20px; font-weight: 700; color: var(--text-primary);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.abx-identity-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-muted);
}
.abx-identity-meta i { margin-right: 4px; color: var(--accent); }
.abx-identity-meta a { color: var(--accent); text-decoration: none; }
.abx-identity-meta a:hover { text-decoration: underline; }
.abx-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; padding: 2px 9px;
  border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg-primary); color: var(--text-muted);
}
.abx-chip-warn { color: #f59e0b; border-color: rgba(245,158,11,.5); }
.abx-chip-danger { color: #ef4444; border-color: rgba(239,68,68,.5); }

/* KPI tile row (count-up numerals) */
.abx-kpis {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.abx-kpi {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.abx-kpi-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted);
}
.abx-kpi-val {
  font-size: 22px; font-weight: 700; color: var(--text-primary);
  font-variant-numeric: tabular-nums; line-height: 1.15;
}
.abx-kpi-sub { font-size: 11px; color: var(--text-muted); }

/* Hero visuals: map + revenue explorer */
.abx-hero-viz {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 12px; align-items: start;
}
.abx-geo-map { position: relative; min-height: 220px; width: 100%; }
@media (max-width: 1050px) { .abx-hero-viz { grid-template-columns: 1fr; } }

/* Sticky section nav */
.abx-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 10px 0; margin: 16px 0 4px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}
.abx-nav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  color: var(--text-muted); padding: 7px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all 0.15s;
}
.abx-nav-btn:hover { color: var(--text-primary); border-color: var(--accent); }
.abx-nav-btn.abx-nav-active {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.abx-nav-appendix { margin-left: auto; border-style: dashed; }

/* Domain sections */
.abx-section {
  padding: 18px 0 6px;
  scroll-margin-top: 64px; /* clear the sticky nav on anchor jumps */
}
.abx-section-title {
  font-size: 17px; font-weight: 700; color: var(--text-primary);
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 12px; padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.abx-section-title i { color: var(--accent); font-size: 15px; }

/* Section grids */
.abx-grid { display: grid; gap: 12px; margin-bottom: 12px; }
.abx-grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.abx-grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Reveal-on-scroll (reduced-motion aware — JS adds .abx-in) */
.abx-reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.abx-reveal.abx-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .abx-reveal { opacity: 1; transform: none; transition: none; }
}

/* Scrollable table / feed shells inside viz panels */
.abx-scroll-table { max-height: 300px; overflow-y: auto; }
.abx-scroll-list { max-height: 340px; overflow-y: auto; padding-right: 4px; }
.abx-feed-row {
  padding: 8px 0; border-bottom: 1px dotted var(--border);
}
.abx-feed-row:last-child { border-bottom: none; }
.abx-feed-head {
  font-size: 13px; font-weight: 600; color: var(--text-primary);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.abx-feed-head a { color: var(--accent); text-decoration: none; }
.abx-feed-head a:hover { text-decoration: underline; }
.abx-feed-meta {
  display: flex; gap: 10px; flex-wrap: wrap;
  font-size: 11px; color: var(--text-muted); margin-top: 2px;
}
.abx-feed-snippet {
  font-size: 12px; color: var(--text-secondary); margin-top: 4px; line-height: 1.45;
}

/* Win/loss donut */
.abx-donut-wrap { display: flex; align-items: center; gap: 16px; }
.abx-donut-svg { color: var(--text-primary); }
.abx-donut-legend { font-size: 12px; color: var(--text-secondary); display: flex; flex-direction: column; gap: 4px; }
.abx-donut-legend strong { color: var(--text-primary); margin-left: 4px; }
.abx-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; }

/* Web-intent score */
.abx-intent-score { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.abx-intent-num { font-size: 28px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.abx-intent-lbl { font-size: 11px; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.04em; }

/* Banner mini column bars */
.abx-minibars {
  display: flex; align-items: flex-end; gap: 3px; height: 48px; margin-top: 4px;
}
.abx-minibar {
  flex: 1; min-width: 4px; border-radius: 2px 2px 0 0;
  background: var(--accent); opacity: 0.75;
}
.abx-minibar:hover { opacity: 1; }

/* Shared UsChoropleth chrome (tooltip lives inside the map container) */
.usc-svg { display: block; }
.usc-tooltip {
  position: absolute; pointer-events: none; z-index: 20; opacity: 0;
  max-width: 280px; padding: 10px 12px; font-size: 11px; line-height: 1.45;
  background: rgba(15, 23, 42, 0.94); color: #f1f5f9; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.usc-error { padding: 24px; text-align: center; color: var(--text-muted); font-size: 13px; }

@media (max-width: 768px) {
  .abx-kpi-val { font-size: 18px; }
  .abx-nav { overflow-x: auto; flex-wrap: nowrap; }
  .abx-nav-appendix { margin-left: 0; }
}

/* ═══════════════════════════════════════════════════════════
   Legacy layers below (controls, research, inventory, ab2
   primitives, appendix dossier styles).
   ═══════════════════════════════════════════════════════════ */

.ab-loading {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(var(--bg-primary-rgb, 15,17,23), 0.92); backdrop-filter: blur(4px);
}
.ab-loading .loading-text { margin-top: 16px; font-size: 14px; color: var(--text-muted); }

/* Header */
.ab-header { padding: 24px 0 8px; }
.ab-title { font-size: 22px; font-weight: 700; display: flex; align-items: center; }
.ab-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* Controls */
.ab-controls {
  display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.ab-search-wrap { flex: 1; min-width: 280px; position: relative; }
.ab-select-wrap { min-width: 140px; }
.ab-select-small { max-width: 180px; }
.ab-btn-wrap { flex-shrink: 0; }
.ab-label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; letter-spacing: 0.5px; }
.ab-search-input, .ab-select {
  width: 100%; padding: 8px 12px; font-size: 13px;
  background: var(--bg-secondary); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: 6px;
  outline: none; transition: border-color 0.15s;
}
.ab-search-input:focus, .ab-select:focus { border-color: var(--accent); }
.ab-search-box { position: relative; }
.ab-search-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3); max-height: 280px; overflow-y: auto; margin-top: 4px;
}
.ab-search-option { padding: 10px 12px; cursor: pointer; border-bottom: 1px solid var(--border); }
.ab-search-option:last-child { border-bottom: none; }
.ab-search-option:hover { background: var(--bg-hover); }
.ab-search-name { font-size: 13px; font-weight: 500; }
.ab-search-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.ab-prospect-tag { font-size: 9px; padding: 1px 6px; border-radius: 3px; background: rgba(99,102,241,.15); color: #a5b4fc; white-space: nowrap; }

.ab-generate-btn, .ab-synth-btn { white-space: nowrap; }

/* Error */
.ab-error {
  background: rgba(var(--error-rgb, 239,68,68), 0.1); color: var(--error);
  border: 1px solid rgba(var(--error-rgb, 239,68,68), 0.3);
  padding: 12px 16px; border-radius: 8px; margin-top: 16px; font-size: 13px;
}

/* Selected account chip */
.ab-selected-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-secondary); border: 1px solid var(--accent);
  border-radius: 20px; padding: 6px 14px; font-size: 13px;
}
.ab-chip-name { font-weight: 600; }
.ab-chip-meta { color: var(--text-muted); font-size: 11px; }
.ab-chip-clear {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 16px; line-height: 1; padding: 0 0 0 4px;
}
.ab-chip-clear:hover { color: var(--error); }

/* Cache status */
.ab-cache-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ab-cache-badge {
  font-size: 11px; padding: 3px 10px; border-radius: 12px;
  display: inline-flex; align-items: center; gap: 4px;
}
.ab-cache-data { background: rgba(59,130,246,.12); color: #93c5fd; }
.ab-cache-synth { background: rgba(139,92,246,.12); color: #c4b5fd; }
.ab-cache-artifact { background: rgba(245,158,11,.12); color: #fcd34d; }
.ab-refresh-btn {
  background: none; border: 1px solid var(--border); color: var(--text-muted);
  border-radius: 6px; padding: 4px 8px; cursor: pointer; font-size: 11px;
  transition: all 0.15s;
}
.ab-refresh-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Empty state */
.ab-empty { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.ab-empty-small { text-align: center; padding: 20px; font-size: 13px; color: var(--text-muted); }

/* ─── AI Synthesis Sections ─────────────────────────── */
.ab-synthesis { margin-top: 24px; }
.ab-synth-header h2 {
  font-size: 20px; font-weight: 700; margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ab-synth-badge {
  font-size: 10px; font-weight: 600; background: var(--accent); color: #fff;
  padding: 2px 8px; border-radius: 10px; text-transform: uppercase;
}

.ab-synth-section {
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 10px;
  padding: 20px; margin-bottom: 16px;
}
.ab-synth-section h3 {
  font-size: 15px; font-weight: 600; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px; color: var(--text-primary);
}
.ab-synth-section h3 i { color: var(--accent); font-size: 14px; }

.ab-exec-text { font-size: 14px; line-height: 1.65; color: var(--text-secondary); }

/* Opportunity grid */
.ab-opp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.ab-opp-card {
  background: var(--bg-primary); border: 1px solid var(--border); border-radius: 8px;
  padding: 14px; border-left: 3px solid var(--text-muted);
}
.ab-opp-high { border-left-color: var(--error); }
.ab-opp-medium { border-left-color: var(--warning, #f59e0b); }
.ab-opp-low { border-left-color: var(--text-muted); }
.ab-opp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ab-opp-name { font-weight: 600; font-size: 13px; }
.ab-opp-priority { font-size: 10px; text-transform: uppercase; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: var(--bg-secondary); }
.ab-opp-pitch { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
.ab-opp-value { font-size: 13px; font-weight: 600; color: var(--success); margin-bottom: 4px; }
.ab-opp-detail { font-size: 12px; color: var(--text-muted); }
.ab-opp-detail ul { margin: 4px 0; padding-left: 16px; }
.ab-opp-detail li { margin-bottom: 2px; }

/* Event strategy */
.ab-events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ab-event-card {
  background: var(--bg-primary); border: 1px solid var(--border); border-radius: 8px; padding: 14px;
}
.ab-event-name { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.ab-event-pitch { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
.ab-event-meta { font-size: 11px; color: var(--text-muted); display: flex; gap: 12px; flex-wrap: wrap; }
.ab-event-reasons { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }

/* Card-level CTA */
.ab-card-cta { margin-top: 10px; }

/* HTML content blocks */
.ab-html-content { font-size: 13px; line-height: 1.6; color: var(--text-secondary); }
.ab-html-content .ab-section { margin-bottom: 12px; }
.ab-html-content .ab-lead { font-weight: 600; margin-bottom: 6px; }
.ab-html-content ul { padding-left: 18px; margin: 4px 0; }
.ab-html-content li { margin-bottom: 4px; }

/* 90-day plan */
.ab-plan-grid { display: flex; flex-direction: column; gap: 10px; }
.ab-plan-card {
  display: flex; gap: 14px; background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px;
}
.ab-plan-num {
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.ab-plan-body { flex: 1; }
.ab-plan-action { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.ab-plan-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 16px; margin-bottom: 4px; }
.ab-plan-outcome { font-size: 12px; color: var(--text-secondary); font-style: italic; }

/* ─── Data Brief ───────────────────────────────────── */
.ab-data-brief { margin-top: 24px; }
.ab-data-brief-title {
  font-size: 20px; font-weight: 700; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ab-data-meta { font-size: 11px; color: var(--text-muted); font-weight: 400; margin-left: auto; }

.ab-data-section {
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 20px; margin-bottom: 12px;
}

/* Collapsible section headers */
.ab-section-toggle {
  font-size: 14px; font-weight: 600; margin: 0;
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; user-select: none;
  color: var(--text-primary);
}
.ab-section-toggle i:first-child { color: var(--accent); font-size: 13px; }
.ab-section-toggle:hover { color: var(--accent); }
.ab-section-count { font-size: 11px; color: var(--text-muted); font-weight: 400; }
.ab-toggle-icon {
  margin-left: auto; font-size: 11px; color: var(--text-muted);
  transition: transform 0.2s;
}
.ab-toggle-open { transform: rotate(180deg); }

/* ML summary badges (inline) */
.ab-ml-badges {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ab-ml-badge {
  font-size: 12px; font-weight: 600; padding: 4px 12px;
  border-radius: 14px; background: var(--bg-secondary);
  border: 1px solid var(--border);
}

/* Revenue hero row */
.ab-rev-hero {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 16px;
}
.ab-sparkline { flex-shrink: 0; }

/* Product mix bars (inline in revenue section) */
.ab-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; }
.ab-bar-label { min-width: 90px; color: var(--text-secondary); white-space: nowrap; }
.ab-bar-track {
  flex: 1; height: 10px; background: var(--border); border-radius: 5px; overflow: hidden;
  min-width: 60px;
}
.ab-bar-fill { height: 100%; border-radius: 5px; transition: width 0.3s; }
.ab-bar-pct { min-width: 36px; text-align: right; font-weight: 600; color: var(--text-muted); font-size: 11px; }

/* Side-by-side context + geo layout */
.ab-context-geo-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start;
}
.ab-context-col { min-width: 0; }
.ab-geo-col { min-width: 0; }
@media (max-width: 1100px) {
  .ab-context-geo-row { grid-template-columns: 1fr; }
}

/* Identity grid */
.ab-identity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; font-size: 13px; margin-top: 12px; }
.ab-id-item strong { color: var(--text-muted); font-size: 11px; text-transform: uppercase; display: block; margin-bottom: 2px; }

/* BI */
.ab-bi-summary { font-size: 13px; line-height: 1.6; color: var(--text-secondary); margin-bottom: 4px; }
.ab-bi-sled { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; line-height: 1.5; }
.ab-bi-sled strong { color: var(--text-secondary); }
.ab-bi-fields { display: flex; flex-direction: column; gap: 2px; }

/* Subsection label */
.ab-subsection-label {
  font-size: 11px; text-transform: uppercase; color: var(--text-muted);
  letter-spacing: 0.4px; font-weight: 600; margin-bottom: 6px;
}

/* Industry DNA */
.ab-industry-dna {
  padding-top: 12px; border-top: 1px solid var(--border);
}
.ab-dna-meta {
  font-size: 11px; color: var(--text-muted); display: flex; gap: 12px; flex-wrap: wrap;
}
.ab-tag-dna {
  background: rgba(139,92,246,.12); color: #a78bfa;
}
.ab-dna-sources, .ab-dna-tracked {
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
}
.ab-tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ab-tag {
  font-size: 11px; padding: 3px 8px; border-radius: 4px;
  background: rgba(var(--accent-rgb, 59,130,246), 0.1); color: var(--accent); font-weight: 500;
}

/* Revenue table */
.ab-revenue-table-wrap { overflow-x: auto; margin-top: 12px; }
.ab-revenue-table {
  width: 100%; border-collapse: collapse; font-size: 12px;
}
.ab-revenue-table th {
  padding: 6px 10px; text-align: right; font-size: 11px; text-transform: uppercase;
  color: var(--text-muted); border-bottom: 1px solid var(--border);
}
.ab-revenue-table th:first-child { text-align: left; }
.ab-revenue-table td {
  padding: 6px 10px; text-align: right; border-bottom: 1px solid rgba(var(--border-rgb,50,50,50),.4);
}
.ab-revenue-table td:first-child { text-align: left; font-weight: 500; }
.ab-rev-fam { white-space: nowrap; }
.ab-rev-zero { color: var(--text-muted); }
.ab-rev-total { font-weight: 600; color: var(--accent); }

/* Predictions */
.ab-pred-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ab-pred-card {
  background: var(--bg-primary); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px; text-align: center;
}
.ab-pred-label { font-size: 10px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
.ab-pred-value { font-size: 16px; font-weight: 700; }
.ab-pred-sub { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.ab-pred-high { color: var(--error); }
.ab-pred-medium { color: var(--warning, #f59e0b); }
.ab-pred-low { color: var(--success); }

/* Subscriptions */
.ab-sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.ab-sub-card {
  background: var(--bg-primary); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px; text-align: center;
}
.ab-sub-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.ab-sub-status { font-size: 12px; color: var(--text-secondary); }

/* Lead Demographics */
.ab-demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 12px; }
.ab-demo-col h4 { font-size: 12px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.ab-demo-bar {
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 12px;
}
.ab-demo-label { min-width: 80px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-secondary); }
.ab-demo-fill {
  height: 6px; background: var(--accent); border-radius: 3px; flex: 1;
  min-width: 4px; opacity: 0.7;
}
.ab-demo-count { font-size: 11px; color: var(--text-muted); min-width: 36px; text-align: right; }

/* Year trend */
.ab-year-trend { display: flex; flex-direction: column; gap: 4px; }
.ab-year-bar { display: flex; align-items: center; gap: 8px; }
.ab-year-label { font-size: 12px; color: var(--text-muted); min-width: 40px; }
.ab-year-fill-wrap { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.ab-year-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.3s; }
.ab-year-count { font-size: 11px; color: var(--text-muted); min-width: 40px; text-align: right; }

/* Awards */
.ab-awards-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .ab-awards-duo { grid-template-columns: 1fr; } }
.ab-awards-col { min-width: 0; }
.ab-awards-heading { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
.ab-award-item {
  display: flex; align-items: center; gap: 8px; padding: 5px 0;
  border-bottom: 1px solid rgba(var(--border-rgb,50,50,50),.4); font-size: 12px;
}
.ab-award-item:last-child { border-bottom: none; }
.ab-award-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.ab-award-title.ab-award-link {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
}
a.ab-award-title.ab-award-link:hover { text-decoration: underline; }
.ab-award-right { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; flex-shrink: 0; }
.ab-award-value { font-weight: 600; color: var(--success); white-space: nowrap; font-size: 12px; }
.ab-award-meta { font-size: 10px; color: var(--text-muted); white-space: nowrap; }

/* Pipeline items */
.ab-opp-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-bottom: 1px solid rgba(var(--border-rgb,50,50,50),.4); font-size: 12px;
  border-radius: 6px; margin: 0 -10px; cursor: pointer; transition: background .15s;
}
.ab-opp-item:last-child { border-bottom: none; }
.ab-opp-item:hover { background: rgba(var(--accent-rgb,59,130,246),.08); }
.ab-opp-item > span:first-child { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--accent-light); }
.ab-opp-item-amt { font-weight: 600; color: var(--success); white-space: nowrap; }
.ab-opp-item-stage { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.ab-opp-item-date { font-size: 11px; color: var(--text-muted); white-space: nowrap; }

/* Product gaps */
.ab-benchmark-bar {
  font-size: 12px; color: var(--text-secondary);
  padding: 8px 12px; background: rgba(var(--accent-rgb,59,130,246),.08);
  border-radius: 6px; margin-bottom: 12px;
}
.ab-gaps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ab-gap-card {
  background: var(--bg-primary); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px; border-left: 3px solid var(--warning, #f59e0b);
}
.ab-gap-sub { border-left-color: var(--accent); }
.ab-gap-name { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.ab-gap-detail { font-size: 12px; color: var(--text-muted); }

/* Signals */
.ab-signals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.ab-signal-card {
  background: var(--bg-primary); border: 1px solid var(--border); border-radius: 8px; padding: 14px;
}
.ab-signal-card h4 { font-size: 12px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.ab-signal-item { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; padding-left: 8px; border-left: 2px solid var(--border); }
.ab-signal-risk .ab-signal-item { border-left-color: var(--error); }
.ab-signal-growth .ab-signal-item { border-left-color: var(--success); }
.ab-signal-urgency .ab-signal-item { border-left-color: var(--warning, #f59e0b); }

.ab-fit-score { font-size: 28px; font-weight: 700; color: var(--accent); }

/* Pipeline stats */
.ab-pipeline-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.ab-pipe-stat { text-align: center; }
.ab-pipe-label { display: block; font-size: 11px; text-transform: uppercase; color: var(--text-muted); }
.ab-pipe-value { display: block; font-size: 20px; font-weight: 700; }
.ab-pipe-count { display: block; font-size: 11px; color: var(--text-muted); }

/* Deep research */
.ab-research-text { font-size: 12px; line-height: 1.5; color: var(--text-secondary); white-space: pre-wrap; }
.ab-research-state { margin-bottom: 12px; }

/* Artifacts */
.ab-artifact-card {
  background: var(--bg-primary); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px; margin-bottom: 8px;
}
.ab-artifact-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.ab-artifact-type {
  font-size: 10px; text-transform: uppercase; font-weight: 700;
  padding: 2px 6px; border-radius: 4px; background: rgba(var(--accent-rgb,59,130,246),.12);
  color: var(--accent);
}
.ab-artifact-date { font-size: 11px; color: var(--text-muted); }
.ab-artifact-note { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; font-style: italic; }
.ab-artifact-body { font-size: 12px; color: var(--text-secondary); }
.ab-artifact-form { margin-top: 12px; }

/* ─── Inventory Table ──────────────────────────────── */
.ab-inv-title {
  font-size: 18px; font-weight: 700; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.ab-inv-title i { color: var(--accent); }
.ab-inv-table-wrap { overflow-x: auto; }
.ab-inv-table {
  width: 100%; border-collapse: collapse; font-size: 12px;
}
.ab-inv-table th {
  padding: 8px 10px; text-align: left; font-size: 10px; text-transform: uppercase;
  color: var(--text-muted); border-bottom: 1px solid var(--border);
  white-space: nowrap; letter-spacing: 0.3px;
}
.ab-inv-table td {
  padding: 8px 10px; border-bottom: 1px solid rgba(var(--border-rgb,50,50,50),.4);
  vertical-align: middle;
}
.ab-inv-row { cursor: pointer; transition: background 0.15s; }
.ab-inv-row:hover { background: var(--bg-hover); }
.ab-inv-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.ab-inv-id { font-size: 10px; color: var(--text-muted); font-family: monospace; }
.ab-inv-meta { font-size: 11px; color: var(--text-secondary); white-space: nowrap; }
.ab-inv-none { color: var(--text-muted); }
.ab-inv-open {
  background: none; border: 1px solid var(--border); color: var(--text-muted);
  border-radius: 4px; padding: 4px 8px; cursor: pointer; font-size: 11px;
}
.ab-inv-open:hover { border-color: var(--accent); color: var(--accent); }

/* Structured research section */
.ab-research-section-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  color: var(--text-muted); letter-spacing: 0.4px;
  padding: 8px 0 6px; display: flex; align-items: center; gap: 6px;
}
.ab-research-card {
  background: var(--bg-secondary); border-radius: 8px; padding: 12px 14px;
  margin-bottom: 8px; border-left: 3px solid var(--accent);
}
.ab-research-card.ab-research-jur {
  border-left-color: var(--info, #3b82f6);
}
.ab-research-card-header {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ab-research-type {
  background: var(--accent); color: #fff; padding: 1px 8px; border-radius: 10px;
  font-size: 10px; font-weight: 600; text-transform: uppercase;
}
.ab-research-subtype {
  font-size: 10px; color: var(--text-muted); font-style: italic;
}
.ab-research-date {
  font-size: 10px; color: var(--text-muted); margin-left: auto;
}
.ab-research-auto {
  font-size: 9px; color: var(--text-muted); background: var(--bg-tertiary, rgba(255,255,255,.05));
  padding: 1px 5px; border-radius: 3px;
}
.ab-research-acct {
  font-size: 10px; color: var(--text-secondary); font-weight: 500;
}
.ab-research-note {
  font-size: 11px; color: var(--text-secondary); font-style: italic;
  margin-top: 4px; padding-left: 8px; border-left: 2px solid var(--border);
}
.ab-research-body { margin-top: 8px; }
.ab-cache-research {
  background: rgba(139, 92, 246, .15); color: #a78bfa;
}

/* Jurisdiction research groups */
.ab-jurisdiction-group {
  margin-bottom: 8px;
}
.ab-jurisdiction-header {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 6px 10px; border-radius: 6px; transition: background 0.15s;
}
.ab-jurisdiction-header:hover { background: var(--bg-hover); }
.ab-jurisdiction-header strong {
  font-size: 13px; min-width: 28px;
}

/* Email artifact details */
.ab-artifact-email-meta {
  display: flex; align-items: center; gap: 6px; font-size: 11px;
  color: var(--text-secondary); flex-wrap: wrap;
}
.ab-artifact-model {
  background: var(--bg-secondary); padding: 1px 6px; border-radius: 3px;
  font-size: 10px; color: var(--text-muted);
}
.ab-artifact-email-body {
  margin-top: 6px; white-space: pre-wrap; font-size: 12px;
  line-height: 1.5; color: var(--text-primary);
  max-height: 200px; overflow-y: auto;
}

/* Collapse animation helper */
[x-collapse] { overflow: hidden; }

/* State footprint map + table */
.ab-geo-intro {
  font-size: 12px; color: var(--text-muted); margin: 0 0 12px; line-height: 1.5;
}
.ab-geo-toolbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px; margin-bottom: 12px;
}
.ab-geo-toggle { display: inline-flex; gap: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.ab-geo-mode-btn {
  background: var(--bg-secondary); color: var(--text-muted); border: none;
  padding: 8px 16px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.ab-geo-mode-btn:hover { color: var(--text-primary); background: var(--bg-hover); }
.ab-geo-mode-btn.active {
  background: var(--accent); color: #fff;
}
.ab-geo-metric-label {
  display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted);
}
.ab-geo-select {
  padding: 6px 10px; font-size: 12px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--bg-secondary); color: var(--text-primary);
}
.ab-geo-ml-note {
  font-size: 12px; color: var(--text-secondary); margin: 0 0 12px;
  padding: 10px 12px; border-radius: 8px; background: var(--bg-secondary, rgba(0,0,0,.04));
  border: 1px solid var(--border);
}
.ab-geo-map-wrap { position: relative; margin-bottom: 8px; }
.ab-geo-map {
  position: relative; min-height: 220px; width: 100%;
  border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-secondary, #f8fafc);
  --ab-geo-stroke: rgba(15, 23, 42, 0.25);
}
.ab-geo-svg { display: block; }
.ab-geo-tooltip {
  position: absolute; pointer-events: none; z-index: 20;
  max-width: 280px; padding: 10px 12px; font-size: 11px; line-height: 1.45;
  background: rgba(15, 23, 42, 0.94); color: #f1f5f9; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.ab-geo-error { padding: 24px; text-align: center; color: var(--text-muted); font-size: 13px; }
.ab-geo-table-wrap { overflow-x: auto; margin-top: 4px; }
.ab-geo-table {
  width: 100%; border-collapse: collapse; font-size: 12px;
}
.ab-geo-table th, .ab-geo-table td {
  padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--border);
}
.ab-geo-table th:first-child, .ab-geo-table td:first-child { text-align: left; }
.ab-geo-table th {
  font-weight: 600; color: var(--text-muted); text-transform: uppercase; font-size: 10px;
  letter-spacing: 0.04em;
}
.ab-geo-st { font-weight: 600; color: var(--text-primary); }
.ab-geo-yes { color: var(--success, #10b981); font-weight: 600; }

/* --- 3-Lens Console (Account Brief v2 / Phase 5) -----------------------
   Operator-console layout: headline strip, what's-changed, lens tabs,
   play this week, deep-link rail. Sits above the legacy 16-section
   dossier (which now lives in a collapsed appendix).
   ---------------------------------------------------------------------- */
.ab2-console { margin-top: 14px; }

.ab2-headline-strip {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 18px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border: 1px solid var(--accent);
  border-radius: 10px;
  margin-bottom: 12px;
}
.ab2-headline-text { font-size: 15px; font-weight: 600; color: var(--text-primary); line-height: 1.4; }
.ab2-headline-actions { display: flex; gap: 6px; flex-shrink: 0; }
.ab2-mini-btn {
  background: var(--bg-primary); border: 1px solid var(--border);
  color: var(--text-primary); padding: 6px 10px; border-radius: 6px;
  cursor: pointer; font-size: 12px;
}
.ab2-mini-btn:hover { background: var(--accent); color: white; }

.ab2-whats-changed {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px; margin-bottom: 12px;
}
.ab2-wc-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  color: var(--text-muted); letter-spacing: 0.05em; margin-bottom: 6px;
}
.ab2-wc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ab2-wc-chip {
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px 10px; font-size: 11px; color: var(--text-primary);
}
.ab2-wc-chip.ab2-wc-bucket { border-color: #f59e0b; color: #f59e0b; }
.ab2-wc-chip.ab2-wc-churn_risk { border-color: #ef4444; color: #ef4444; }
.ab2-wc-chip.ab2-wc-open_value { border-color: #10b981; color: #10b981; }
.ab2-wc-narrative { font-size: 12px; color: var(--text-muted); margin-top: 6px; font-style: italic; }

.ab2-plays { margin-bottom: 16px; }
.ab2-section-header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.ab2-section-header h3 { font-size: 14px; margin: 0; color: var(--text-primary); }
.ab2-section-sub { font-size: 11px; color: var(--text-muted); }
.ab2-plays-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}
.ab2-play-card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-left: 4px solid var(--accent); border-radius: 8px; padding: 12px;
}
.ab2-play-card.ab2-play-pri-1 { border-left-color: #ef4444; }
.ab2-play-card.ab2-play-pri-2 { border-left-color: #f59e0b; }
.ab2-play-card.ab2-play-pri-3 { border-left-color: #6366f1; }
.ab2-play-header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.ab2-play-num {
  font-size: 14px; font-weight: 700; color: var(--accent);
  background: var(--bg-primary); padding: 2px 8px; border-radius: 999px;
}
.ab2-play-title { font-size: 13px; font-weight: 600; color: var(--text-primary); flex: 1; }
.ab2-play-rationale { font-size: 12px; color: var(--text-muted); line-height: 1.4; margin-bottom: 6px; }
.ab2-play-action {
  font-size: 12px; color: var(--text-primary); padding: 6px 8px;
  background: var(--bg-primary); border-radius: 6px;
  display: flex; align-items: center; gap: 6px; margin-bottom: 6px;
}
.ab2-play-action i { color: var(--accent); }
.ab2-play-cites { display: flex; flex-wrap: wrap; gap: 4px; }
.ab2-cite-chip {
  font-size: 10px; font-family: var(--font-mono, monospace);
  color: var(--text-muted); background: var(--bg-primary);
  border: 1px solid var(--border); padding: 1px 6px; border-radius: 3px;
}
.ab2-play-narrative {
  margin-top: 10px; padding: 10px; background: var(--bg-secondary);
  border-left: 3px solid var(--accent); border-radius: 4px;
  font-size: 13px; color: var(--text-primary); line-height: 1.5;
}

.ab2-lenses { margin-bottom: 16px; }
.ab2-lens-tabs {
  display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 12px;
}
.ab2-lens-tab {
  background: transparent; border: none; color: var(--text-muted);
  padding: 10px 16px; font-size: 13px; font-weight: 500; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.ab2-lens-tab:hover { color: var(--text-primary); }
.ab2-lens-tab.ab2-lens-active {
  color: var(--accent); border-bottom-color: var(--accent); font-weight: 600;
}
.ab2-lens-pane {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px;
}

/* Visual-first lens heroes (charts, map, KPIs) */
.ab2-viz-hero {
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px 16px; margin-bottom: 10px;
}
.ab2-viz-kpis {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px; margin-bottom: 14px;
}
.ab2-viz-kpi {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px;
}
.ab2-viz-kpi-label {
  display: block; font-size: 10px; font-weight: 700; text-transform: uppercase;
  color: var(--text-muted); letter-spacing: 0.04em;
}
.ab2-viz-kpi-val { display: block; font-size: 20px; font-weight: 700; color: var(--text-primary); margin-top: 2px; }
.ab2-viz-kpi-sub { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.ab2-viz-kpi-accent { color: #7c3aed; }
.ab2-viz-kpi-warn { color: #f59e0b; }
.ab2-viz-grid { display: grid; gap: 12px; }
.ab2-viz-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ab2-viz-grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ab2-viz-panel {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px;
}
.ab2-viz-panel-wide { grid-column: 1 / -1; }
.ab2-viz-panel-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 8px; letter-spacing: 0.04em;
}
.ab2-viz-panel-title i { margin-right: 4px; color: var(--accent); }
.ab2-viz-panel-sum {
  float: right; text-transform: none; letter-spacing: 0; font-size: 12px;
  font-weight: 700; color: var(--accent);
}
.ab2-viz-year-amt { min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }

/* Full awards table (Market lens) */
.ab2-awards-panel { min-width: 0; }
.ab2-awards-states { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.ab2-awards-scroll { max-height: 320px; overflow-y: auto; border: 1px solid var(--border); border-radius: 6px; }
.ab2-awards-table { width: 100%; border-collapse: collapse; }
.ab2-awards-table thead th {
  position: sticky; top: 0; z-index: 1; background: var(--bg-primary);
  font-size: 10px; text-transform: uppercase; color: var(--text-muted);
  text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border);
}
.ab2-awards-table td { padding: 5px 8px; font-size: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.ab2-awards-table tbody tr:hover { background: var(--bg-hover, rgba(0,0,0,0.03)); }
.ab2-awards-table a { color: var(--accent); text-decoration: none; }
.ab2-awards-table a:hover { text-decoration: underline; }
.ab2-awards-agency { color: var(--text-muted); max-width: 200px; }
.ab2-awards-val { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ab2-num { text-align: right; }
.ab2-awards-table th.ab2-num { text-align: right; }
.ab2-awards-empty { padding: 16px 8px; text-align: center; color: var(--text-muted); font-size: 12px; }

/* Award search + filter toolbar */
.ab2-awards-filters { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.ab2-awards-search {
  flex: 1; min-width: 180px; display: flex; align-items: center; gap: 6px;
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: 6px; padding: 5px 10px;
}
.ab2-awards-search i { color: var(--text-muted); font-size: 12px; }
.ab2-awards-search input {
  flex: 1; border: none; background: transparent; outline: none;
  font-size: 12px; color: var(--text-primary); min-width: 0;
}
.ab2-awards-clear {
  border: none; background: none; color: var(--text-muted);
  cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px;
}
.ab2-awards-clear:hover { color: var(--text-primary); }
.ab2-awards-state-sel {
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: 6px; padding: 5px 8px; font-size: 12px; color: var(--text-primary);
}

/* Firmographic identity strip */
.ab2-firmo {
  display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 14px;
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: 8px; margin-bottom: 12px;
}
.ab2-firmo-item { display: flex; flex-direction: column; min-width: 0; }
.ab2-firmo-l {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-muted); font-weight: 700;
}
.ab2-firmo-v {
  font-size: 13px; font-weight: 600; color: var(--text-primary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px;
}
.ab2-firmo-link { text-decoration: none; }
.ab2-firmo-link .ab2-firmo-v { color: var(--accent); }
.ab2-firmo-link:hover .ab2-firmo-v { text-decoration: underline; }
.ab2-bi-summary {
  font-size: 13px; line-height: 1.5; color: var(--text-primary);
  margin: 0 0 10px;
}

/* Merged revenue card: years (clickable) + per-year product mix */
.ab2-rev-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.ab2-rev-sub {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 6px; letter-spacing: 0.03em;
}
.ab2-rev-hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text-muted); }
.ab2-rev-row { cursor: pointer; border-radius: 4px; padding: 1px 4px; margin: 0 -4px; }
.ab2-rev-row:hover { background: var(--bg-hover, rgba(0,0,0,0.04)); }
.ab2-rev-row-active { background: rgba(107, 142, 96, 0.14); }
.ab2-rev-row-active .ab-bar-label { font-weight: 700; color: var(--accent); }
.ab2-rev-clear {
  border: none; background: none; color: var(--accent); cursor: pointer;
  font-size: 11px; text-transform: none; letter-spacing: 0; margin-left: 6px;
  text-decoration: underline;
}
.ab2-rev-empty { font-size: 12px; color: var(--text-muted); margin: 6px 0 0; font-style: italic; }
.ab2-rev-mix { border-left: 1px solid var(--border); padding-left: 14px; min-width: 0; }
@media (max-width: 720px) {
  .ab2-rev-split { grid-template-columns: 1fr; }
  .ab2-rev-mix { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 10px; }
}

/* Research-waterfall signals (Market lens) */
.ab2-signals-panel { min-width: 0; }
.ab2-signal {
  border: 1px solid var(--border); border-left-width: 3px;
  border-radius: 6px; padding: 8px 12px; margin-bottom: 8px;
  background: var(--bg-primary);
}
.ab2-signal-hot { border-left-color: #ef4444; }
.ab2-signal-warm { border-left-color: #f59e0b; }
.ab2-signal-cold { border-left-color: #94a3b8; }
.ab2-signal-head { display: flex; gap: 8px; align-items: center; margin-bottom: 3px; flex-wrap: wrap; }
.ab2-signal-type {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em;
  font-weight: 700; color: var(--accent);
}
.ab2-signal-urgency {
  font-size: 10px; text-transform: uppercase; font-weight: 700;
  color: var(--text-muted); background: var(--bg-hover, rgba(0,0,0,0.05));
  padding: 1px 6px; border-radius: 10px;
}
.ab2-signal-date { font-size: 10px; color: var(--text-muted); margin-left: auto; }
.ab2-signal-head-line { font-size: 13px; font-weight: 600; color: var(--text-primary); line-height: 1.35; }
.ab2-signal-summary { font-size: 12px; color: var(--text-primary); line-height: 1.45; margin: 4px 0 0; }
.ab2-signal-quote { font-size: 12px; color: var(--text-muted); font-style: italic; margin: 4px 0 0; line-height: 1.4; }
.ab2-signal-cite { font-size: 11px; color: var(--accent); text-decoration: none; display: inline-block; margin-top: 4px; }
.ab2-signal-cite:hover { text-decoration: underline; }
.ab2-viz-map-hint { font-size: 11px; color: var(--text-muted); margin: 0 0 8px; }
.ab2-lens-geo-map { min-height: 200px; }
.ab2-viz-map-panel { min-width: 0; }
.ab2-viz-spark { margin-bottom: 10px; }
.ab2-viz-compare-row {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 8px; align-items: center;
  margin-bottom: 6px; font-size: 12px;
}
.ab2-viz-compare-lbl { color: var(--text-muted); }
.ab2-viz-bar-track, .ab2-viz-bar-track {
  height: 8px; background: var(--bg-primary); border-radius: 4px; overflow: hidden;
}
.ab2-viz-bar-fill { height: 100%; border-radius: 4px; min-width: 2px; }
.ab2-viz-bar-py { background: #94a3b8; }
.ab2-viz-bar-cy { background: var(--accent, #6b8e60); }
.ab2-viz-bar-pipe { background: #6366f1; }
.ab2-viz-bar-fit { background: #10b981; }
.ab2-viz-bar-amt { font-size: 11px; font-weight: 600; white-space: nowrap; }
.ab2-viz-opp-row { margin-bottom: 10px; }
.ab2-viz-opp-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; margin-bottom: 4px; }
.ab2-viz-opp-name { font-weight: 500; color: var(--text-primary); flex: 1; min-width: 0; }
.ab2-viz-opp-amt { font-weight: 700; color: var(--accent); flex-shrink: 0; }
.ab2-viz-opp-meta { font-size: 11px; color: var(--text-muted); margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; }
.ab2-viz-cluster { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; line-height: 1.35; }
.ab2-viz-rev-table { font-size: 12px; }
.ab2-lens-toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px;
}
.ab2-lens-toolbar-btn {
  background: var(--bg-primary); border: 1px solid var(--border);
  color: var(--text-muted); padding: 6px 12px; border-radius: 6px;
  font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.ab2-lens-toolbar-btn:hover { color: var(--text-primary); border-color: var(--accent); }
.ab2-lens-toolbar-ai { color: #8b5cf6; border-color: rgba(139, 92, 246, 0.35); }
.ab2-llm-block-collapsible { margin-bottom: 10px; }
.ab2-narrative-strip {
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 14px; margin-bottom: 12px;
}
.ab2-narrative-strip-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 10px;
}
.ab2-narrative-strip-title i { margin-right: 4px; color: var(--accent); }
.ab2-narrative-sections {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px 16px;
}
.ab2-narrative-sec-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  color: var(--accent); letter-spacing: 0.03em; margin-bottom: 6px;
}
.ab2-narrative-bullets {
  margin: 0; padding-left: 16px; font-size: 12px; line-height: 1.45;
  color: var(--text-primary);
}
.ab2-narrative-bullets li { margin-bottom: 4px; }
.ab2-narrative-avoid .ab2-narrative-sec-title { color: #dc2626; }
.ab2-narrative-avoid .ab2-narrative-bullets { color: #b91c1c; }
.ab2-llm-block {
  background: var(--bg-primary); border-left: 3px solid var(--accent);
  border-radius: 4px; padding: 10px 14px; margin-bottom: 12px;
  font-size: 13px; color: var(--text-primary); line-height: 1.5;
}
.ab2-llm-block ul { margin: 0; padding-left: 18px; }
.ab2-llm-block li { margin-bottom: 4px; }
.ab2-lens-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}
.ab2-card {
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: 6px; padding: 10px 12px;
}
.ab2-card-wide { grid-column: span 2; }
.ab2-card-h {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  color: var(--text-muted); letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border); padding-bottom: 4px; margin-bottom: 6px;
}
.ab2-card-body { font-size: 12px; }
.ab2-kv { display: flex; justify-content: space-between; padding: 3px 0; }
.ab2-kv span { color: var(--text-muted); }
.ab2-kv strong { color: var(--text-primary); font-weight: 600; }

.ab2-contact-row { padding: 4px 0; border-bottom: 1px dotted var(--border); }
.ab2-contact-row:last-child { border-bottom: none; }
.ab2-contact-name { font-weight: 600; color: var(--text-primary); }
.ab2-contact-sub { color: var(--text-muted); font-size: 11px; }
.ab2-contact-meta { color: var(--accent); font-size: 11px; }

.ab2-signal-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.ab2-signal-tier {
  font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 3px;
  background: var(--bg-secondary); color: var(--text-muted);
}
.ab2-signal-tier.ab2-tier-T1 { background: #ef4444; color: white; }
.ab2-signal-tier.ab2-tier-T2 { background: #f59e0b; color: white; }
.ab2-signal-title { color: var(--text-primary); font-size: 12px; }

.ab2-scoop-row { padding: 4px 0; border-bottom: 1px dotted var(--border); }
.ab2-scoop-row:last-child { border-bottom: none; }
.ab2-scoop-title { font-weight: 600; color: var(--text-primary); font-size: 12px; }
.ab2-scoop-sub { color: var(--text-muted); font-size: 11px; }

.ab2-evopp-row { padding: 4px 0; border-bottom: 1px dotted var(--border); }
.ab2-evopp-row:last-child { border-bottom: none; }
.ab2-evopp-name { font-weight: 600; color: var(--text-primary); font-size: 12px; }
.ab2-evopp-meta { color: var(--text-muted); font-size: 11px; }

.ab2-ws-grid { display: flex; flex-wrap: wrap; gap: 4px; }
.ab2-ws-chip {
  background: var(--bg-secondary); border: 1px solid var(--accent);
  color: var(--accent); padding: 3px 8px; border-radius: 4px; font-size: 11px;
}

.ab2-risks, .ab2-plan { margin-bottom: 16px; }
.ab2-plan-list { display: flex; flex-direction: column; gap: 8px; }
.ab2-plan-row {
  display: flex; gap: 12px; padding: 12px;
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 6px;
}
.ab2-plan-row .ab2-plan-num {
  font-size: 16px; font-weight: 700; color: var(--accent);
  background: var(--bg-primary); padding: 4px 10px; border-radius: 50%;
  height: 32px; min-width: 32px; display: flex; align-items: center; justify-content: center;
}
.ab2-plan-body { flex: 1; }
.ab2-plan-action { font-weight: 600; color: var(--text-primary); }
.ab2-plan-meta { display: flex; gap: 12px; color: var(--text-muted); font-size: 11px; margin: 4px 0; }
.ab2-plan-outcome { color: var(--text-muted); font-size: 12px; font-style: italic; }
.ab2-cite-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }

.ab2-deep-links {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px; margin-bottom: 16px;
}
.ab2-dl-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  color: var(--text-muted); letter-spacing: 0.05em; margin-bottom: 6px;
}
.ab2-dl-row { display: flex; flex-wrap: wrap; gap: 6px; }
.ab2-dl-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-primary); border: 1px solid var(--border);
  color: var(--text-primary); padding: 6px 12px; border-radius: 6px;
  font-size: 12px; text-decoration: none; transition: all 0.15s;
}
.ab2-dl-btn:hover {
  background: var(--accent); color: white; border-color: var(--accent);
}
.ab2-dl-btn i { font-size: 11px; }

.ab2-appendix-toggle { margin: 18px 0 8px; text-align: center; }
.ab2-appendix-btn {
  background: transparent; border: 1px dashed var(--border);
  color: var(--text-muted); padding: 8px 14px; border-radius: 6px;
  cursor: pointer; font-size: 12px;
}
.ab2-appendix-btn:hover { color: var(--text-primary); border-color: var(--accent); }

/* ── Densified lens panes (chips, mini-tables, sub-heads) ── */
.ab2-card-h-meta {
  font-size: 10px; font-weight: 500; color: var(--text-muted);
  text-transform: none; letter-spacing: 0; margin-left: 8px;
}
.ab2-subhead {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  color: var(--text-muted); letter-spacing: 0.04em; margin: 6px 0 4px;
}
.ab2-mini-table {
  width: 100%; border-collapse: collapse; font-size: 11px;
  margin-top: 4px;
}
.ab2-mini-table th {
  text-align: left; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; font-size: 9px; letter-spacing: 0.04em;
  padding: 4px 6px; border-bottom: 1px solid var(--border);
}
.ab2-mini-table td {
  padding: 4px 6px; border-bottom: 1px dotted var(--border);
  color: var(--text-primary);
}
.ab2-mini-table tr:last-child td { border-bottom: none; }
.ab2-mini-table a { color: var(--accent); }
.ab2-stage-pill {
  display: inline-block; padding: 1px 6px; border-radius: 3px;
  font-size: 10px; background: var(--bg-secondary); color: var(--text-primary);
  border: 1px solid var(--border);
}
.ab2-days-chip {
  display: inline-block; padding: 1px 6px; border-radius: 3px;
  font-size: 10px; background: var(--accent); color: white;
}
.ab2-chip {
  display: inline-block; padding: 1px 7px; border-radius: 999px;
  font-size: 10px; background: var(--bg-secondary); color: var(--text-muted);
  border: 1px solid var(--border); margin-right: 3px;
}
.ab2-chip-engaged { color: #0e7c46; border-color: #c7e7d3; background: #e9f7ee; }
.ab2-chip-won { color: #1e40af; border-color: #c7d6f5; background: #e8eefb; }
.ab2-chip-score { color: #7c3aed; border-color: #d9c7f5; background: #f1e8fb; }
.ab2-chip-mini {
  display: inline-block; padding: 1px 6px; border-radius: 3px;
  font-size: 9.5px; color: var(--text-muted); background: var(--bg-secondary);
  border: 1px solid var(--border); margin: 2px 2px 0 0;
}
.ab2-chip-vp { color: #92600a; border-color: #f0dcb0; background: #fbf3e2; }
.ab2-awards-action { text-align: right; white-space: nowrap; width: 1%; }
.ab2-sever-btn {
  border: 1px solid var(--border); background: var(--bg-secondary);
  color: var(--text-muted); border-radius: 4px; cursor: pointer;
  padding: 2px 7px; font-size: 11px; line-height: 1;
}
.ab2-sever-btn:hover { color: #b42318; border-color: #f0c4bf; background: #fdeceb; }
.ab2-severed-tag {
  font-size: 9.5px; color: #b42318; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.ab2-awards-severed { opacity: 0.5; text-decoration: line-through; }
.ab2-awards-severed .ab2-severed-tag { text-decoration: none; }
.ab2-coverage-fns {
  display: flex; flex-wrap: wrap; gap: 3px; align-items: center;
  margin-top: 6px; padding-top: 6px;
  border-top: 1px dotted var(--border);
}
.ab2-contact-row { padding: 6px 0; border-bottom: 1px dotted var(--border); }
.ab2-contact-meta {
  display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px;
}
.ab2-scoop-meta {
  color: var(--text-muted); font-size: 10px; margin-top: 2px;
}

@media (max-width: 768px) {
  .ab2-headline-strip { flex-direction: column; align-items: flex-start; }
  .ab2-card-wide { grid-column: span 1; }
  .ab2-plays-grid { grid-template-columns: 1fr; }
}
