/* PROJECT BLACK BOX LLC — projectblackbox.tech */
/* Professional enterprise / AI safety research */

:root {
  --bg:        #0a0b0d;
  --surface:   #0f1115;
  --surface2:  #14161c;
  --border:    #1e2128;
  --border2:   #282c38;
  --text:      #c8cdd8;
  --text-dim:  #6b7280;
  --text-mute: #3d4350;
  --white:     #e8eaf0;
  --cyan:      #38bdf8;
  --cyan-dim:  #0e3a5c;
  --green:     #4ade80;
  --green-dim: #0d3320;
  --yellow:    #fbbf24;
  --yellow-dim:#3b2800;
  --red:       #f87171;
  --red-dim:   #3b0d0d;
  --accent:    #6366f1;
  --accent-dim:#1a1b40;
  --embargo:   #dc2626;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ─────────────────────────────────── */
h1, h2, h3, h4 { color: var(--white); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { color: var(--text); }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.mono { font-family: var(--font-mono); }
.dim  { color: var(--text-dim); }
.mute { color: var(--text-mute); }

/* ── LAYOUT ─────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section   { padding: 80px 0; border-bottom: 1px solid var(--border); }
.section:last-child { border-bottom: none; }

/* ── NAV ────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,11,13,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}
.nav-logo span { color: var(--cyan); }
.nav-links {
  display: flex; gap: 32px; list-style: none;
}
.nav-links a {
  color: var(--text-dim); font-size: 0.85rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); text-decoration: none; }

/* ── EMBARGO BANNER ─────────────────────────────── */
.embargo-banner {
  background: linear-gradient(135deg, #1a0000, #200808);
  border-bottom: 2px solid var(--embargo);
  padding: 16px 24px;
}
.embargo-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: flex-start; gap: 16px;
  flex-wrap: wrap;
}
.embargo-badge {
  background: var(--embargo);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}
.embargo-text { flex: 1; min-width: 200px; }
.embargo-text strong { color: #fca5a5; font-size: 0.9rem; }
.embargo-text p { color: #f87171; font-size: 0.8rem; margin-top: 2px; }
.embargo-countdown {
  text-align: right;
  flex-shrink: 0;
}
.countdown-label { color: #fca5a5; font-size: 0.7rem; letter-spacing: 0.08em; display: block; }
#countdown-display {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

/* ── HERO ────────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 60% 40% at 70% 40%, rgba(99,102,241,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero-title {
  margin-bottom: 28px;
  max-width: 800px;
}
.hero-title em {
  font-style: normal;
  color: var(--cyan);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 640px;
  margin-bottom: 44px;
  line-height: 1.7;
}
.hero-tags {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 48px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 3px;
  border: 1px solid;
}
.tag-green  { color: var(--green);  border-color: var(--green);  background: var(--green-dim);  }
.tag-cyan   { color: var(--cyan);   border-color: var(--cyan);   background: var(--cyan-dim);   }
.tag-accent { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }
.tag-red    { color: var(--red);    border-color: var(--red);    background: var(--red-dim);    }

.hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap;
}
.stat-block { }
.stat-num {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-label { font-size: 0.78rem; color: var(--text-dim); margin-top: 4px; }

/* ── SECTION HEADERS ─────────────────────────────── */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-desc {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 640px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ── CARDS ───────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--border2); }
.card-grid { display: grid; gap: 20px; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 16px;
}
.badge-live    { background: var(--green-dim);  color: var(--green);  border: 1px solid var(--green);  }
.badge-pub     { background: var(--cyan-dim);   color: var(--cyan);   border: 1px solid var(--cyan);   }
.badge-embargo { background: var(--red-dim);    color: var(--red);    border: 1px solid var(--red);    }
.badge-build   { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent); }

.card-title { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.card-body  { font-size: 0.88rem; color: var(--text-dim); line-height: 1.65; }

.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  margin-top: 20px;
  padding: 7px 14px;
  border: 1px solid var(--cyan-dim);
  border-radius: 4px;
  background: var(--cyan-dim);
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
}
.card-link:hover {
  background: rgba(56,189,248,0.15);
  border-color: var(--cyan);
  text-decoration: none;
}

.card-link-disabled {
  color: var(--text-mute) !important;
  border-color: var(--border) !important;
  background: transparent !important;
  cursor: not-allowed;
}

/* ── REGIME LEGEND ───────────────────────────────── */
.regime-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}
.regime-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
}
.regime-sym {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.regime-info { }
.regime-name { font-weight: 700; font-size: 0.88rem; margin-bottom: 2px; }
.regime-desc { font-size: 0.78rem; color: var(--text-dim); line-height: 1.4; }
.regime-threshold {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-mute);
  margin-top: 4px;
}

.sym-crystalline { color: var(--green); }
.sym-fluid       { color: var(--cyan); }
.sym-gaseous     { color: var(--yellow); }
.sym-plasma      { color: var(--red); }

/* ── DEMO PANEL ──────────────────────────────────── */
#demo-section { background: var(--bg); }

.demo-tabs {
  display: flex; gap: 4px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.demo-tab {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
}
.demo-tab.active {
  background: var(--surface2);
  border-color: var(--accent);
  color: var(--white);
}
.demo-tab:hover:not(.active) {
  border-color: var(--border2);
  color: var(--text);
}

.demo-panel { display: none; }
.demo-panel.active { display: block; }

.demo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 680px) {
  .demo-pair { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

.probe-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
}
.probe-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.probe-prompt {
  font-size: 0.82rem;
  color: var(--text-dim);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 16px;
  line-height: 1.5;
  font-family: var(--font-mono);
  white-space: pre-wrap;
  word-break: break-word;
}
.regime-result {
  display: flex; align-items: center; gap: 10px;
}
.result-sym { font-size: 1.6rem; line-height: 1; }
.result-info { }
.result-regime { font-weight: 800; font-size: 1rem; }
.result-L {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 2px;
}
.result-action { font-size: 0.78rem; color: var(--text-dim); margin-top: 2px; }

.demo-finding {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.6;
}
.finding-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

/* ── AXIOM SECTION ───────────────────────────────── */
.axiom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 780px) { .axiom-grid { grid-template-columns: 1fr; } }

.axiom-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
@media (max-width: 600px) { .axiom-stat-row { grid-template-columns: repeat(2, 1fr); } }

.axiom-stat {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  text-align: center;
}
.axiom-stat-num {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
}
.axiom-stat-label { font-size: 0.72rem; color: var(--text-dim); margin-top: 4px; }

.family-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.family-table th {
  text-align: left;
  color: var(--text-mute);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.family-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.family-table tr:last-child td { border-bottom: none; }
.family-table .rank-1 td:first-child { color: var(--red); font-weight: 700; }

.l-bar {
  height: 4px;
  border-radius: 2px;
  margin-top: 4px;
  background: linear-gradient(to right, var(--yellow), var(--red));
}

/* ── VVC BOX ─────────────────────────────────────── */
.vvc-box {
  background: linear-gradient(135deg, #0d1a0d, #0a1520);
  border: 1px solid var(--border);
  border-left: 4px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  padding: 24px 28px;
  margin-top: 32px;
}
.vvc-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.vvc-text { font-size: 0.9rem; line-height: 1.7; color: var(--text); }
.vvc-text strong { color: var(--white); }

/* ── WHAT WE MEASURE ─────────────────────────────── */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.principle-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.principle-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-mute);
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.principle-head {
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.principle-body { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; }

/* ── PRODUCTS SECTION ────────────────────────────── */
.product-card {
  position: relative;
  overflow: hidden;
}
.product-card-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 8px;
}
.product-name { font-size: 1.2rem; font-weight: 800; color: var(--white); }
.product-version {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-mute);
}
.product-desc { font-size: 0.88rem; color: var(--text-dim); line-height: 1.65; margin-bottom: 20px; }
.product-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* embargo lock card */
.embargo-card {
  border-color: #3b1010;
  background: linear-gradient(135deg, var(--surface), #160a0a);
}
.embargo-card-timer {
  margin: 16px 0;
  padding: 14px 16px;
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: 6px;
}
.embargo-lift-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #f87171;
  text-transform: uppercase;
  margin-bottom: 6px;
}
#product-countdown {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fca5a5;
  letter-spacing: 0.04em;
}
.embargo-desc {
  font-size: 0.82rem;
  color: #7f1d1d;
  margin-top: 8px;
}

/* ── AI UNDER CONSTRUCTION ───────────────────────── */
.construction-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px;
  text-align: center;
}
.construction-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  opacity: 0.4;
}
.construction-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.construction-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── DOI PILLS ───────────────────────────────────── */
.doi-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 3px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.doi-pill a { color: var(--text-dim); font-size: inherit; }
.doi-pill a:hover { color: var(--cyan); }

/* ── FOOTER ──────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-col { }
.footer-logo {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.footer-sub { font-size: 0.8rem; color: var(--text-mute); line-height: 1.6; }
.footer-head {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.82rem; color: var(--text-dim); }
.footer-links a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal { font-size: 0.75rem; color: var(--text-mute); }
.cage-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-mute);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 3px;
}

/* ── UTILITY ─────────────────────────────────────── */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-4  { margin-bottom: 4px; }
.flex  { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-12 { gap: 12px; }
.items-center { align-items: center; }
.text-center { text-align: center; }
.hidden { display: none; }

.separator {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* loading spinner for demo */
.demo-loading {
  text-align: center;
  padding: 60px 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-mute);
}

/* ── CHAT INTERFACE DEMO ─────────────────────────────── */
.chat-window {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto;
}
.chat-titlebar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-dot { width: 10px; height: 10px; border-radius: 50%; }
.chat-dot-r { background: #ff5f57; }
.chat-dot-y { background: #ffbd2e; }
.chat-dot-g { background: #28c940; }
.chat-titlebar-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-mute);
  margin-left: 4px;
}
.chat-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.chat-exchange {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.chat-exchange-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  text-transform: uppercase;
  padding: 6px 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.chat-user {
  padding: 12px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.chat-avatar {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 2px;
}
.chat-avatar-ai { color: var(--cyan); border-color: var(--cyan-dim); }
.chat-msg {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
  font-family: var(--font-mono);
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-ai-block {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.chat-ai-response {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
  flex: 1;
}
.chat-tav-bar {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: none;
}
.tav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tav-symbol { font-size: 1.4rem; line-height: 1; }
.tav-regime-name {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}
.tav-L {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-mute);
  margin-top: 2px;
}
.tav-action {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}
.tav-bar-track {
  flex: 1;
  min-width: 80px;
  max-width: 180px;
}
.tav-bar-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-mute);
  margin-bottom: 4px;
}
.tav-bar-fill-wrap {
  height: 5px;
  background: var(--border2);
  border-radius: 3px;
  overflow: hidden;
}
.tav-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease;
}
.chat-finding {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
  background: var(--bg);
}
.chat-finding-lbl {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
.chat-delta {
  text-align: center;
  padding: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-mute);
}
.chat-delta strong { color: var(--red); }

/* scenario tabs — fixed with JS listeners, no inline onclick */
.chat-scenario-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.chat-tab {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
}
.chat-tab.active {
  background: var(--surface2);
  border-color: var(--accent);
  color: var(--white);
}
.chat-tab:hover:not(.active) {
  border-color: var(--border2);
  color: var(--text);
}
.chat-scenario { display: none; }
.chat-scenario.active { display: block; }

/* scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
