/* ═══════════════════════════════════════════════════════════════════════
   CC-86: Syntropy Design System v1 — Deterministic Rendering CSS
   Source of truth: frameworks/Syntropy_Design_System_v1.md
   Fonts: DM Sans (body) + DM Serif Display (titles)
   All classes scoped under .cio-profile to avoid dashboard conflicts.
   ═══════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display&display=swap');

.cio-profile {
  /* ── 1.1 Backgrounds ── */
  --bg-primary: #0c1117;
  --bg-card: #141b24;
  --bg-card-alt: #1a2332;
  --bg-accent: #1e2a3a;
  /* ── 1.2 Borders ── */
  --border-subtle: #1e2a3a;
  --border-accent: #2a3a4e;
  /* ── 1.3 Text ── */
  --text-primary: #e8ecf1;
  --text-secondary: #8b98a8;
  --text-muted: #5a6778;
  /* ── 1.4 Accent Colors ── */
  --accent-green: #34d399;
  --accent-green-dim: rgba(52, 211, 153, 0.12);
  --accent-blue: #60a5fa;
  --accent-blue-dim: rgba(96, 165, 250, 0.12);
  --accent-amber: #fbbf24;
  --accent-amber-dim: rgba(251, 191, 36, 0.12);
  --accent-red: #f87171;
  --accent-red-dim: rgba(248, 113, 113, 0.12);
  --accent-purple: #a78bfa;
  --accent-purple-dim: rgba(167, 139, 250, 0.12);
  --accent-cyan: #22d3ee;
  --accent-cyan-dim: rgba(34, 211, 238, 0.12);
  --accent-teal: #2dd4bf;
  --accent-teal-dim: rgba(45, 212, 191, 0.12);
  --accent-orange: #fb923c;
  --accent-orange-dim: rgba(251, 146, 60, 0.12);
  --accent-rose: #fb7185;
  --accent-rose-dim: rgba(251, 113, 133, 0.12);
  --accent-emerald: #10b981;
  --accent-emerald-dim: rgba(16, 185, 129, 0.12);
  /* ── 2.1 Typography tokens ── */
  --type-xs: 10px;
  --type-sm: 11px;
  --type-caption: 12px;
  --type-body-sm: 13px;
  --type-body: 14px;
  --type-body-lg: 15px;
  --type-card-title: 16px;
  --type-sub-heading: 18px;
  --type-section-title: 20px;
  --type-headline: 22px;
  --type-page-title: 28px;
  --type-ticker: 36px;
  /* ── 3.1 Spacing ── */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-base: 16px;
  --space-lg: 20px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 40px;
  --space-4xl: 48px;
  /* ── Section accent (set per-section via inline style) ── */
  --section-accent: var(--accent-cyan);
  /* ── Backward-compat aliases for inline styles in renderers ── */
  --text-p: var(--text-primary);
  --text-s: var(--text-secondary);
  --text-t: var(--text-muted);
  --bdr: var(--border-accent);
  --bdr-light: var(--border-subtle);
  --bg-s: var(--bg-card);
  --bg-warm: var(--bg-accent);
  --rule: var(--border-accent);
  --positive: var(--accent-green);
  --negative: var(--accent-red);
  --caution: var(--accent-amber);
  /* Chart palette aliases */
  --chart-bg: var(--bg-card);
  --chart-grid: var(--border-subtle);
  --chart-text: var(--text-secondary);
  --chart-label: var(--text-primary);
  --chart-accent1: var(--accent-blue);
  --chart-accent2: var(--accent-green);
  --chart-accent3: var(--accent-purple);
  --chart-accent4: var(--accent-cyan);
  --chart-accent5: var(--accent-amber);
  --chart-accent6: var(--accent-orange);
}

/* ═══ Base ═══ */
.cio-profile {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-primary);
  font-size: var(--type-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background: transparent;
  padding: var(--space-3xl) var(--space-2xl);
  max-width: 760px;
}
.cio-profile * { box-sizing: border-box; }

/* ═══ 4.1 Section Header ═══ */
.cio-profile .sect-num {
  font-size: var(--type-sm);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--section-accent);
  margin: var(--space-2xl) 0 var(--space-sm);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}
.cio-profile .sect-num:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.cio-profile .sect-title {
  font-family: 'DM Serif Display', serif;
  font-size: var(--type-page-title);
  font-weight: 400;
  color: var(--text-primary);
  margin: 0 0 var(--space-md);
  line-height: 1.4;
}
.cio-profile .sect-sub {
  font-size: var(--type-body-lg);
  color: var(--text-secondary);
  margin: 0 0 var(--space-xl);
  max-width: 800px;
  line-height: 1.7;
}

/* ═══ 4.2 Content Section Title ═══ */
.cio-profile .h3 {
  font-family: 'DM Serif Display', serif;
  font-size: var(--type-section-title);
  font-weight: 400;
  color: var(--text-primary);
  margin: var(--space-2xl) 0 6px;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  line-height: 1.4;
}
.cio-profile .h3:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.cio-profile .h3-sub {
  font-size: var(--type-caption);
  color: var(--text-muted);
  margin: 0 0 var(--space-lg);
  font-style: italic;
}

/* ═══ 4.3 Cards (Standard) ═══ */
.cio-profile .card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-base);
  font-size: var(--type-body);
  color: var(--text-secondary);
  line-height: 1.7;
}
.cio-profile .card:last-child { margin-bottom: 0; }
.cio-profile .card > ul { margin: 10px 0 12px 24px; list-style-type: disc; }
.cio-profile .card li { margin-bottom: 6px; font-size: var(--type-body-sm); line-height: 1.65; }
.cio-profile .card-header { display: flex; justify-content: space-between; align-items: center; margin: 0 0 var(--space-md); flex-wrap: wrap; gap: var(--space-sm); }
.cio-profile .card-name {
  font-size: var(--type-card-title);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  color: var(--text-primary);
}

/* ═══ 4.4 Featured / Verdict Cards — Stance & Verdict ═══ */
.cio-profile .stance, .cio-profile .verdict {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
  border: 1px solid var(--border-accent);
  border-left: 4px solid var(--section-accent);
  border-radius: 10px;
  padding: var(--space-xl) 28px;
  margin: 0 0 var(--space-2xl);
}
.cio-profile .verdict { margin: var(--space-2xl) 0 0; }
.cio-profile .stance-header { display: flex; align-items: center; gap: var(--space-sm); margin: 0 0 var(--space-base); flex-wrap: wrap; }
.cio-profile .stance-label {
  font-size: var(--type-xs);
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.cio-profile .stance p, .cio-profile .verdict p {
  font-size: var(--type-body-lg);
  line-height: 1.8;
  margin: 0 0 var(--space-md);
  color: var(--text-primary);
}
.cio-profile .stance p:last-child, .cio-profile .verdict p:last-child { margin: 0; }
.cio-profile .stance p strong, .cio-profile .verdict p strong { color: var(--text-primary); font-weight: 600; }

/* ═══ 4.5 Badges ═══ */
.cio-profile .badge {
  display: inline-block;
  font-size: var(--type-xs);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 4px;
  white-space: nowrap;
}
.cio-profile .bg { background: var(--accent-green-dim); color: var(--accent-green); }
.cio-profile .ba { background: var(--accent-amber-dim); color: var(--accent-amber); }
.cio-profile .br { background: var(--accent-red-dim); color: var(--accent-red); }
.cio-profile .bb { background: var(--accent-blue-dim); color: var(--accent-blue); }
.cio-profile .bv, .cio-profile .bt { background: var(--accent-purple-dim); color: var(--accent-purple); }

/* ═══ 4.6 Callout / Lead Box ═══ */
.cio-profile .lead {
  background: var(--bg-accent);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0 8px 8px 0;
  padding: var(--space-base) var(--space-lg);
  margin: 0 0 var(--space-lg);
}
.cio-profile .lead p { font-size: var(--type-body-sm); line-height: 1.65; color: var(--text-secondary); margin: 0; }
.cio-profile .lead p strong { color: var(--text-primary); font-weight: 600; }
.cio-profile .lead-caution, .cio-profile .lead-a { border-left-color: var(--accent-amber); }
.cio-profile .lead-risk, .cio-profile .lead-r { border-left-color: var(--accent-red); }

/* ═══ 4.7 Body Text ═══ */
.cio-profile .body { font-size: var(--type-body); color: var(--text-secondary); line-height: 1.7; margin: 0 0 var(--space-base); }
.cio-profile .body:last-child { margin: 0; }
.cio-profile .body strong { color: var(--text-primary); font-weight: 600; }
.cio-profile .body ul { margin: 10px 0 12px 24px; list-style-type: disc; }
.cio-profile .body li { margin-bottom: 6px; font-size: var(--type-body-sm); color: var(--text-secondary); line-height: 1.65; }
.cio-profile .body li strong { color: var(--text-primary); }
.cio-profile ul { font-size: var(--type-body-sm); color: var(--text-secondary); line-height: 1.65; margin: 10px 0 12px 24px; list-style-type: disc; }
.cio-profile li { margin-bottom: 6px; }
.cio-profile li strong { color: var(--text-primary); }
.cio-profile .th { color: var(--text-primary); font-weight: 600; }
.cio-profile .src { font-size: var(--type-sm); color: var(--text-muted); font-style: italic; }
.cio-profile .trans { font-size: var(--type-body-sm); color: var(--text-muted); font-style: italic; margin: var(--space-xl) 0; line-height: 1.65; }
.cio-profile .xref {
  font-size: var(--type-sm);
  color: var(--text-muted);
  padding: 5px 10px;
  background: var(--bg-card);
  border-radius: 4px;
  display: inline-block;
  margin: 0 0 var(--space-base);
}

/* ═══ Insight — line separators, NOT background fills (Rule #9) ═══ */
.cio-profile .insight {
  padding: var(--space-base) 0;
  margin: var(--space-base) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.cio-profile .insight p { font-size: var(--type-body-sm); color: var(--text-secondary); line-height: 1.65; margin: 0; }
.cio-profile .insight p strong, .cio-profile .insight .th { color: var(--text-primary); font-weight: 600; }

/* ═══ Sub-boxes INSIDE cards — VM uses line separator, NOT background (Rule #9) ═══ */
.cio-profile .vm {
  margin-top: var(--space-md);
  padding: var(--space-md) 0 0;
  border-top: 1px solid var(--border-subtle);
  font-size: var(--type-body-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}
.cio-profile .vm-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: 1px;
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
}

/* Caveat — line separator + left border, NOT background (Rule #9) */
.cio-profile .cav {
  margin-top: 10px;
  padding: 10px 0 0 var(--space-base);
  border-top: 1px solid var(--border-subtle);
  border-left: 2px solid var(--text-muted);
  font-size: var(--type-body-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}
.cio-profile .cav ul { margin: 6px 0 6px 20px; list-style-type: disc; font-size: var(--type-body-sm); }
.cio-profile .cav li { margin-bottom: 5px; line-height: 1.6; }
.cio-profile .cav li strong { color: var(--text-primary); }
.cio-profile .cav-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
}

/* ═══ 4.8 Bullet Points ═══ */
.cio-profile .bullet {
  font-size: var(--type-body-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 6px;
  padding-left: var(--space-base);
  position: relative;
}
.cio-profile .bullet::before { content: '\2022'; position: absolute; left: 0; color: var(--text-muted); font-weight: 700; }

/* ═══ 4.9 Tables ═══ */
.cio-profile table.t { width: 100%; border-collapse: collapse; font-size: var(--type-body-sm); margin: var(--space-lg) 0; }
.cio-profile table.t th {
  text-align: left;
  font-size: var(--type-sm);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px var(--type-body);
  border-bottom: 1px solid var(--border-accent);
}
.cio-profile table.t td {
  font-size: var(--type-body);
  color: var(--text-secondary);
  padding: var(--type-body);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
  line-height: 1.65;
}
.cio-profile table.t tr:last-child td { border-bottom: none; }
.cio-profile table.t td:first-child { font-weight: 500; color: var(--text-primary); }

/* ═══ 4.10 Footer ═══ */
.cio-profile .doc-footer {
  margin-top: var(--space-4xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--type-caption);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══ 4.11 Training Context + CC-93 Data Vintage ═══ */
.cio-profile .training-context { color: #60A5FA; font-style: italic; border-bottom: 1px dotted #60A5FA40; cursor: help; transition: border-color 0.2s ease; }
.cio-profile .training-context:hover { border-bottom-color: #60A5FA; }
.cio-profile .data-stale { color: #F59E0B; }
.cio-profile .data-stale-tag { font-size: 9px; color: #F59E0B; cursor: help; margin-left: 2px; vertical-align: super; }
.cio-profile .data-estimated { color: #60A5FA; font-style: italic; }
.cio-profile .data-estimated-tag { font-size: 9px; color: #60A5FA; margin-left: 4px; }

/* ═══ 4.12 Section Divider ═══ */
.cio-profile hr, .cio-profile .section-divider { border: none; border-top: 1px solid var(--border-subtle); margin: var(--space-2xl) 0; }

/* ═══ Metric Grids ═══ */
.cio-profile .g2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-base); margin: var(--space-xl) 0; }
.cio-profile .g3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-base); margin: var(--space-xl) 0; }
.cio-profile .g4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: var(--space-md); margin: var(--space-lg) 0; }
.cio-profile .met { padding: var(--space-base); background: var(--bg-card); border-radius: 8px; }
.cio-profile .met-label {
  font-size: var(--type-xs);
  color: var(--text-muted);
  letter-spacing: 1px;
  font-weight: 600;
  margin: 0 0 6px;
  text-transform: uppercase;
}
.cio-profile .met-val {
  font-size: var(--type-headline);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.cio-profile .met-sub { font-size: var(--type-caption); color: var(--text-secondary); margin-top: 4px; }

/* ═══ Proof Cards (MOAT) ═══ */
.cio-profile .proof {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-md);
}
.cio-profile .proof:last-child { margin-bottom: 0; }
.cio-profile .proof-top { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 var(--space-sm); }
.cio-profile .proof-label { font-size: var(--type-xs); color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.cio-profile .proof-signal { font-size: var(--type-xs); font-weight: 600; }
.cio-profile .proof-val { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: var(--space-xs); }
.cio-profile .proof-detail { font-size: var(--type-sm); color: var(--text-secondary); }
.cio-profile .proof-why {
  font-size: var(--type-body-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

/* ═══ Pills ═══ */
.cio-profile .pill {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  display: inline-block;
  text-transform: uppercase;
}
.cio-profile .pw, .cio-profile .pp { background: var(--accent-green-dim); color: var(--accent-green); }
.cio-profile .ps { background: var(--accent-blue-dim); color: var(--accent-blue); }
.cio-profile .pn, .cio-profile .pneg { background: var(--accent-red-dim); color: var(--accent-red); }
.cio-profile .pa { background: var(--accent-amber-dim); color: var(--accent-amber); }
.cio-profile .pv, .cio-profile .pt { background: var(--accent-purple-dim); color: var(--accent-purple); }

/* ═══ Group Labels ═══ */
.cio-profile .grp {
  font-size: var(--type-sm);
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin: var(--space-2xl) 0 var(--space-base);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-accent);
  text-transform: uppercase;
}

/* ═══ Risk / Erosion Cards ═══ */
.cio-profile .erosion, .cio-profile .e-risk, .cio-profile .risk {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-md);
}
.cio-profile .erosion:last-child, .cio-profile .e-risk:last-child, .cio-profile .risk:last-child { margin-bottom: 0; }
.cio-profile .eh, .cio-profile .rh { border-left: 4px solid var(--accent-red); }
.cio-profile .em, .cio-profile .rm { border-left: 4px solid var(--accent-amber); }
.cio-profile .el, .cio-profile .rl { border-left: 4px solid var(--accent-green); }
.cio-profile .e-top, .cio-profile .r-top, .cio-profile .risk-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-sm); margin: 0 0 10px; }
.cio-profile .e-name, .cio-profile .r-name, .cio-profile .risk-name { font-size: var(--type-card-title); font-weight: 600; color: var(--text-primary); }
.cio-profile .r-rating, .cio-profile .risk-rating, .cio-profile .e-risk { font-size: var(--type-sm); font-weight: 600; letter-spacing: 0.5px; }
.cio-profile .e-just, .cio-profile .j-box {
  margin-top: var(--space-md);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border-subtle);
  font-size: var(--type-body-sm);
}
.cio-profile .j-row { display: flex; gap: var(--space-md); line-height: 1.65; margin-bottom: 6px; font-size: var(--type-body-sm); }
.cio-profile .j-row:last-child { margin-bottom: 0; }
.cio-profile .j-label { font-weight: 700; color: var(--text-muted); min-width: 80px; font-size: var(--type-xs); letter-spacing: 1px; flex-shrink: 0; padding-top: 2px; text-transform: uppercase; }
.cio-profile .j-val { color: var(--text-secondary); }

/* ═══ Flywheel / Flows ═══ */
.cio-profile .flow { display: flex; align-items: center; gap: var(--space-sm); margin: 6px 0; font-size: var(--type-caption); flex-wrap: wrap; }
.cio-profile .flow-from { padding: var(--space-xs) 10px; border: 1px solid var(--border-subtle); border-radius: 4px; font-weight: 500; background: var(--bg-card); }
.cio-profile .flow-arr { color: var(--text-muted); font-weight: 600; }
.cio-profile .flow-to { padding: var(--space-xs) 10px; border: 1px solid var(--border-subtle); border-radius: 4px; background: var(--bg-card); }
.cio-profile .loop {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-md);
}
.cio-profile .loop:last-child { margin-bottom: 0; }
.cio-profile .loop-a { font-size: var(--type-card-title); font-weight: 600; margin: 0 0 var(--space-sm); color: var(--text-primary); }
.cio-profile .loop-s { font-size: var(--type-body); color: var(--text-secondary); line-height: 1.7; }

/* ═══ Inflection Driver Cards ═══ */
.cio-profile .drv {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-md);
}
.cio-profile .drv:last-child { margin-bottom: 0; }
.cio-profile .drv > ul { margin: 10px 0 12px 24px; list-style-type: disc; }
.cio-profile .drv li { margin-bottom: 6px; font-size: var(--type-body-sm); line-height: 1.65; }
.cio-profile .drv-header { display: flex; justify-content: space-between; align-items: center; margin: 0 0 var(--space-md); flex-wrap: wrap; gap: var(--space-sm); }
.cio-profile .drv-name { font-size: var(--type-card-title); font-weight: 600; display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; color: var(--text-primary); }
.cio-profile .drv-detail { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: var(--space-md); margin: var(--space-base) 0; }
.cio-profile .drv-d { padding: var(--space-md) 0; border-bottom: 1px solid var(--border-subtle); }
.cio-profile .drv-d-label { font-size: var(--type-xs); color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.cio-profile .drv-d-val { font-size: var(--type-body-sm); font-weight: 600; margin-top: var(--space-xs); color: var(--text-primary); }

/* ═══ Pricing / Evidence Box ═══ */
.cio-profile .pricing-box {
  margin-top: var(--space-md);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border-subtle);
  font-size: var(--type-body-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}
.cio-profile .pricing-box ul { margin: var(--space-sm) 0 var(--space-sm) 20px; list-style-type: disc; font-size: var(--type-body-sm); }
.cio-profile .pricing-box li { margin-bottom: 6px; line-height: 1.6; }
.cio-profile .pricing-box li strong { color: var(--text-primary); }
.cio-profile .pricing-label { font-size: var(--type-xs); font-weight: 700; color: var(--text-primary); letter-spacing: 1px; margin-bottom: var(--space-sm); text-transform: uppercase; }

/* ═══ Catalyst Cards ═══ */
.cio-profile .cat {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-md);
}
.cio-profile .cat:last-child { margin-bottom: 0; }
.cio-profile .cat-pos { border-left: 4px solid var(--accent-green); }
.cio-profile .cat-neg { border-left: 4px solid var(--accent-red); }
.cio-profile .cat-neut { border-left: 4px solid var(--accent-amber); }
.cio-profile .cat-header { display: flex; justify-content: space-between; align-items: center; margin: 0 0 10px; flex-wrap: wrap; gap: var(--space-sm); }
.cio-profile .cat-name { font-size: var(--type-body-lg); font-weight: 600; color: var(--text-primary); }
.cio-profile .cat-timing { font-size: var(--type-sm); color: var(--text-muted); font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }

/* ═══ Growth Section Boxes ═══ */
.cio-profile .fwd-box {
  margin-top: var(--space-md);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border-subtle);
  font-size: var(--type-body);
  color: var(--text-secondary);
  line-height: 1.7;
}
.cio-profile .fwd-box ul { margin: 6px 0 6px 20px; list-style-type: disc; font-size: var(--type-body-sm); }
.cio-profile .fwd-box li { margin-bottom: 5px; line-height: 1.65; }
.cio-profile .fwd-box li strong { color: var(--text-primary); }
.cio-profile .fwd-label { font-size: var(--type-xs); font-weight: 700; color: var(--text-primary); letter-spacing: 1px; margin-bottom: var(--space-sm); text-transform: uppercase; }
.cio-profile .mgmt-box {
  margin-top: var(--space-md);
  padding: var(--space-md) 0 var(--space-md) var(--space-base);
  border-top: 1px solid var(--border-subtle);
  border-left: 2px solid var(--text-muted);
  font-size: var(--type-body-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}
.cio-profile .mgmt-label { font-size: var(--type-xs); font-weight: 700; color: var(--text-primary); letter-spacing: 1px; margin-bottom: 6px; text-transform: uppercase; }
.cio-profile .tam-box {
  margin-top: var(--space-md);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border-subtle);
  font-size: var(--type-body-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}
.cio-profile .tam-label { font-size: var(--type-xs); font-weight: 700; color: var(--text-muted); letter-spacing: 1px; margin-bottom: 6px; text-transform: uppercase; }

/* ═══ Optionality Section ═══ */
.cio-profile .opt {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: var(--space-xl) var(--space-xl);
  margin-bottom: var(--space-md);
}
.cio-profile .opt:last-child { margin-bottom: 0; }
.cio-profile .opt > ul { margin: 10px 0 12px 24px; list-style-type: disc; }
.cio-profile .opt li { margin-bottom: 6px; font-size: var(--type-body-sm); line-height: 1.65; }
.cio-profile .opt-header { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 var(--space-md); flex-wrap: wrap; gap: var(--space-sm); }
.cio-profile .opt-name { font-family: 'DM Serif Display', serif; font-size: var(--type-sub-heading); font-weight: 400; color: var(--text-primary); }
.cio-profile .opt-val { font-size: var(--type-caption); font-weight: 600; color: var(--text-secondary); letter-spacing: 0.5px; }
.cio-profile .opt-detail { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: var(--space-md); margin: var(--space-base) 0; }
.cio-profile .opt-d { padding: var(--space-md) 0; border-bottom: 1px solid var(--border-subtle); }
.cio-profile .opt-d-label { font-size: var(--type-xs); color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.cio-profile .opt-d-val { font-size: var(--type-body); font-weight: 600; margin-top: 5px; color: var(--text-primary); }
.cio-profile .trigger-box {
  margin-top: var(--space-md);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border-subtle);
  font-size: var(--type-body-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}
.cio-profile .trigger-box ul { margin: 6px 0 6px 20px; list-style-type: disc; font-size: var(--type-body-sm); }
.cio-profile .trigger-box li { margin-bottom: 6px; line-height: 1.65; }
.cio-profile .trigger-box li strong { color: var(--text-primary); }
.cio-profile .trigger-label { font-size: var(--type-xs); font-weight: 700; color: var(--text-primary); letter-spacing: 1px; margin-bottom: var(--space-sm); text-transform: uppercase; }
.cio-profile .hidden-box {
  margin-top: var(--space-md);
  padding: var(--space-md) 0 var(--space-md) var(--space-base);
  border-top: 1px solid var(--border-subtle);
  border-left: 2px solid var(--text-muted);
  font-size: var(--type-body-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}
.cio-profile .hidden-label { font-size: var(--type-xs); font-weight: 700; color: var(--text-muted); letter-spacing: 1px; margin-bottom: 6px; text-transform: uppercase; }

/* ═══ Monitor Signals ═══ */
.cio-profile .mon {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border-subtle);
}
.cio-profile .mon:last-child { border-bottom: none; }
.cio-profile .mon-num { font-family: 'DM Serif Display', serif; font-size: var(--type-sub-heading); font-weight: 400; color: var(--text-primary); min-width: 26px; }
.cio-profile .mon-sig { font-size: var(--type-body-lg); font-weight: 600; margin: 0 0 6px; color: var(--text-primary); }
.cio-profile .mon-det { font-size: var(--type-body-sm); color: var(--text-secondary); line-height: 1.65; }
.cio-profile .mon-cur { margin-top: 10px; font-size: var(--type-caption); display: flex; gap: 5px; flex-wrap: wrap; }
.cio-profile .cl { color: var(--text-muted); }
.cio-profile .cv { font-weight: 600; color: var(--text-primary); }
.cio-profile .ct { color: var(--text-muted); font-style: italic; }
.cio-profile .mon-track {
  margin-top: 10px;
  padding: 10px var(--space-md);
  background: var(--bg-card);
  border-radius: 4px;
  font-size: var(--type-sm);
  color: var(--text-secondary);
  line-height: 1.55;
}
.cio-profile .tl { font-weight: 700; color: var(--text-primary); font-size: var(--type-xs); letter-spacing: 1px; margin-bottom: var(--space-xs); text-transform: uppercase; }

/* ═══ Chart.js Containers ═══ */
.cio-profile .chart-wrap {
  margin: var(--space-xl) 0;
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}
.cio-profile .chart-title { font-size: var(--type-caption); font-weight: 600; color: var(--text-secondary); margin: 0 0 2px; }
.cio-profile .chart-subtitle { font-size: var(--type-sm); color: var(--text-muted); margin: 0 0 var(--space-md); }
.cio-profile .chart-source { font-size: var(--type-xs); color: var(--text-muted); font-style: italic; margin-top: 10px; }
.cio-profile canvas { display: block; width: 100%; }

/* ═══ Heat Grid (status matrix) ═══ */
.cio-profile .heat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); margin: var(--space-md) 0; }
.cio-profile .heat-cell { padding: var(--space-md) var(--space-base); background: var(--bg-card); border-radius: 8px; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--border-subtle); }
.cio-profile .heat-label { font-size: var(--type-body-sm); font-weight: 500; color: var(--text-primary); }
.cio-profile .heat-status { font-size: var(--type-xs); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 3px 10px; border-radius: 4px; }
.cio-profile .heat-safe, .cio-profile .heat-low { background: var(--accent-green-dim); color: var(--accent-green); }
.cio-profile .heat-watch, .cio-profile .heat-medium, .cio-profile .heat-moderate { background: var(--accent-amber-dim); color: var(--accent-amber); }
.cio-profile .heat-exposed, .cio-profile .heat-high { background: var(--accent-red-dim); color: var(--accent-red); }

/* ═══ Timeline (catalyst timeline) ═══ */
.cio-profile .timeline { margin: var(--space-base) 0; }
.cio-profile .tl-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-base);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-subtle);
}
.cio-profile .tl-row:last-child { border-bottom: none; }
.cio-profile .tl-date { font-size: var(--type-sm); font-weight: 600; color: var(--text-muted); min-width: 80px; text-transform: uppercase; letter-spacing: 0.5px; padding-top: 2px; }
.cio-profile .tl-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.cio-profile .tl-dot-pos { background: var(--accent-green); }
.cio-profile .tl-dot-neg { background: var(--accent-red); }
.cio-profile .tl-dot-neut { background: var(--accent-amber); }
.cio-profile .tl-content { flex: 1; }
.cio-profile .tl-label { font-size: var(--type-body-sm); font-weight: 500; color: var(--text-primary); margin-bottom: 2px; }
.cio-profile .tl-detail { font-size: var(--type-caption); color: var(--text-secondary); }

/* ═══ Responsive ═══ */
@media (max-width: 800px) {
  .cio-profile .g2, .cio-profile .g4, .cio-profile .heat-grid { grid-template-columns: 1fr; }
  .cio-profile .g3, .cio-profile .drv-detail, .cio-profile .opt-detail { grid-template-columns: 1fr 1fr; }
  .cio-profile table.t { display: block; overflow-x: auto; }
}
