/* G-Med Competitive Intelligence Dashboard — Design System
   Taste: density 8 · motion 3 · aesthetic 5
   Fonts: Cormorant Garamond (serif headings) + Outfit (sans body)
   Palette: gold / charcoal / cream */

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

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

:root {
  --gold: #B8963E;
  --gold-light: #D4B968;
  --gold-dark: #96792F;
  --gold-bg: rgba(184,150,62,0.07);
  --gold-border: rgba(184,150,62,0.18);
  --cream: #FAF9F6;
  --cream-warm: #F5F0EB;
  --charcoal: #1E1E24;
  --charcoal-light: #2A2A32;
  --charcoal-mid: #35353F;
  --white: #FFFFFF;

  --zinc-900: #18181B;
  --zinc-800: #27272A;
  --zinc-700: #3F3F46;
  --zinc-600: #52525B;
  --zinc-500: #71717A;
  --zinc-400: #A1A1AA;
  --zinc-300: #D4D4D8;
  --zinc-200: #E4E4E7;
  --zinc-100: #F4F4F5;
  --zinc-50: #FAFAFA;

  --teal: #0D9488;
  --teal-light: #CCFBF1;
  --teal-dark: #0F766E;
  --green: #16A34A;
  --green-light: #DCFCE7;
  --green-dark: #15803D;
  --red: #DC2626;
  --red-light: #FEE2E2;
  --red-dark: #991B1B;
  --blue: #3B82F6;
  --blue-light: #DBEAFE;
  --blue-dark: #1D4ED8;
  --amber: #F59E0B;
  --amber-light: #FEF3C7;
  --violet: #7C3AED;
  --violet-light: #EDE9FE;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --radius-xl: 10px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);

  --transition: 0.18s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--zinc-800);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════
   PROJECT SWITCHER (Top-level, above header)
   ═══════════════════════════════════════════ */
.project-switcher {
  background: #0F0F13;
  padding: 8px 32px;
  border-bottom: 1px solid var(--charcoal-mid);
}
.project-switcher-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ps-brand {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--zinc-400);
  letter-spacing: 0.01em;
}
.ps-brand span { color: var(--gold); font-weight: 600; }
.ps-tabs {
  display: flex;
  gap: 2px;
  background: var(--charcoal);
  padding: 3px;
  border-radius: var(--radius);
}
.ps-tabs a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--zinc-400);
  text-decoration: none;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.02em;
}
.ps-tabs a:hover { color: var(--zinc-200); background: rgba(255,255,255,0.05); }
.ps-tabs a.active {
  color: var(--charcoal);
  background: var(--gold);
  font-weight: 600;
}

/* ═══════════════════════════════════════════
   ALERT BOX (validation notices, explainers)
   ═══════════════════════════════════════════ */
.alert-box {
  max-width: 1440px;
  margin: 16px auto;
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.5;
}
.alert-box .alert-icon {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}
.alert-box .alert-body { flex: 1; }
.alert-box .alert-title {
  font-weight: 600;
  margin-bottom: 3px;
  font-size: 0.92rem;
}
.alert-box .alert-text { color: inherit; opacity: 0.92; }
.alert-warning {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.3);
  color: #92400E;
}
.alert-info {
  background: rgba(59,130,246,0.06);
  border: 1px solid rgba(59,130,246,0.2);
  color: var(--blue-dark);
}
.alert-container { padding: 0 32px; }

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.header {
  background: var(--charcoal);
  padding: 16px 32px 14px;
  border-bottom: 2px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}
.has-switcher .header { position: static; }
.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-brand {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.header-brand h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.65rem;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}
.header-brand h1 span { color: var(--gold); }
.header-brand .sep {
  width: 1px;
  height: 18px;
  background: var(--zinc-600);
  display: inline-block;
  vertical-align: middle;
}
.header-brand .page-title {
  font-size: 0.9rem;
  color: var(--zinc-400);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* NAV */
.nav {
  display: flex;
  gap: 2px;
  background: var(--charcoal-light);
  padding: 3px;
  border-radius: var(--radius);
}
.nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--zinc-400);
  text-decoration: none;
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.nav a:hover { color: var(--zinc-200); background: rgba(255,255,255,0.05); }
.nav a.active {
  color: var(--charcoal);
  background: var(--gold);
  font-weight: 600;
}

/* ═══════════════════════════════════════════
   REGION TOGGLE
   ═══════════════════════════════════════════ */
.region-bar {
  background: var(--white);
  border-bottom: 1px solid var(--zinc-200);
  padding: 8px 32px;
}
.region-bar-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.region-toggle {
  display: flex;
  gap: 2px;
  background: var(--zinc-100);
  padding: 2px;
  border-radius: var(--radius);
}
.region-toggle button {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--zinc-500);
  background: transparent;
  border: none;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.region-toggle button:hover { color: var(--zinc-700); }
.region-toggle button.active {
  background: var(--charcoal);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.region-label {
  font-size: 0.8rem;
  color: var(--zinc-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.region-scope {
  font-size: 0.85rem;
  color: var(--zinc-600);
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   CONTAINER & LAYOUT
   ═══════════════════════════════════════════ */
.container { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

.section { padding: 20px 0; }
.section-dark { background: var(--charcoal); color: var(--white); padding: 20px 0; }
.section-warm { background: var(--cream-warm); padding: 20px 0; }
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-border) 20%, var(--gold) 50%, var(--gold-border) 80%, transparent 100%);
  margin: 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px;
}
.st {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--zinc-900);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.section-dark .st { color: var(--white); }
.sd {
  color: var(--zinc-500);
  font-size: 0.85rem;
  margin-top: 1px;
  line-height: 1.3;
}
.section-dark .sd { color: var(--zinc-400); }

/* ═══════════════════════════════════════════
   KPI STRIP
   ═══════════════════════════════════════════ */
.kpi-strip {
  background: var(--white);
  border-bottom: 1px solid var(--zinc-200);
  padding: 10px 32px;
}
.kpi-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px;
}
.kpi {
  text-align: center;
  padding: 8px 6px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.kpi:hover { background: var(--cream-warm); }
.kpi .kv {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--zinc-900);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.kpi .kl {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--zinc-500);
  margin-top: 2px;
  line-height: 1.2;
}
.kpi.accent .kv { color: var(--gold-dark); }
.kpi.accent { background: var(--gold-bg); }

/* ═══════════════════════════════════════════
   GRID LAYOUTS
   ═══════════════════════════════════════════ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.grid-3-2 { display: grid; grid-template-columns: 3fr 2fr; gap: 12px; }
.span-full { grid-column: 1 / -1; }

/* ═══════════════════════════════════════════
   CARDS & BOXES
   ═══════════════════════════════════════════ */
.card {
  background: var(--white);
  border: 1px solid var(--zinc-200);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: var(--zinc-300); box-shadow: var(--shadow); }
.card-dark {
  background: var(--charcoal-light);
  border-color: var(--charcoal-mid);
}
.card-dark:hover { border-color: var(--gold-dark); }

.card h3,
.chart-box h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--zinc-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.section-dark .card h3,
.section-dark .chart-box h3 { color: var(--zinc-400); }

.chart-box {
  background: var(--white);
  border: 1px solid var(--zinc-200);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
}
.section-dark .chart-box {
  background: var(--charcoal-light);
  border-color: var(--charcoal-mid);
}
.chart-wrap { position: relative; width: 100%; }

/* ═══════════════════════════════════════════
   THREAT / COMPETITOR CARDS
   ═══════════════════════════════════════════ */
.threat-card {
  background: var(--charcoal-light);
  border: 1px solid var(--charcoal-mid);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  transition: border-color var(--transition);
}
.threat-card:hover { border-color: var(--gold-dark); }

.tier-badge {
  display: inline-block;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.tier-badge.t1 { background: var(--red); color: var(--white); }
.tier-badge.t2 { background: var(--amber); color: var(--charcoal); }
.tier-badge.t3 { background: var(--zinc-600); color: var(--white); }

.threat-card .name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.2;
}
.threat-card .meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
  margin-bottom: 10px;
}
.threat-card .mk {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--zinc-500);
}
.threat-card .mv {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--zinc-300);
  font-variant-numeric: tabular-nums;
}
.brand-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(184,150,62,0.1);
  color: var(--gold-light);
  margin: 1px 2px 1px 0;
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   ADVANTAGE CARDS
   ═══════════════════════════════════════════ */
.adv-card {
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  transition: border-color var(--transition);
}
.adv-card:hover { border-color: var(--gold); }
.adv-card h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.0rem;
  color: var(--gold-dark);
  margin-bottom: 3px;
}
.adv-card p {
  font-size: 0.85rem;
  color: var(--zinc-600);
  line-height: 1.4;
}
.adv-card .detail {
  font-size: 0.8rem;
  color: var(--zinc-400);
  margin-top: 3px;
  font-style: italic;
}

/* ═══════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════ */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--zinc-200);
  background: var(--white);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.table thead th {
  background: var(--cream-warm);
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--zinc-500);
  border-bottom: 1px solid var(--zinc-200);
  white-space: nowrap;
  position: sticky;
  top: 0;
}
.table tbody td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--zinc-100);
  vertical-align: middle;
  color: var(--zinc-700);
}
.table tbody tr:hover td { background: rgba(184,150,62,0.02); }
.table tbody tr:last-child td { border-bottom: none; }
.table.compact td, .table.compact th { padding: 4px 6px; }

/* Matrix cells */
.cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  min-width: 48px;
  text-align: center;
}
.cell.gmed { background: var(--gold); color: var(--white); }
.cell.other { background: var(--blue-light); color: var(--blue-dark); }
.cell.gap { background: var(--green-light); color: var(--green-dark); border: 1px dashed var(--green); font-size: 0.72rem; }
.cell.none { background: var(--zinc-100); color: var(--zinc-400); }
.cell.threat { background: var(--red-light); color: var(--red-dark); }

/* ═══════════════════════════════════════════
   STATUS BADGES
   ═══════════════════════════════════════════ */
.badge {
  display: inline-block;
  font-size: 0.73rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-green { background: var(--green-light); color: var(--green-dark); }
.badge-red { background: var(--red-light); color: var(--red-dark); }
.badge-amber { background: var(--amber-light); color: #92400E; }
.badge-blue { background: var(--blue-light); color: var(--blue-dark); }
.badge-gold { background: var(--gold-bg); color: var(--gold-dark); border: 1px solid var(--gold-border); }
.badge-zinc { background: var(--zinc-100); color: var(--zinc-500); }

/* ═══════════════════════════════════════════
   SEGMENT CARDS
   ═══════════════════════════════════════════ */
.seg-card {
  background: var(--white);
  border: 1px solid var(--zinc-200);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  transition: border-color var(--transition);
}
.seg-card:hover { border-color: var(--gold); }
.seg-card .seg-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--zinc-900);
  margin-bottom: 2px;
}
.seg-card .seg-desc {
  font-size: 0.8rem;
  color: var(--zinc-500);
  margin-bottom: 8px;
}
.seg-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
  font-size: 0.8rem;
}
.seg-meta dt {
  color: var(--zinc-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.73rem;
  font-weight: 500;
}
.seg-meta dd {
  color: var(--zinc-700);
  font-weight: 500;
}

/* Progress bar */
.progress {
  height: 5px;
  background: var(--zinc-100);
  border-radius: 3px;
  overflow: hidden;
  margin: 4px 0;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--gold);
  transition: width 0.4s ease;
}

/* ═══════════════════════════════════════════
   SWOT
   ═══════════════════════════════════════════ */
.swot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.swot-box {
  border-radius: var(--radius-lg);
  padding: 12px 14px;
}
.swot-box h4 {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 6px;
}
.swot-box ul {
  list-style: none;
  padding: 0;
}
.swot-box li {
  font-size: 0.85rem;
  padding: 3px 0 3px 14px;
  position: relative;
  line-height: 1.4;
}
.swot-box li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.swot-s { background: rgba(22,163,74,0.06); border: 1px solid rgba(22,163,74,0.15); }
.swot-s h4 { color: var(--green-dark); }
.swot-s li::before { background: var(--green); }
.swot-s li { color: var(--zinc-700); }

.swot-w { background: rgba(220,38,38,0.04); border: 1px solid rgba(220,38,38,0.12); }
.swot-w h4 { color: var(--red-dark); }
.swot-w li::before { background: var(--red); }
.swot-w li { color: var(--zinc-700); }

.swot-o { background: rgba(59,130,246,0.05); border: 1px solid rgba(59,130,246,0.12); }
.swot-o h4 { color: var(--blue-dark); }
.swot-o li::before { background: var(--blue); }
.swot-o li { color: var(--zinc-700); }

.swot-t { background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.15); }
.swot-t h4 { color: #92400E; }
.swot-t li::before { background: var(--amber); }
.swot-t li { color: var(--zinc-700); }

/* ═══════════════════════════════════════════
   HEATMAP
   ═══════════════════════════════════════════ */
.heatmap-cell {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--white);
  transition: transform var(--transition);
}
.heatmap-cell:hover { transform: scale(1.08); }
.heat-5 { background: var(--gold-dark); }
.heat-4 { background: var(--gold); }
.heat-3 { background: var(--gold-light); color: var(--charcoal); }
.heat-2 { background: rgba(184,150,62,0.25); color: var(--zinc-600); }
.heat-1 { background: rgba(184,150,62,0.1); color: var(--zinc-500); }
.heat-0 { background: var(--zinc-100); color: var(--zinc-300); }

/* ═══════════════════════════════════════════
   RADAR CHART CONTAINER
   ═══════════════════════════════════════════ */
.radar-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.radar-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--zinc-400);
}
.radar-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   QUESTION CARDS (Roadmap)
   ═══════════════════════════════════════════ */
.question-card {
  background: var(--white);
  border: 1px solid var(--zinc-200);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 10px 14px;
  margin-bottom: 6px;
}
.question-card p {
  font-size: 0.87rem;
  color: var(--zinc-700);
  line-height: 1.45;
}
.question-theme {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-dark);
  margin-bottom: 4px;
}

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.col-header {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.0rem;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--zinc-200);
}

/* ═══════════════════════════════════════════
   MAP
   ═══════════════════════════════════════════ */
.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--charcoal-mid);
  height: 420px;
  position: relative;
  background: var(--charcoal);
}
.map-legend {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 1000;
  background: rgba(30,30,36,0.92);
  backdrop-filter: blur(8px);
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  font-size: 0.8rem;
  color: var(--zinc-300);
}
.map-legend h4 {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 6px;
}
.legend-item { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   OBSERVATION CARDS (Roadmap)
   ═══════════════════════════════════════════ */
.obs-card {
  background: var(--white);
  border: 1px solid var(--zinc-200);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
}
.obs-card h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--zinc-900);
  margin-bottom: 6px;
}
.obs-card ul { padding-left: 14px; }
.obs-card li {
  font-size: 0.85rem;
  color: var(--zinc-600);
  line-height: 1.5;
  margin-bottom: 2px;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  background: var(--charcoal);
  padding: 12px 32px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--zinc-500);
  border-top: 1px solid var(--charcoal-mid);
}
.footer span { color: var(--gold); }

/* ═══════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════ */
.text-gold { color: var(--gold); }
.text-muted { color: var(--zinc-500); }
.text-xs { font-size: 0.8rem; }
.text-sm { font-size: 0.85rem; }
.text-serif { font-family: var(--font-serif); }
.font-600 { font-weight: 600; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

.note {
  font-size: 0.8rem;
  color: var(--zinc-400);
  font-style: italic;
  margin-top: 6px;
}
.placeholder-msg {
  background: var(--zinc-100);
  border: 1px dashed var(--zinc-300);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  color: var(--zinc-500);
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════
   TABS (Category Intel)
   ═══════════════════════════════════════════ */
.tab-bar {
  display: flex;
  gap: 2px;
  background: var(--zinc-100);
  padding: 3px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 16px;
}
.tab-btn {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--zinc-500);
  background: transparent;
  border: none;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.tab-btn:hover { color: var(--zinc-700); background: rgba(0,0,0,0.03); }
.tab-btn.active {
  background: var(--charcoal);
  color: var(--white);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.section-dark .tab-bar { background: var(--charcoal-mid); }
.section-dark .tab-btn { color: var(--zinc-400); }
.section-dark .tab-btn:hover { color: var(--zinc-200); background: rgba(255,255,255,0.05); }
.section-dark .tab-btn.active { background: var(--gold); color: var(--charcoal); }

/* ═══════════════════════════════════════════
   VERDICT BADGES
   ═══════════════════════════════════════════ */
.verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--radius);
}
.verdict-defend { background: var(--red-light); color: var(--red-dark); border: 1px solid rgba(220,38,38,0.2); }
.verdict-attack { background: var(--green-light); color: var(--green-dark); border: 1px solid rgba(22,163,74,0.2); }
.verdict-hold { background: var(--amber-light); color: #92400E; border: 1px solid rgba(245,158,11,0.2); }
.verdict-divest { background: var(--zinc-100); color: var(--zinc-500); border: 1px solid var(--zinc-200); }

/* ═══════════════════════════════════════════
   VERDICT GRID (Battle Plan)
   ═══════════════════════════════════════════ */
.verdict-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.verdict-col {
  min-width: 0;
}
.verdict-col-header {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: 6px;
}
.verdict-col-header.defend { background: var(--red-light); color: var(--red-dark); }
.verdict-col-header.attack { background: var(--green-light); color: var(--green-dark); }
.verdict-col-header.hold { background: var(--amber-light); color: #92400E; }
.verdict-col-header.divest { background: var(--zinc-100); color: var(--zinc-500); }

.verdict-item {
  background: var(--white);
  border: 1px solid var(--zinc-200);
  border-radius: var(--radius);
  padding: 8px 10px;
  margin-bottom: 6px;
  font-size: 0.85rem;
  transition: border-color var(--transition);
}
.verdict-item:hover { border-color: var(--gold); }
.verdict-item .vi-name {
  font-weight: 600;
  color: var(--zinc-800);
  font-size: 0.87rem;
  margin-bottom: 2px;
}
.verdict-item .vi-product {
  font-size: 0.78rem;
  color: var(--zinc-400);
  margin-bottom: 4px;
}
.verdict-item .vi-rationale {
  font-size: 0.78rem;
  color: var(--zinc-500);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════
   THREAT SEVERITY BAR
   ═══════════════════════════════════════════ */
.threat-row {
  display: grid;
  grid-template-columns: 24px 1fr 100px 80px;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  background: var(--white);
  border: 1px solid var(--zinc-200);
  border-radius: var(--radius);
  margin-bottom: 5px;
  transition: border-color var(--transition);
}
.threat-row:hover { border-color: var(--gold); }
.threat-row .rank {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.0rem;
  color: var(--zinc-300);
  text-align: center;
}
.threat-row .threat-info .threat-name {
  font-weight: 600;
  font-size: 0.87rem;
  color: var(--zinc-800);
  margin-bottom: 2px;
}
.threat-row .threat-info .threat-why {
  font-size: 0.78rem;
  color: var(--zinc-500);
  line-height: 1.3;
}
.severity-bar-wrap {
  height: 6px;
  background: var(--zinc-100);
  border-radius: 3px;
  overflow: hidden;
}
.severity-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}
.severity-bar-fill.critical { background: var(--red); }
.severity-bar-fill.high { background: var(--amber); }
.severity-bar-fill.medium { background: var(--blue); }
.severity-bar-fill.low { background: var(--green); }

.section-dark .threat-row { background: var(--charcoal-light); border-color: var(--charcoal-mid); }
.section-dark .threat-row:hover { border-color: var(--gold-dark); }
.section-dark .threat-row .rank { color: var(--zinc-500); }
.section-dark .threat-row .threat-name { color: var(--zinc-200); }
.section-dark .threat-row .threat-why { color: var(--zinc-400); }
.section-dark .severity-bar-wrap { background: var(--charcoal-mid); }

/* ═══════════════════════════════════════════
   HEAD-TO-HEAD COMPARISON CARDS
   ═══════════════════════════════════════════ */
.h2h-grid {
  display: grid;
  grid-template-columns: 160px 1fr 1fr;
  gap: 0;
  border: 1px solid var(--zinc-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 0.85rem;
}
.h2h-header {
  padding: 8px 10px;
  font-weight: 600;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--zinc-200);
}
.h2h-header.param { background: var(--cream-warm); color: var(--zinc-500); }
.h2h-header.gmed { background: var(--gold-bg); color: var(--gold-dark); border-left: 1px solid var(--zinc-200); }
.h2h-header.comp { background: var(--zinc-100); color: var(--zinc-500); border-left: 1px solid var(--zinc-200); }

.h2h-row {
  display: contents;
}
.h2h-cell {
  padding: 5px 10px;
  border-bottom: 1px solid var(--zinc-100);
  color: var(--zinc-700);
  display: flex;
  align-items: center;
}
.h2h-cell.param-cell {
  font-weight: 500;
  color: var(--zinc-600);
  background: var(--cream);
  font-size: 0.82rem;
}
.h2h-cell.gmed-cell {
  border-left: 1px solid var(--zinc-100);
}
.h2h-cell.comp-cell {
  border-left: 1px solid var(--zinc-100);
}
.h2h-cell.adv-gmed { background: rgba(184,150,62,0.04); }
.h2h-cell.adv-competitor { background: rgba(220,38,38,0.02); }

/* ═══════════════════════════════════════════
   OVERLAP HEATMAP (Distributor Matrix)
   ═══════════════════════════════════════════ */
.overlap-cell {
  padding: 4px 6px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  border-bottom: 1px solid var(--charcoal-mid);
}
.overlap-yes { background: rgba(22,163,74,0.15); color: var(--green); }
.overlap-no { background: transparent; color: var(--zinc-600); }
.overlap-unconfirmed { background: rgba(245,158,11,0.1); color: var(--amber); font-style: italic; }
.overlap-gmed { background: rgba(184,150,62,0.2); color: var(--gold); font-weight: 700; }

/* ═══════════════════════════════════════════
   PRIORITY / ACTION CARDS
   ═══════════════════════════════════════════ */
.action-card {
  background: var(--white);
  border: 1px solid var(--zinc-200);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  transition: border-color var(--transition);
}
.action-card:hover { border-color: var(--gold); }
.action-rank {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--zinc-200);
  text-align: center;
  line-height: 1;
  padding-top: 2px;
}
.action-body .action-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.0rem;
  color: var(--zinc-900);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.action-body .action-summary {
  font-size: 0.85rem;
  color: var(--zinc-600);
  line-height: 1.5;
  margin-bottom: 4px;
}
.action-body .action-detail {
  font-size: 0.8rem;
  color: var(--zinc-400);
  font-style: italic;
  line-height: 1.4;
}
.action-categories {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* ═══════════════════════════════════════════
   KANBAN COLUMNS (Intel Gaps)
   ═══════════════════════════════════════════ */
.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.kanban-col-header {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.kanban-col-header .count {
  background: rgba(255,255,255,0.3);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 0.72rem;
}
.kanban-col-header.p1 { background: var(--red-light); color: var(--red-dark); }
.kanban-col-header.p2 { background: var(--amber-light); color: #92400E; }
.kanban-col-header.p3 { background: var(--zinc-100); color: var(--zinc-500); }

.gap-card {
  background: var(--white);
  border: 1px solid var(--zinc-200);
  border-radius: var(--radius);
  padding: 8px 10px;
  margin-bottom: 5px;
  font-size: 0.82rem;
}
.gap-card .gap-name {
  font-weight: 600;
  color: var(--zinc-800);
  margin-bottom: 2px;
}
.gap-card .gap-category {
  font-size: 0.73rem;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  margin-bottom: 3px;
}
.gap-card .gap-impact {
  font-size: 0.78rem;
  color: var(--zinc-500);
  line-height: 1.35;
  margin-bottom: 3px;
}
.gap-card .gap-method {
  font-size: 0.76rem;
  color: var(--zinc-400);
  font-style: italic;
}

/* ═══════════════════════════════════════════
   PRICE RANGE DOT PLOT
   ═══════════════════════════════════════════ */
.price-row {
  display: grid;
  grid-template-columns: 160px 1fr 80px;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--zinc-100);
}
.price-row:last-child { border-bottom: none; }
.price-row .pr-cat {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--zinc-700);
}
.price-range-track {
  height: 8px;
  background: var(--zinc-100);
  border-radius: 4px;
  position: relative;
}
.price-range-bar {
  position: absolute;
  top: 0;
  height: 100%;
  background: var(--zinc-300);
  border-radius: 4px;
}
.price-range-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  z-index: 2;
}
.price-row .pr-savings {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: right;
}

/* ═══════════════════════════════════════════
   BUNDLE COMPARISON
   ═══════════════════════════════════════════ */
.bundle-card {
  border: 1px solid var(--zinc-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.bundle-card.gmed-bundle { border-color: var(--gold-border); }
.bundle-header {
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.85rem;
}
.bundle-card.gmed-bundle .bundle-header { background: var(--gold-bg); color: var(--gold-dark); }
.bundle-header.competitor-header { background: var(--zinc-100); color: var(--zinc-600); }
.bundle-items {
  padding: 0 14px;
}
.bundle-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid var(--zinc-100);
  font-size: 0.82rem;
  color: var(--zinc-600);
}
.bundle-item:last-child { border-bottom: none; }
.bundle-item .bi-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.bundle-total {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.92rem;
  border-top: 2px solid var(--zinc-200);
}
.bundle-card.gmed-bundle .bundle-total { border-top-color: var(--gold); color: var(--gold-dark); }

/* ═══════════════════════════════════════════
   SCALE BAR (Revenue Comparison)
   ═══════════════════════════════════════════ */
.scale-row {
  display: grid;
  grid-template-columns: 140px 1fr 80px;
  gap: 10px;
  align-items: center;
  padding: 5px 0;
}
.scale-row .sr-name { font-size: 0.85rem; font-weight: 500; color: var(--zinc-300); }
.scale-row .sr-name.gmed { color: var(--gold); font-weight: 700; }
.scale-bar-wrap {
  height: 8px;
  background: var(--charcoal-mid);
  border-radius: 4px;
  overflow: hidden;
}
.scale-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease;
  min-width: 3px;
}
.scale-bar-fill.gmed-bar { background: var(--gold); }
.scale-bar-fill.comp-bar { background: var(--zinc-500); }
.scale-row .sr-ratio { font-size: 0.78rem; color: var(--zinc-400); text-align: right; font-variant-numeric: tabular-nums; }

/* ═══════════════════════════════════════════
   MINI DISTRIBUTION HEATMAP
   ═══════════════════════════════════════════ */
.mini-heatmap {
  display: grid;
  gap: 2px;
  font-size: 0.75rem;
}
.mini-heatmap .mh-header {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--zinc-500);
  font-size: 0.72rem;
  padding: 3px 4px;
}
.mini-heatmap .mh-cell {
  padding: 3px 4px;
  border-radius: 2px;
  text-align: center;
  font-weight: 500;
}
.mh-gmed { background: rgba(184,150,62,0.15); color: var(--gold-dark); }
.mh-competitor { background: rgba(220,38,38,0.08); color: var(--red); }
.mh-none { background: var(--zinc-50); color: var(--zinc-300); }

/* ═══════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--zinc-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--zinc-400); }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .grid-2, .grid-3, .grid-4, .grid-2-1, .grid-1-2, .grid-3-2, .two-col, .swot-grid { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .container, .header, .kpi-strip, .region-bar, .footer { padding-left: 16px; padding-right: 16px; }
  .verdict-columns { grid-template-columns: repeat(2, 1fr); }
  .kanban { grid-template-columns: 1fr; }
  .h2h-grid { grid-template-columns: 120px 1fr 1fr; }
  .threat-row { grid-template-columns: 24px 1fr 80px 70px; }
  .action-card { grid-template-columns: 24px 1fr; }
}
@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 8px; align-items: flex-start; }
  .nav { flex-wrap: wrap; }
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .verdict-columns { grid-template-columns: 1fr; }
  .h2h-grid { grid-template-columns: 100px 1fr 1fr; font-size: 0.8rem; }
  .threat-row { grid-template-columns: 20px 1fr 70px; }
  .threat-row .severity-label { display: none; }
  .price-row { grid-template-columns: 120px 1fr 60px; }
  .scale-row { grid-template-columns: 100px 1fr 60px; }
  .tab-bar { gap: 1px; }
  .tab-btn { padding: 5px 10px; font-size: 0.75rem; }
}
@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .h2h-grid { grid-template-columns: 80px 1fr 1fr; font-size: 0.75rem; }
}
