/* ── Root Variables ─────────────────────────────────────────────── */
:root {
  --cwn-orange: #FF6200;
  --cwn-orange-dim: rgba(255, 98, 0, 0.08);
  --cwn-orange-glow: rgba(255, 98, 0, 0.15);
  --ink: #ffffff;
  --ink-2: #f5f7fa;
  --ink-3: #e8ecf1;
  --surface: #f0f3f7;
  --border: #e0e0e0;
  --border-bright: rgba(255, 98, 0, 0.2);
  --green: #10b981;
  --green-dim: rgba(16, 185, 129, 0.08);
  --green-glow: rgba(16, 185, 129, 0.12);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.08);
  --red-glow: rgba(239, 68, 68, 0.12);
  --text: #1a2332;
  --text-muted: #667a8c;
  --text-dim: #999999;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --display: 'Orbitron', 'JetBrains Mono', monospace;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --dark-surface: #0f1218;
  --dark-surface-2: rgba(255,255,255,0.03);
  --dark-surface-3: rgba(255,255,255,0.06);
  --dark-border: rgba(255,98,0,0.15);
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--text);
  background-color: var(--ink);
  background-image:
    /* Isometric grid: 60-degree diagonals */
    repeating-linear-gradient(60deg, transparent, transparent 80px, rgba(232, 236, 241, 0.3) 80px, rgba(232, 236, 241, 0.3) 82px),
    repeating-linear-gradient(-60deg, transparent, transparent 80px, rgba(232, 236, 241, 0.3) 80px, rgba(232, 236, 241, 0.3) 82px),
    /* Orthogonal grid: horizontal/vertical */
    repeating-linear-gradient(0deg, #e8ecf1 0px, #e8ecf1 1px, transparent 1px, transparent 48px),
    repeating-linear-gradient(90deg, #e8ecf1 0px, #e8ecf1 1px, transparent 1px, transparent 48px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--cwn-orange); border-radius: 3px; }

/* ── Technical Schematic Elements ────────────────────────────────── */
.wrap::before {
  content: ''; position: fixed; top: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(180deg, rgba(255, 98, 0, 0.02) 0%, transparent 100%);
  pointer-events: none; z-index: -1;
}

/* Corner accent lines (blueprint aesthetic) */
.wrap::after {
  content: '';  position: fixed; top: 0; left: 0; width: 30px; height: 30px;
  border: 1px solid rgba(255, 98, 0, 0.15); border-right: none; border-bottom: none;
  pointer-events: none; z-index: -1;
}

/* ── Typography & Layout ─────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--display); letter-spacing: 0.05em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 24px 28px; }

/* ── Top Bar ─────────────────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--border);
  animation: fadeInDown 0.6s ease both;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  font-family: var(--display); font-size: 18px; font-weight: 900;
  color: var(--cwn-orange); letter-spacing: 0.12em;
  text-shadow: none;
}
.brand-sep { color: var(--text-muted); }
.brand-sub { font-size: 10px; color: var(--text-muted); letter-spacing: 0.18em; text-transform: uppercase; }
.topbar-links { display: flex; align-items: center; gap: 10px; }
.status-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 10px var(--green-glow);
  animation: blink 2.2s infinite;
}
.status-label { font-size: 10px; color: var(--text-muted); letter-spacing: 0.15em; margin-right: 4px; }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero { padding: 36px 0 24px; animation: fadeInUp 0.8s ease 0.15s both; }
.hero-eyebrow {
  font-size: 10px; letter-spacing: 0.35em; color: var(--cwn-orange);
  text-transform: uppercase; margin-bottom: 14px; opacity: 0.8;
}
.hero h1 { font-size: clamp(22px, 3.5vw, 40px); color: #000; line-height: 1.1; margin-bottom: 12px; font-weight: 900; }
.hero h1 span { color: var(--cwn-orange); }
.hero-sub { font-size: 12px; color: var(--text-muted); max-width: 58ch; line-height: 1.8; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 6px;
  border: 1px solid var(--border-bright); background: var(--cwn-orange-dim);
  color: var(--cwn-orange); font-family: var(--mono); font-size: 12px;
  font-weight: 600; letter-spacing: 0.08em; cursor: pointer;
  transition: all 0.2s ease; text-decoration: none;
}
.btn:hover {
  background: var(--cwn-orange); color: #000;
  box-shadow: 0 0 28px var(--cwn-orange-glow); transform: translateY(-1px);
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.ghost {
  background: transparent; border-color: var(--border);
  color: var(--text-muted); font-size: 11px; padding: 7px 13px;
}
.btn.ghost:hover {
  border-color: var(--cwn-orange); color: var(--cwn-orange);
  background: var(--cwn-orange-dim); box-shadow: none; transform: none;
}
.btn-icon { font-size: 14px; }
.demo-trigger {
  display: flex; align-items: center; gap: 16px; margin: 20px 0 28px;
  animation: fadeInUp 0.8s ease 0.3s both;
}
.demo-hint { font-size: 11px; color: var(--text-muted); letter-spacing: 0.05em; }

/* ── Pipeline Section ────────────────────────────────────────────── */
.pipeline-section { margin-bottom: 28px; }
.pipeline-title {
  font-size: 10px; letter-spacing: 0.3em; color: var(--text-muted);
  text-transform: uppercase; margin-bottom: 16px;
}
.pipeline-lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── Lanes ───────────────────────────────────────────────────────── */
.lane {
  background: var(--ink-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 16px; position: relative;
  overflow: hidden; transition: border-color 0.5s ease, box-shadow 0.5s ease;
}
.lane::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,98,0,0.03), transparent 55%);
  pointer-events: none;
}
.deny-lane { --lane-color: var(--red); --lane-glow: var(--red-glow); --lane-dim: var(--red-dim); }
.allow-lane { --lane-color: var(--green); --lane-glow: var(--green-glow); --lane-dim: var(--green-dim); }
.deny-lane.active { border-color: rgba(255,51,102,0.3); box-shadow: 0 0 30px rgba(255,51,102,0.05); }
.allow-lane.active { border-color: rgba(0,232,138,0.3); box-shadow: 0 0 30px rgba(0,232,138,0.05); }
.lane-label {
  font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.lane-label::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--lane-color); box-shadow: 0 0 8px var(--lane-glow);
  flex-shrink: 0;
}

/* ── Pipeline Flow ───────────────────────────────────────────────── */
.pipeline-flow {
  display: flex; align-items: center; position: relative;
  min-height: 90px; gap: 0;
}

/* ── Nodes ───────────────────────────────────────────────────────── */
.node { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; z-index: 2; }
.node-box {
  width: 68px; height: 68px; border-radius: 8px;
  border: 1.5px solid var(--border); background: var(--ink-3);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; transition: all 0.4s ease; position: relative; overflow: hidden;
  box-shadow: inset 0 0 20px rgba(255, 98, 0, 0.02);
}
.node-box::after {
  content: ''; position: absolute; top: 4px; right: 4px; width: 8px; height: 8px;
  border: 1px solid rgba(255, 98, 0, 0.2); border-right: none; border-bottom: none;
  border-radius: 1px;
}
.node-box::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle, var(--lane-glow, transparent), transparent 70%);
  opacity: 0; transition: opacity 0.4s ease;
}
.node.active .node-box {
  border-color: var(--lane-color);
  box-shadow: 0 0 0 1px var(--lane-color), 0 0 22px var(--lane-glow);
}
.node.active .node-box::before { opacity: 1; }
.node-icon { font-size: 20px; line-height: 1; }
.node-tag { font-size: 7px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.node-name { font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.node.active .node-name { color: var(--text); }

/* Status badge in corner */
.node-status {
  position: absolute; top: -5px; right: -5px; width: 15px; height: 15px;
  border-radius: 50%; border: 2px solid var(--ink-3); font-size: 7px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease 0.4s; font-weight: 700; color: #000;
}
.node.active .node-status { opacity: 1; }
.deny-lane .node.active .node-status { background: var(--red); }
.allow-lane .node.active .node-status { background: var(--green); }

/* ── Connectors & Packets ────────────────────────────────────────── */
.connector {
  flex: 1; height: 3px; background: linear-gradient(90deg, var(--text-dim), var(--text-dim) 80%, transparent 100%);
  position: relative; overflow: visible; transition: background 0.4s ease;
  box-shadow: 0 1px 0 rgba(255, 98, 0, 0.05);
}
.connector::after {
  content: ''; position: absolute; right: -6px; top: 50%;
  width: 0; height: 0; transform: translateY(-50%);
  border-left: 6px solid var(--text-dim); border-top: 3px solid transparent; border-bottom: 3px solid transparent;
  transition: border-color 0.4s ease;
}
.connector.active {
  background: linear-gradient(90deg, var(--lane-color), rgba(255,98,0,0.3));
  box-shadow: 0 2px 8px rgba(255, 98, 0, 0.1);
}
.connector.active::after { border-left-color: var(--lane-color); }
.packet {
  position: absolute; top: 50%; left: 0; width: 10px; height: 10px;
  border-radius: 50%; background: var(--lane-color); opacity: 0;
  box-shadow: 0 0 14px var(--lane-glow); z-index: 10;
  transform: translate(-50%, -50%);
}
.packet.traveling { animation: packetTravel 0.65s ease-out forwards; }

/* Block overlay for DENY */
.block-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: var(--red); text-shadow: none; font-weight: 900;
  opacity: 0; transition: opacity 0.4s ease; pointer-events: none;
  background: rgba(239,68,68,0.06); border-radius: 8px;
}

/* ── Lane Output ─────────────────────────────────────────────────── */
.lane-output {
  margin-top: 14px; font-size: 10px; color: var(--text-muted);
  line-height: 1.8; border-top: 1px solid var(--border); padding-top: 12px;
  opacity: 0; transition: opacity 0.5s ease 0.6s;
}
.lane.done .lane-output { opacity: 1; }
.output-row { display: flex; gap: 8px; flex-wrap: wrap; }
.output-key { color: var(--text-dim); flex-shrink: 0; min-width: 70px; }
.output-val { color: var(--text); }
.output-val.ok { color: var(--green); }
.output-val.err { color: var(--red); }
.output-val.warn { color: var(--cwn-orange); }

/* ── TrustAtom Receipt ───────────────────────────────────────────── */
.receipt-section {
  display: none; margin-bottom: 28px;
  animation: slideInUp 0.5s ease both;
}
.receipt-section.visible { display: block; }
.receipt-header {
  font-size: 10px; letter-spacing: 0.28em; color: var(--cwn-orange);
  text-transform: uppercase; margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.receipt-header::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border-bright), transparent);
}
.receipt-card {
  background: var(--ink-2); border: 1px solid var(--border-bright);
  border-radius: 12px; padding: 22px;
  box-shadow: 0 0 50px var(--cwn-orange-glow), 0 0 100px rgba(255,98,0,0.04) inset;
  position: relative; overflow: hidden;
}
.receipt-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% -10%, rgba(255,98,0,0.06), transparent 50%);
}
.receipt-card::after {
  content: 'TRUSTATOM RECEIPT'; position: absolute; top: 14px; right: 18px;
  font-size: 8px; letter-spacing: 0.3em; color: var(--cwn-orange); opacity: 0.25;
  font-family: var(--display);
}
.receipt-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(0,232,138,0.08); border: 1px solid rgba(0,232,138,0.25);
  color: var(--green); font-size: 9px; letter-spacing: 0.15em; margin-bottom: 16px;
}
.receipt-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px;
}
.receipt-field { display: flex; flex-direction: column; gap: 5px; }
.receipt-field.full { grid-column: 1 / -1; }
.receipt-label { font-size: 8px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-muted); }
.receipt-value {
  font-size: 11px; color: var(--text); word-break: break-all;
  padding: 8px 11px; background: var(--ink-3); border-radius: 6px;
  border: 1px solid var(--border); line-height: 1.5;
}
.receipt-value.highlight { color: var(--cwn-orange); border-color: rgba(255,98,0,0.25); }
.receipt-value.hash { font-size: 10px; color: var(--green); }
.receipt-value.sig { font-size: 9px; color: var(--text-muted); word-break: break-all; }

/* ── Panels ──────────────────────────────────────────────────────── */
.panels {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-bottom: 28px; animation: fadeInUp 0.8s ease 0.5s both;
}
.panel {
  background: var(--ink-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px;
}
.panel-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.panel-title { font-size: 12px; color: #000; margin-bottom: 4px; font-family: var(--display); letter-spacing: 0.06em; font-weight: 900; }
.panel-sub { font-size: 10px; color: var(--text-muted); line-height: 1.5; }

/* ── JSON Syntax Highlighting ────────────────────────────────────── */
.json-display {
  background: var(--ink-3); border: 1px solid var(--border);
  border-radius: 8px; padding: 13px; font-size: 10px; line-height: 1.7;
  overflow: auto; max-height: 280px; white-space: pre-wrap; word-break: break-word;
}
.json-key { color: #7ec8e3; }
.json-string { color: #a8e6a3; }
.json-number { color: #f0b962; }
.json-bool { color: var(--cwn-orange); }
.json-null { color: var(--text-muted); font-style: italic; }
.json-bracket { color: #4a6072; }
.json-placeholder { color: var(--text-dim); font-style: italic; text-align: center; padding: 24px 0; }

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border); padding: 14px 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.footer-text { font-size: 9px; color: var(--text-dim); letter-spacing: 0.12em; }
.footer-links { display: flex; gap: 16px; }
.footer-link { font-size: 9px; color: var(--text-muted); text-decoration: none; letter-spacing: 0.08em; }
.footer-link:hover { color: var(--cwn-orange); }

/* ── Loading Spinner ─────────────────────────────────────────────── */
.spinner {
  display: inline-block; width: 12px; height: 12px;
  border: 2px solid var(--border); border-top-color: var(--cwn-orange);
  border-radius: 50%; animation: spin 0.75s linear infinite; vertical-align: middle;
}

/* ── Keyframes ───────────────────────────────────────────────────── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}
@keyframes packetTravel {
  0%   { left: 0%;   opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes nodeShake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}
@keyframes denyFlash {
  0%   { background: transparent; }
  25%  { background: rgba(255,51,102,0.1); }
  100% { background: transparent; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes orangePulse {
  0%, 100% { box-shadow: 0 0 10px var(--cwn-orange-glow); }
  50%       { box-shadow: 0 0 30px var(--cwn-orange-glow), 0 0 60px rgba(255,98,0,0.15); }
}

/* ── Shake utility ───────────────────────────────────────────────── */
.shaking { animation: nodeShake 0.5s ease; }

/* ── TRUSTATOM™ ULTRA-PREMIUM RECEIPT ────────────────────────────── */

/* Minting Animation Timeline */
.minting-animation {
  display: flex; flex-direction: column; gap: 24px; margin-bottom: 32px;
  padding: 20px; background: linear-gradient(135deg, rgba(255,98,0,0.08) 0%, transparent 100%);
  border-radius: 12px; border: 1px solid rgba(255,98,0,0.2);
}
.minting-timeline { display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; gap: 8px; }
.timeline-step { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.timeline-icon { font-size: 28px; }
.timeline-label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.timeline-arrow { color: var(--cwn-orange); font-size: 20px; animation: pulse 2s infinite; }
.minting-progress { width: 100%; height: 6px; background: var(--ink-3); border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--cwn-orange), #FFB84D); border-radius: 3px; width: 0%; animation: mintProgress 2.5s ease forwards; }

@keyframes mintProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* Decision Summary */
.receipt-summary {
  margin-bottom: 28px; padding: 20px; background: var(--ink-2); border-radius: 12px;
  border: 1px solid rgba(255,98,0,0.15); animation: slideInUp 0.6s ease-out;
}
.receipt-summary h3 { margin: 0 0 12px; color: var(--cwn-orange); font-size: 16px; }
.summary-text { margin: 0 0 16px; color: var(--text); font-size: 14px; line-height: 1.5; }
.receipt-summary h4 { margin: 0 0 12px; color: var(--text); font-size: 14px; }
.impact-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.impact-item {
  padding: 12px; background: var(--ink); border-radius: 8px; border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
}
.metric-label { font-size: 11px; color: var(--text-muted); font-weight: 700; }
.metric-value { font-size: 18px; color: var(--cwn-orange); font-weight: 700; }
.metric-detail { font-size: 10px; color: var(--text-dim); }

/* Receipt Minted Badge */
.receipt-minted-badge {
  padding: 12px 16px; background: linear-gradient(135deg, rgba(255,98,0,0.2) 0%, rgba(255,184,77,0.1) 100%);
  border-left: 3px solid var(--cwn-orange); border-radius: 6px; margin-bottom: 12px;
  color: var(--cwn-orange); font-weight: 700; animation: mintedPulse 0.6s ease-out;
}

@keyframes mintedPulse {
  0% { opacity: 0; transform: scaleX(0.8); }
  100% { opacity: 1; transform: scaleX(1); }
}

/* Receipt Field Icons */
.receipt-label .icon { margin-right: 6px; font-size: 14px; }

/* Performance Metrics */
.receipt-performance {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
}
.receipt-performance h4 { margin: 0 0 12px; color: var(--text); font-size: 14px; }
.metric-row {
  display: grid; grid-template-columns: 160px auto 1fr; align-items: center; gap: 8px; padding: 8px 0;
  font-size: 12px; color: var(--text-muted);
}
.metric-row code { background: var(--ink); padding: 4px 8px; border-radius: 4px; color: var(--cwn-orange); font-weight: 600; width: fit-content; }
.metric-desc { font-size: 10px; color: var(--text-dim); }

/* Compliance Reasoning Tabs */
.compliance-reasoning {
  margin-top: 28px; padding: 20px; background: var(--ink-2); border-radius: 12px;
  border: 1px solid rgba(255,98,0,0.15);
}
.compliance-reasoning h4 { margin: 0 0 12px; color: var(--text); }
.compliance-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tab-btn {
  padding: 8px 14px; background: var(--ink); border: 1px solid var(--border); border-radius: 6px;
  color: var(--text-muted); font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all 0.2s ease;
}
.tab-btn:hover { border-color: var(--cwn-orange); color: var(--cwn-orange); }
.tab-btn.active { background: var(--cwn-orange); color: #fff; border-color: var(--cwn-orange); }
.tab-content {
  display: none; animation: fadeIn 0.3s ease;
  color: var(--text); font-size: 12px;
}
.tab-content.active { display: block; }
.tab-content ul { margin: 0; padding: 0 0 0 20px; }
.tab-content li { margin-bottom: 8px; line-height: 1.4; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Living Profile Cards (Employee Recommendations) ── */
.recommendation-cards {
  margin-top: 28px; padding: 20px; background: var(--ink-2); border-radius: 12px;
  border: 1px solid rgba(255,98,0,0.15);
}
.recommendation-cards h4 { margin: 0 0 6px; color: var(--text); }
.recommendation-cards .cards-subtitle {
  font-size: 11px; color: var(--text-muted); margin: 0 0 16px; line-height: 1.4;
}
.cards-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.employee-card {
  padding: 0; background: var(--ink); border: 1px solid var(--border); border-radius: 10px;
  transition: all 0.3s ease; cursor: pointer; overflow: hidden;
}
.employee-card:hover {
  border-color: var(--cwn-orange); box-shadow: 0 8px 24px rgba(255,98,0,0.15);
  transform: translateY(-2px);
}
/* Profile header with icon */
.profile-header {
  display: flex; align-items: center; gap: 12px; padding: 14px 14px 10px;
  border-bottom: 1px solid var(--border);
}
.profile-icon {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FF6200 0%, #ff8533 100%);
  box-shadow: 0 2px 8px rgba(255,98,0,0.25);
}
.profile-icon svg { width: 22px; height: 22px; fill: #fff; }
.profile-meta { flex: 1; min-width: 0; }
.employee-name { font-weight: 800; color: var(--text); font-size: 13px; display: block; }
.employee-role { font-size: 10px; color: var(--text-muted); margin-top: 2px; display: block; }
.competency-badge {
  display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 9px; font-weight: 700;
  color: #fff; letter-spacing: 0.3px; text-transform: uppercase; margin-top: 4px;
}
.competency-badge.sp { background: #7c3aed; }
.competency-badge.om { background: #0891b2; }
.competency-badge.og { background: #d97706; }
/* Card body — skills section */
.card-body { padding: 12px 14px; }
.card-why {
  font-size: 11px; color: var(--text); line-height: 1.45; margin: 0 0 12px;
  font-style: italic; border-left: 2px solid var(--cwn-orange); padding-left: 8px;
}
/* Verified Skill Bars */
.skill-bars { display: flex; flex-direction: column; gap: 8px; }
.skill-row { display: flex; align-items: center; gap: 8px; }
.skill-label {
  font-size: 9px; font-weight: 700; color: var(--text-muted); width: 90px; flex-shrink: 0;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.skill-track {
  flex: 1; height: 6px; background: var(--ink-3); border-radius: 3px; overflow: hidden;
  position: relative;
}
.skill-fill {
  height: 100%; border-radius: 3px; transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  background: linear-gradient(90deg, #FF6200, #ff8533);
}
.skill-fill.green { background: linear-gradient(90deg, #10b981, #34d399); }
.skill-fill.purple { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.skill-pct {
  font-size: 9px; font-weight: 800; color: var(--text); width: 28px; text-align: right;
}
.skill-verified {
  display: inline-block; font-size: 8px; font-weight: 800; color: #fff;
  background: var(--cwn-orange); padding: 1px 5px; border-radius: 3px;
  letter-spacing: 0.4px; text-transform: uppercase; margin-left: 4px;
}
.skill-adopted {
  display: inline-block; font-size: 8px; font-weight: 800; color: #fff;
  background: #10b981; padding: 1px 5px; border-radius: 3px;
  letter-spacing: 0.4px; text-transform: uppercase; margin-left: 2px;
}
/* NICE/MITRE mapping footer */
.card-frameworks {
  padding: 8px 14px 12px; font-size: 9px; color: var(--text-dim);
  border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 4px;
}
.framework-tag {
  display: inline-block; padding: 2px 6px; border-radius: 3px; font-weight: 600;
  background: var(--ink-3); color: var(--text-muted); font-size: 8px;
  letter-spacing: 0.3px;
}
/* Assign Action Button */
.card-assign {
  padding: 8px 14px 12px; border-top: 1px solid var(--border);
}
.assign-btn {
  width: 100%; padding: 8px 12px; border: 1.5px solid var(--cwn-orange); border-radius: 6px;
  background: transparent; color: var(--cwn-orange); font-size: 10px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all 0.25s ease;
}
.assign-btn:hover {
  background: var(--cwn-orange); color: #fff; transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 98, 0, 0.25);
}
.assign-btn.assigned {
  background: #10b981; border-color: #10b981; color: #fff;
  cursor: default; pointer-events: none;
}
.assign-btn svg { width: 12px; height: 12px; fill: currentColor; }

/* ── Section Labels (Human / Agent) ── */
.cards-section-label {
  display: flex; align-items: center; gap: 6px; font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 700; letter-spacing: 0.12em; color: var(--cwn-orange);
  text-transform: uppercase; margin: 20px 0 10px; padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,98,0,0.12);
}
.cards-section-label.agent { margin-top: 28px; }

/* ── Agent Card Variants ── */
.agent-card { border-color: rgba(99,102,241,0.2); }
.agent-card:hover { border-color: #6366f1; box-shadow: 0 8px 24px rgba(99,102,241,0.15); }
.profile-icon.agent-icon {
  background: linear-gradient(135deg, #6366f1, #818cf8);
  box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}
.competency-badge.agent-badge { background: #6366f1; }

/* ── TrustAtom Badge (per card) ── */
.atom-badge {
  display: flex; align-items: center; gap: 4px; margin-left: auto;
  padding: 3px 8px; border-radius: 12px;
  background: rgba(255,98,0,0.08); border: 1px solid rgba(255,98,0,0.15);
}
.atom-count {
  font-family: 'Orbitron', monospace; font-size: 11px; font-weight: 700;
  color: var(--cwn-orange);
}

/* ── TrustAtom Performance Strip (inside card body) ── */
.atom-perf-strip {
  display: flex; gap: 10px; margin-bottom: 10px; padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.atom-perf-item {
  font-size: 9px; font-family: 'JetBrains Mono', monospace; font-weight: 600;
  letter-spacing: 0.02em;
}
.atom-perf-item.allow { color: #10b981; }
.atom-perf-item.deny { color: #ef4444; }
.atom-perf-item.rate { color: var(--cwn-orange); margin-left: auto; }

/* ── Sticky TrustAtom Ticker (always visible) ── */
.atom-ticker {
  position: sticky; top: 0; z-index: 900;
  padding: 6px 24px 2px;
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,98,0,0.1);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.atom-ticker-inner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  justify-content: space-between;
}
.atom-ticker-left {
  display: flex; align-items: center; gap: 8px; min-width: 180px;
}
.atom-ticker-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #10b981;
  box-shadow: 0 0 8px rgba(16,185,129,0.6);
  animation: tickerPulse 2s ease-in-out infinite;
}
@keyframes tickerPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.7); } }
.atom-ticker-live-label {
  font-family: 'Orbitron', monospace; font-size: 10px; font-weight: 700;
  color: #10b981; letter-spacing: 0.15em;
}
.atom-ticker-date {
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  color: rgba(26,26,46,0.35); letter-spacing: 0.03em;
}
.atom-ticker-stats {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.atom-ticker-section { display: flex; align-items: center; gap: 5px; }
.atom-ticker-label {
  font-family: 'JetBrains Mono', monospace; font-size: 8px; font-weight: 700;
  letter-spacing: 0.1em; color: rgba(26,26,46,0.45); text-transform: uppercase;
}
.atom-ticker-val {
  font-family: 'Orbitron', monospace; font-size: 13px; font-weight: 700;
  color: #1a1a2e; transition: color 0.3s, text-shadow 0.3s;
}
.atom-ticker-val.allow-val { color: #059669; }
.atom-ticker-val.deny-val { color: #dc2626; }
.atom-ticker-val.total { color: var(--cwn-orange); font-size: 15px; }
.atom-ticker-val.total-sub { font-size: 12px; }
.atom-ticker-tag {
  font-size: 7px; font-family: 'JetBrains Mono', monospace; font-weight: 700;
  letter-spacing: 0.08em; padding: 2px 6px; border-radius: 3px; margin-right: 4px;
}
.atom-ticker-tag.allow { background: rgba(16,185,129,0.15); color: #10b981; }
.atom-ticker-tag.deny { background: rgba(239,68,68,0.15); color: #ef4444; }
@keyframes tickerFlash {
  0% { text-shadow: 0 0 8px currentColor; }
  100% { text-shadow: none; }
}
.atom-ticker-val.flash { animation: tickerFlash 0.4s ease-out; }
.atom-ticker-divider { width: 1px; height: 20px; background: rgba(26,26,46,0.1); }
.atom-ticker-graph-wrap {
  position: relative; width: 100%; height: 64px; margin-top: 2px;
}
#tickerGraph { width: 100%; height: 100%; }

/* ── Walkthrough Overlay ── */
.walkthrough-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.3s ease;
}
.walkthrough-popup {
  background: #1a1a2e; border: 1px solid rgba(255,98,0,0.4);
  border-radius: 14px; padding: 28px 24px 20px; width: 420px; max-width: 92vw;
  position: relative; box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 40px rgba(255,98,0,0.08);
  animation: sdkSlideUp 0.3s ease;
}
.walkthrough-step-badge {
  position: absolute; top: -14px; left: 20px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--cwn-orange); color: #fff;
  font-family: 'Orbitron', monospace; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(255,98,0,0.4);
}
.walkthrough-title {
  font-family: 'Orbitron', monospace; font-size: 16px; font-weight: 700;
  color: #fff; margin-bottom: 8px; letter-spacing: 0.02em;
}
.walkthrough-desc {
  font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.65); margin-bottom: 20px;
}
.walkthrough-actions {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.walkthrough-btn {
  padding: 8px 18px; border-radius: 6px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.15s; font-family: inherit; border: none;
}
.walkthrough-btn.next {
  background: var(--cwn-orange); color: #fff; flex: 1;
}
.walkthrough-btn.next:hover { background: #e05e00; }
.walkthrough-btn.skip {
  background: transparent; color: rgba(255,255,255,0.35); border: 1px solid rgba(255,255,255,0.1);
}
.walkthrough-btn.skip:hover { color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.2); }
.walkthrough-progress {
  display: flex; justify-content: center; gap: 6px; margin-top: 16px;
}
.walkthrough-dot {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.15);
  transition: all 0.3s;
}
.walkthrough-dot.active { background: var(--cwn-orange); transform: scale(1.3); box-shadow: 0 0 6px rgba(255,98,0,0.4); }
.walkthrough-dot.done { background: rgba(255,98,0,0.4); }
.walkthrough-highlight {
  outline: 2px solid var(--cwn-orange) !important;
  outline-offset: 4px;
  box-shadow: 0 0 20px rgba(255,98,0,0.15) !important;
  transition: outline 0.3s, box-shadow 0.3s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Time Machine (Retroactive Auditing) */
.time-machine-section {
  margin-top: 28px; padding: 20px; background: var(--ink-2); border-radius: 12px;
  border: 1px solid rgba(255,98,0,0.15);
}
.time-machine-section h4 { margin: 0 0 12px; color: var(--text); }
.time-machine-controls { display: flex; flex-direction: column; gap: 12px; }
.tm-btn {
  padding: 10px 14px; background: var(--ink); border: 1px solid rgba(255,98,0,0.3);
  border-radius: 6px; color: var(--text); font-size: 12px; cursor: pointer; transition: all 0.2s ease;
  font-weight: 600;
}
.tm-btn:hover { border-color: var(--cwn-orange); color: var(--cwn-orange); }
.tm-result, .tm-evidence-link {
  margin-top: 12px; padding: 12px; background: rgba(255,98,0,0.05); border-left: 3px solid var(--cwn-orange);
  border-radius: 6px; color: var(--text); font-size: 12px; line-height: 1.4;
}
.tm-result h5, .tm-evidence-link h5 { margin: 0 0 8px; color: var(--text); font-size: 12px; }
.tm-result p { margin: 6px 0; }
.tm-evidence-link input, .tm-evidence-link textarea {
  width: 100%; padding: 8px; margin: 8px 0; border: 1px solid var(--border); border-radius: 4px;
  background: var(--ink); color: var(--text); font-size: 11px; font-family: monospace;
}
.tm-link-btn {
  padding: 8px 12px; background: var(--cwn-orange); color: #fff; border: none;
  border-radius: 4px; cursor: pointer; font-size: 11px; font-weight: 600; transition: all 0.2s ease;
}
.tm-link-btn:hover { opacity: 0.9; }

/* ══════════════════════════════════════════════════════════════════
   DARK TERMINAL & CoEx INVESTIGATION SYSTEM
   ══════════════════════════════════════════════════════════════════ */

/* ── Terminal Chrome Bar ───────────────────────────────────────── */
.terminal-chrome {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: #161b22;
  border: 1px solid var(--dark-border); border-bottom: none;
  border-radius: 10px 10px 0 0;
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span {
  width: 10px; height: 10px; border-radius: 50%;
}
.terminal-dots span:nth-child(1) { background: #ff5f56; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #27c93f; }
.terminal-title {
  flex: 1; font-family: var(--mono); font-size: 9px;
  color: rgba(255,255,255,0.35); letter-spacing: 0.18em;
  text-transform: uppercase;
}
.terminal-status {
  font-family: var(--mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 3px;
}
.terminal-status.standby { color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); }
.terminal-status.active { color: var(--cwn-orange); background: rgba(255,98,0,0.12); animation: blink 1.5s ease infinite; }
.terminal-status.complete { color: var(--green); background: rgba(16,185,129,0.12); }

/* ── Dark Response Stream ──────────────────────────────────────── */
.coex-response-stream.dark-terminal {
  background: var(--dark-surface) !important;
  border: 1px solid var(--dark-border) !important;
  border-top: none !important;
  border-radius: 0 0 10px 10px !important;
  color: rgba(255,255,255,0.85) !important;
  box-shadow: 0 0 60px rgba(255,98,0,0.06) inset, 0 8px 32px rgba(0,0,0,0.3);
  position: relative;
  white-space: normal !important;
  word-wrap: break-word;
  padding: 20px 24px !important;
}
.coex-response-stream.dark-terminal::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cwn-orange), transparent);
  opacity: 0.4;
}

/* ── CoEx Dark-Mode Class System ───────────────────────────────── */
.coex-heading {
  margin: 0 0 10px; font-family: var(--display); font-size: 14px;
  font-weight: 700; color: #fff; letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 8px;
}
.coex-heading .icon { font-size: 16px; }

.coex-subheading {
  font-family: var(--mono); font-size: 9px; font-weight: 600;
  color: var(--cwn-orange); letter-spacing: 0.18em;
  text-transform: uppercase; margin: 0 0 6px;
}

.coex-reasoning-chain {
  background: linear-gradient(135deg, rgba(255,98,0,0.08), rgba(255,98,0,0.02));
  padding: 12px 14px; border-radius: 6px;
  border-left: 3px solid var(--cwn-orange);
  margin: 10px 0; font-size: 11px; line-height: 1.9;
}
.coex-reasoning-chain strong { color: var(--cwn-orange); }
.coex-reasoning-chain .agent-name {
  color: rgba(255,255,255,0.45); font-weight: 500;
}

.coex-card {
  background: var(--dark-surface-2); padding: 14px;
  border-radius: 6px; border: 1px solid rgba(255,255,255,0.06);
  margin: 10px 0; font-size: 11px; line-height: 1.6;
  color: rgba(255,255,255,0.75);
}
.coex-card strong { color: #fff; }
.coex-card em { color: var(--cwn-orange); font-style: normal; }

.coex-card-accent {
  background: var(--dark-surface-2); padding: 14px;
  border-radius: 6px; border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid var(--cwn-orange);
  margin: 10px 0; font-size: 11px; line-height: 1.6;
  color: rgba(255,255,255,0.75);
}
.coex-card-accent strong { color: var(--cwn-orange); font-size: 11px; }

.coex-card-green {
  background: var(--dark-surface-2); padding: 14px;
  border-radius: 6px; border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid var(--green);
  margin: 6px 0;
}
.coex-card-green strong { color: var(--cwn-orange); font-size: 11px; }
.coex-card-green p { font-size: 10px; margin: 6px 0 4px; color: #fff; }
.coex-card-green .detail { font-size: 10px; color: rgba(255,255,255,0.5); line-height: 1.5; margin: 0; }
.coex-card-green .status { font-size: 9px; color: var(--green); margin: 6px 0 0; font-weight: 600; }

.coex-card-red {
  background: var(--dark-surface-2); padding: 14px;
  border-radius: 6px; border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid var(--red);
  margin: 6px 0;
}

/* ── CoEx Tables ───────────────────────────────────────────────── */
.coex-table {
  width: 100%; font-size: 11px; border-collapse: collapse;
  margin: 10px 0;
}
.coex-table th {
  padding: 8px 10px; text-align: left; font-weight: 600;
  background: var(--dark-surface-3); color: rgba(255,255,255,0.6);
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.coex-table td {
  padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.7);
}
.coex-table code {
  font-family: var(--mono); color: rgba(255,255,255,0.5); font-size: 10px;
}
.coex-table .allow { color: var(--green); font-weight: 600; }
.coex-table .deny { color: var(--red); font-weight: 600; }

/* ── CoEx Summary Box ──────────────────────────────────────────── */
.coex-summary {
  background: var(--dark-surface-2); padding: 14px;
  border-radius: 6px; border: 1px solid rgba(255,255,255,0.06);
  margin-top: 12px; font-size: 11px; line-height: 1.7;
  color: rgba(255,255,255,0.7);
}
.coex-summary strong { color: #fff; }
.coex-summary em { color: var(--cwn-orange); font-style: italic; }

/* ── CoEx Lineage Tree ─────────────────────────────────────────── */
.coex-lineage-tree {
  font-family: var(--mono); font-size: 10px;
  background: var(--dark-surface-2); padding: 14px;
  border-radius: 6px; border: 1px solid rgba(255,255,255,0.06);
  line-height: 2; margin: 10px 0;
  color: rgba(255,255,255,0.6);
}
.coex-lineage-tree .node-label { color: var(--cwn-orange); font-weight: 600; }
.coex-lineage-tree .edge-label { color: rgba(255,255,255,0.3); }
.coex-lineage-tree .allow { color: var(--green); font-weight: 600; }
.coex-lineage-tree .muted { color: rgba(255,255,255,0.35); }

/* ── CoEx Approval Steps ───────────────────────────────────────── */
.coex-step {
  display: flex; align-items: flex-start; gap: 10px; margin: 8px 0;
}
.coex-step-num {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0;
  color: #fff;
}
.coex-step-num.orange { background: var(--cwn-orange); }
.coex-step-num.green { background: var(--green); }
.coex-step-text {
  font-size: 11px; color: rgba(255,255,255,0.75); line-height: 1.5;
}
.coex-step-text strong { color: #fff; }

/* ── CoEx Compliance Grid ──────────────────────────────────────── */
.coex-compliance-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0;
}
@media (max-width: 900px) {
  .coex-compliance-grid { grid-template-columns: 1fr; }
}

/* ── CoEx Rule Trace ───────────────────────────────────────────── */
.coex-rule-trace {
  font-family: var(--mono); font-size: 10px;
  background: var(--dark-surface-2); padding: 14px;
  border-radius: 6px; border: 1px solid rgba(255,255,255,0.06);
  line-height: 1.9; margin: 10px 0;
  color: rgba(255,255,255,0.7);
}
.coex-rule-trace .pass { color: var(--green); }
.coex-rule-trace .fail { color: var(--red); }

/* ── CoEx Role-Based Impact Cards ────────────────────────────────── */
.coex-impact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0;
}
@media (max-width: 900px) { .coex-impact-grid { grid-template-columns: 1fr; } }
.coex-impact-card {
  padding: 14px; border-radius: 8px;
  background: var(--dark-surface-2);
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.3s, transform 0.2s;
}
.coex-impact-card:hover {
  border-color: var(--cwn-orange);
  transform: translateY(-1px);
}
.coex-impact-role {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.coex-impact-role .role-icon {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.coex-impact-role .role-icon.ceo { background: rgba(99,102,241,0.15); }
.coex-impact-role .role-icon.ciso { background: rgba(255,98,0,0.15); }
.coex-impact-role .role-icon.soc { background: rgba(16,185,129,0.15); }
.coex-impact-role .role-icon.customer { background: rgba(59,130,246,0.15); }
.coex-impact-role .role-title {
  font-family: var(--mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.coex-impact-body {
  font-size: 11px; line-height: 1.6;
  color: rgba(255,255,255,0.8);
}
.coex-impact-body strong { color: #fff; }
.coex-impact-body em { color: var(--cwn-orange); font-style: normal; }
.coex-impact-body .metric {
  font-family: var(--display); font-size: 16px; font-weight: 700;
  color: var(--cwn-orange); display: block; margin-bottom: 4px;
}

/* ── CoEx Security Verification Badge ─────────────────────────── */
.coex-security-strip {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; margin: 14px 0 6px;
  background: linear-gradient(135deg, rgba(16,185,129,0.06), rgba(16,185,129,0.02));
  border: 1px solid rgba(16,185,129,0.15);
  border-radius: 8px;
}
.coex-security-strip .shield-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(16,185,129,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.coex-security-strip .security-text {
  font-size: 10px; color: rgba(255,255,255,0.6); line-height: 1.5;
}
.coex-security-strip .security-text strong {
  color: var(--green); display: block; font-size: 11px; margin-bottom: 2px;
}
.coex-security-strip .security-text code {
  font-family: var(--mono); font-size: 9px; color: rgba(255,255,255,0.35);
}
.coex-security-strip .vuln-count {
  margin-left: auto; font-family: var(--display);
  font-size: 22px; font-weight: 700; color: var(--green);
  line-height: 1;
}
.coex-security-strip .vuln-label {
  font-size: 8px; color: rgba(255,255,255,0.4);
  text-transform: uppercase; letter-spacing: 0.1em;
  text-align: right;
}

/* ── Phase 4: Investigation Workspace Dark Treatment ───────────── */
.coex-workflow-canvas.dark {
  background: var(--dark-surface) !important;
  border-color: var(--dark-border) !important;
}
.coex-workflow-canvas.dark h3 {
  color: rgba(255,255,255,0.7) !important;
}

.coex-trace-viewer.dark {
  background: var(--dark-surface) !important;
  border-color: var(--dark-border) !important;
}
.coex-trace-viewer.dark h3 {
  color: rgba(255,255,255,0.7) !important;
}
.coex-trace-step.dark {
  background: var(--dark-surface-2) !important;
  border-color: rgba(255,255,255,0.06) !important;
}
.coex-trace-step.dark .coex-trace-step-name { color: rgba(255,255,255,0.8) !important; }
.coex-trace-step.dark .coex-trace-step-status { background: rgba(255,255,255,0.06) !important; color: rgba(255,255,255,0.4) !important; }
.coex-trace-step.dark.active { border-left-color: var(--cwn-orange) !important; }
.coex-trace-step.dark.active .coex-trace-step-status { background: rgba(255,98,0,0.12) !important; color: var(--cwn-orange) !important; }
.coex-trace-step.dark.done { border-left-color: var(--green) !important; }
.coex-trace-step.dark.done .coex-trace-step-status { background: rgba(16,185,129,0.12) !important; color: var(--green) !important; }
.coex-trace-step.dark .coex-trace-step-detail { color: rgba(255,255,255,0.4) !important; }

.coex-similar-item.dark {
  background: var(--dark-surface-2) !important;
  border-color: rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.6) !important;
}
.coex-similar-item.dark:hover { border-color: var(--cwn-orange) !important; }

.coex-agent.dark {
  background: var(--dark-surface-2) !important;
  border-color: rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.5) !important;
}
.coex-agent.dark.active {
  border-color: var(--cwn-orange) !important;
  color: var(--cwn-orange) !important;
  background: rgba(255,98,0,0.08) !important;
}
.coex-agent.dark.done {
  border-color: var(--green) !important;
  color: var(--green) !important;
  background: rgba(16,185,129,0.05) !important;
}

/* ── Phase 5: Console Hero Dark Section ────────────────────────── */
.console-hero {
  background: var(--dark-surface);
  margin: 0 -28px; padding: 40px 28px;
  position: relative; overflow: hidden;
}
.console-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(60deg, transparent, transparent 80px, rgba(255,98,0,0.04) 80px, rgba(255,98,0,0.04) 82px),
    repeating-linear-gradient(-60deg, transparent, transparent 80px, rgba(255,98,0,0.04) 80px, rgba(255,98,0,0.04) 82px),
    repeating-linear-gradient(0deg, rgba(255,98,0,0.02) 0px, rgba(255,98,0,0.02) 1px, transparent 1px, transparent 48px),
    repeating-linear-gradient(90deg, rgba(255,98,0,0.02) 0px, rgba(255,98,0,0.02) 1px, transparent 1px, transparent 48px);
  pointer-events: none;
}
.console-hero .hero-eyebrow {
  color: var(--cwn-orange); opacity: 1;
}
.console-hero h1 { color: #fff !important; }
.console-hero h1 span { color: var(--cwn-orange); }
.console-hero .hero-sub { color: rgba(255,255,255,0.5); }

/* ── Phase 6: Section Label Brand ──────────────────────────────── */
.section-label-brand {
  font-family: var(--display); font-size: 9px; font-weight: 700;
  color: var(--cwn-orange); letter-spacing: 0.25em;
  text-transform: uppercase; margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.section-label-brand::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(255,98,0,0.3), transparent);
}

/* ── Phase 6: Node Glow Keyframe ───────────────────────────────── */
@keyframes nodeGlow {
  0%, 100% { box-shadow: 0 0 0 1px var(--lane-color), 0 0 22px var(--lane-glow); }
  50%       { box-shadow: 0 0 0 1px var(--lane-color), 0 0 50px var(--lane-glow), 0 0 80px rgba(255,98,0,0.08); }
}
.node.active .node-box { animation: nodeGlow 2s ease infinite; }

/* ── Phase 7: Receipt Card Elevation ───────────────────────────── */
@keyframes receiptReveal {
  0%   { opacity: 0; transform: translateY(20px); }
  50%  { box-shadow: 0 0 60px var(--cwn-orange-glow), 0 0 120px rgba(255,98,0,0.1); }
  100% { opacity: 1; transform: translateY(0); box-shadow: 0 0 50px var(--cwn-orange-glow); }
}
.receipt-card.revealed { animation: receiptReveal 0.6s ease both; }
.metric-value { font-family: var(--display); }
.metric-row code {
  font-family: var(--display); font-size: 13px;
  color: var(--cwn-orange); font-weight: 700;
}

/* ── Phase 8: Landing Page Timer Glow ──────────────────────────── */
.timer-glow-green { text-shadow: 0 0 20px rgba(16,185,129,0.4), 0 0 40px rgba(16,185,129,0.2); }

@keyframes fadeInUpStagger {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Phase 9: Print Safety ─────────────────────────────────────── */
@media print {
  .console-hero, .coex-response-stream.dark-terminal,
  .coex-workflow-canvas.dark, .coex-trace-viewer.dark {
    background: #fff !important; color: #000 !important;
    border-color: #ccc !important; box-shadow: none !important;
  }
  .terminal-chrome { display: none !important; }
  .chat-sidebar, .chat-toggle, .sdk-modal-overlay { display: none !important; }
  .coex-heading, .coex-subheading, .coex-reasoning-chain strong,
  .coex-card strong, .coex-summary strong { color: #000 !important; }
  .coex-reasoning-chain .agent-name, .coex-card,
  .coex-summary, .coex-lineage-tree { color: #333 !important; }
  .coex-table th { background: #eee !important; color: #333 !important; }
  .coex-table td { color: #333 !important; }
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .pipeline-lanes { grid-template-columns: 1fr; }
  .panels { grid-template-columns: 1fr; }
  .receipt-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 22px; }
}
@media (max-width: 560px) {
  .wrap { padding: 16px; }
  .topbar { flex-direction: column; align-items: flex-start; }
  .demo-trigger { flex-direction: column; align-items: flex-start; }
}
