/* NADIR Tier Benchmark — standalone simulation surface */

.tb-body {
  margin: 0;
  min-height: 100vh;
  background: var(--nadir-charcoal-950, #0a0b0d);
  color: var(--nadir-gray-100, #f4f6f8);
  font-family: Manrope, system-ui, sans-serif;
}

.tb-grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
}

.tb-app {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.tb-topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 11, 13, 0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.tb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
}

.tb-brand em {
  color: #6ee7b7;
  font-style: normal;
}

.tb-topbar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--nadir-gray-500, #8b95a5);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.tb-sep { opacity: 0.4; }

.tb-api-status.live { color: #6ee7b7; }
.tb-api-status.fallback { color: #ffb14a; }

.tb-live-mode-banner-host { padding: 0 20px; }
.tb-live-banner {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
}
.tb-live-banner strong {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tb-live-banner--live {
  border-color: rgba(110, 231, 183, 0.35);
  background: rgba(110, 231, 183, 0.08);
  color: #6ee7b7;
}
.tb-live-banner--fallback {
  border-color: rgba(255, 177, 74, 0.45);
  background: rgba(255, 177, 74, 0.1);
  color: #ffb14a;
}
.tb-live-banner--offline {
  border-color: rgba(139, 149, 165, 0.35);
  background: rgba(255, 255, 255, 0.03);
  color: var(--nadir-gray-400, #9aa3b0);
}
.tb-live-banner code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
}

.tb-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.tb-nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nadir-gray-400, #9aa3b0);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.tb-nav-link:hover,
.tb-nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.tb-main {
  flex: 1;
  padding: 32px 24px 48px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.tb-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  font-size: 11px;
  color: var(--nadir-gray-500);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tb-footer a { color: var(--nadir-gray-400); }

.tb-hero { margin-bottom: 32px; }

.tb-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f97316;
  margin-bottom: 10px;
}

.tb-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.tb-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--nadir-gray-300, #bcc3cd);
  max-width: 58ch;
}

.tb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.tb-btn-primary {
  background: linear-gradient(135deg, #e85a24, #f97316);
  border-color: transparent;
  color: #fff;
}

.tb-btn-ghost { background: transparent; }

.tb-btn-sm { padding: 6px 12px; font-size: 12px; }

.tb-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.tb-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .tb-grid-3 { grid-template-columns: 1fr; }
}

.tb-card {
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.tb-card h2 { font-size: 15px; margin-bottom: 8px; }
.tb-card p { font-size: 13px; color: var(--nadir-gray-400); line-height: 1.5; }

.tb-card-pulse { border-color: rgba(52, 211, 153, 0.3); }

.tb-panel {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.tb-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tb-panel-head h2 { font-size: 15px; margin: 0; }

.tb-dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px 20px;
  margin: 0;
}

.tb-dl div { display: flex; flex-direction: column; gap: 4px; }
.tb-dl dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--nadir-gray-500); }
.tb-dl dd { margin: 0; font-size: 14px; }

.tb-page-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.tb-page-head h1 { font-size: 1.75rem; font-weight: 800; margin: 4px 0; }
.tb-sub { font-size: 14px; color: var(--nadir-gray-500); }

.tb-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); }

.tb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tb-table th,
.tb-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.tb-table th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nadir-gray-500);
  background: rgba(0,0,0,0.2);
}

.tb-table tr:hover td { background: rgba(255,255,255,0.02); }

.tb-empty { text-align: center; color: var(--nadir-gray-500); padding: 32px !important; }

.tb-muted { color: var(--nadir-gray-500); font-size: 14px; }

.tb-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px 20px;
}

.tb-stat-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nadir-gray-500);
}

.tb-chart {
  width: 100%;
  display: block;
  margin: 0 20px 20px;
  max-width: calc(100% - 40px);
}

.tb-tier-nominal { color: #4ade80; }
.tb-tier-caution { color: #fbbf24; }
.tb-tier-critical { color: #f87171; }

.tb-badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.tb-code-preview {
  margin: 0;
  padding: 16px 20px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  overflow-x: auto;
  color: var(--nadir-gray-300);
}

.tb-error {
  padding: 48px;
  text-align: center;
}

.tb-error h2 { color: #f87171; }

code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.9em;
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

.tb-panel-compare { padding-bottom: 8px; }

.tb-disclaimer {
  font-size: 12px;
  color: var(--nadir-gray-500);
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  line-height: 1.55;
}

.tb-disclaimer-inset { padding: 12px 20px 20px; border-bottom: none; }

.tb-compare-table {
  width: calc(100% - 40px);
  margin: 16px 20px;
  border-collapse: collapse;
  font-size: 13px;
}

.tb-compare-table th,
.tb-compare-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: left;
}

.tb-compare-table th { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--nadir-gray-500); }
.tb-t-pulse { color: #34d399; font-weight: 600; }
.tb-t-meridian { color: #38bdf8; font-weight: 600; }
.tb-t-apex { color: #a78bfa; font-weight: 600; }

.tb-chart-row {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 16px;
  padding: 16px 20px;
}

@media (max-width: 900px) {
  .tb-chart-row { grid-template-columns: 1fr; }
}

.tb-chart-wrap {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.2);
  padding: 12px 0 8px;
}

.tb-chart-wrap h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nadir-gray-500);
  padding: 0 16px 8px;
  margin: 0;
}

.tb-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 0 20px 12px;
  font-size: 11px;
  color: var(--nadir-gray-500);
}

.tb-legend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 3px;
  margin-right: 6px;
  vertical-align: middle;
  border-radius: 2px;
}

.lg-truth::before { background: rgba(255,255,255,0.35); }
.lg-pulse::before { background: #34d399; }
.lg-meridian::before { background: #38bdf8; }
.lg-apex::before { background: #a78bfa; }

.tb-tier-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 20px 20px;
}

@media (max-width: 900px) {
  .tb-tier-cards { grid-template-columns: 1fr; }
}

.tb-tier-card {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}

.tb-tier-card h3 { font-size: 14px; margin: 0 0 4px; }
.tb-tier-card-pulse { border-color: rgba(52,211,153,0.35); }
.tb-tier-card-meridian { border-color: rgba(56,189,248,0.35); }
.tb-tier-card-apex { border-color: rgba(167,139,250,0.35); }

.tb-tier-pipe { font-size: 11px; color: var(--nadir-gray-500); margin-bottom: 12px; }

.tb-dl-compact {
  grid-template-columns: repeat(2, 1fr);
  padding: 0;
  gap: 8px;
}

.tb-agg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 20px 20px;
}

@media (max-width: 900px) {
  .tb-agg-grid { grid-template-columns: 1fr; }
}

.tb-page-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.tb-panel-pulse-fidelity {
  margin-top: 0;
  border-top: 1px solid rgba(52, 211, 153, 0.15);
}

.tb-badge-pulse {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}

.tb-chart-row-pulse {
  grid-template-columns: 1.5fr 0.5fr;
}

.tb-chart-wrap-wide { min-height: 280px; }
.tb-chart-wrap-stats { padding: 12px 16px; }

.tb-pulse-trace-stats { padding: 8px 0 0; }

.tb-mini-table {
  width: 100%;
  margin-top: 12px;
  font-size: 10px;
  border-collapse: collapse;
}
.tb-mini-table th, .tb-mini-table td {
  padding: 4px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: left;
}
.tb-pulse-gate-stats { margin-bottom: 8px; }

.tb-btn-pulse {
  border-color: rgba(52, 211, 153, 0.45);
  color: #34d399;
}

.tb-batch-progress-wrap { padding: 16px 20px 20px; }
.tb-batch-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.tb-batch-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #34d399, #38bdf8);
  transition: width 0.15s ease;
}
.tb-batch-status { font-size: 12px; color: var(--nadir-gray-500); margin: 10px 0 0; }

.tb-score-dist { padding: 0 20px 16px; }
.tb-score-dist h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--nadir-gray-500); margin-bottom: 12px; }
.tb-dist-bars { display: flex; flex-direction: column; gap: 8px; }
.tb-dist-row { display: grid; grid-template-columns: 100px 1fr 32px; gap: 10px; align-items: center; font-size: 11px; }
.tb-dist-track { height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.tb-dist-fill { height: 100%; border-radius: 4px; }
.tb-table-wrap-batch { margin-top: 8px; }
.tb-agg-grid-single { grid-template-columns: 1fr; max-width: 480px; }
.tb-dist-inline { font-size: 11px; color: var(--nadir-gray-500); margin-top: 12px; }

.tb-btn-meridian { border-color: rgba(56, 189, 248, 0.45); color: #38bdf8; }
.tb-btn-apex { border-color: rgba(167, 139, 250, 0.45); color: #a78bfa; }
.tb-badge-apex { background: rgba(167, 139, 250, 0.15); color: #c4b5fd; border: 1px solid rgba(167, 139, 250, 0.35); }
.tb-batch-bar-apex { background: linear-gradient(90deg, #a78bfa, #38bdf8); }
.tb-panel-apex-forensic { border-top: 1px solid rgba(167, 139, 250, 0.25); }
.tb-chart-row-apex { border-top: 1px solid rgba(167, 139, 250, 0.12); }
.tb-factor-graph-mock { padding: 0 20px 20px; }
.tb-fg-flow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.tb-fg-node { font-size: 10px; padding: 6px 10px; border-radius: 6px; background: rgba(167, 139, 250, 0.12); border: 1px solid rgba(167, 139, 250, 0.3); color: #e9d5ff; }
.tb-fg-arrow { color: #6b7280; font-size: 11px; }
.tb-tier-mode-toggle { display: inline-flex; gap: 4px; margin-left: 4px; }
.tb-mode-link { padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; text-decoration: none; color: var(--nadir-gray-500); border: 1px solid transparent; }
.tb-mode-link.active { color: #e8eaed; border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); }
.tb-mode-link.tb-mode-apex.active { color: #c4b5fd; border-color: rgba(167, 139, 250, 0.4); background: rgba(167, 139, 250, 0.1); }
.tb-apex-mode .tb-topbar { border-bottom-color: rgba(167, 139, 250, 0.2); }
.tb-meridian-mode .tb-topbar { border-bottom-color: rgba(56, 189, 248, 0.25); }
.tb-mode-link.tb-mode-meridian.active { color: #38bdf8; border-color: rgba(56, 189, 248, 0.4); background: rgba(56, 189, 248, 0.1); }

.tb-panel-apex-story { border-top: 1px solid rgba(167, 139, 250, 0.22); }
.tb-apex-story-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 16px 20px; }
@media (max-width: 700px) { .tb-apex-story-grid { grid-template-columns: 1fr; } }
.tb-apex-story-card { padding: 14px; border-radius: 10px; border: 1px solid rgba(167,139,250,0.22); background: rgba(167,139,250,0.05); }
.tb-apex-story-card h3 { font-size: 13px; color: #a78bfa; margin: 0 0 6px; }
.tb-apex-story-card p { font-size: 12px; color: var(--nadir-gray-500); margin: 0 0 8px; line-height: 1.5; }
.tb-apex-stat { font-size: 18px; color: #e8eaed; }
.tb-apex-delta { padding: 0 20px 16px; }

.tb-apex-twin-host { min-height: 240px; border-radius: 10px; border: 1px solid rgba(167,139,250,0.22); background: rgba(0,0,0,0.25); overflow: hidden; }
.tb-apex-twin-canvas { display: block; width: 100%; height: 220px; }
.tb-apex-twin-scrubber { width: calc(100% - 24px); margin: 8px 12px 12px; accent-color: #a78bfa; }

.tb-preset-card-meridian { border-color: rgba(56, 189, 248, 0.25); }
.tb-preset-card-meridian.active { box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35); }

.tb-panel-fleet-slots { border-top: 1px solid rgba(56, 189, 248, 0.15); }
.tb-fleet-slots-control { display: flex; align-items: center; gap: 12px; padding: 0 20px 16px; }
.tb-fleet-slots-control input[type="range"] { flex: 1; max-width: 320px; }

.tb-app-meridian-focus .tb-brand em { color: #38bdf8; }
.tb-badge-meridian { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.tb-badge-sim { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.tb-batch-bar-meridian { background: linear-gradient(90deg, #38bdf8, #34d399); }
.tb-chart-row-3 { grid-template-columns: repeat(3, 1fr); }
.tb-chart-row-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .tb-chart-row-3, .tb-chart-row-4 { grid-template-columns: 1fr; } }

.tb-panel-comparator-narrative { border-top: 1px solid rgba(167, 139, 250, 0.2); }
.tb-narrative-headline { padding: 0 20px; margin: 0 0 4px; font-size: 15px; }
.tb-narrative-sub { padding: 0 20px; margin: 0 0 12px; }
.tb-narrative-order { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 12px; }
.tb-narrative-rank { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.1); }
.tb-narrative-pulse { color: #34d399; border-color: rgba(52, 211, 153, 0.35); }
.tb-narrative-meridian { color: #38bdf8; border-color: rgba(56, 189, 248, 0.35); }
.tb-narrative-apex { color: #a78bfa; border-color: rgba(167, 139, 250, 0.35); }
.tb-narrative-list { margin: 0 20px 16px; padding-left: 18px; color: var(--nadir-gray-500); font-size: 13px; line-height: 1.55; }
.tb-narrative-bullet { margin-bottom: 6px; }

.tb-panel-filters { padding-bottom: 8px; }
.tb-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 20px 12px; }
.tb-filter-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--nadir-gray-500); min-width: 72px; }
.tb-filter-chip { font-size: 12px; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.12); background: transparent; color: var(--nadir-gray-400); cursor: pointer; }
.tb-filter-chip:hover { border-color: rgba(255,255,255,0.22); color: #e8eaed; }
.tb-filter-chip.active { background: rgba(56, 189, 248, 0.15); border-color: rgba(56, 189, 248, 0.45); color: #38bdf8; }
.tb-difficulty-pill { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 999px; }
.tb-difficulty-easy { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.tb-difficulty-medium { background: rgba(56, 189, 248, 0.12); color: #38bdf8; }
.tb-difficulty-hard { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.tb-difficulty-extreme { background: rgba(248, 113, 113, 0.18); color: #f87171; }
.tb-difficulty-agg-grid { display: flex; flex-direction: column; gap: 16px; padding: 0 20px 20px; }
.tb-difficulty-agg-card { border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 12px 0 4px; }
.tb-difficulty-agg-head { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 8px; }
.tb-difficulty-agg-head h3 { margin: 0; font-size: 14px; text-transform: capitalize; }
.tb-agg-grid-compact { padding: 0 12px; }

.tb-panel-meridian-story { border-top: 1px solid rgba(56, 189, 248, 0.2); }
.tb-meridian-story-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 16px 20px; }
@media (max-width: 700px) { .tb-meridian-story-grid { grid-template-columns: 1fr; } }
.tb-meridian-story-card { padding: 14px; border-radius: 10px; border: 1px solid rgba(56,189,248,0.2); background: rgba(56,189,248,0.04); }
.tb-meridian-story-card h3 { font-size: 13px; color: #38bdf8; margin: 0 0 6px; }
.tb-meridian-story-card p { font-size: 12px; color: var(--nadir-gray-500); margin: 0 0 8px; line-height: 1.5; }
.tb-meridian-stat { font-size: 18px; color: #e8eaed; }
.tb-meridian-delta { padding: 0 20px 16px; }
.tb-panel-meridian-forecast { border-top: 1px solid rgba(251, 191, 36, 0.2); }

.tb-panel-fleet-queue { border-top: 1px solid rgba(56, 189, 248, 0.18); }
.tb-fleet-queue-stats { padding: 0 20px 12px; }
.tb-fleet-slot-bar { margin: 0 20px 16px; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.06); overflow: hidden; }
.tb-fleet-slot-fill { height: 100%; background: linear-gradient(90deg, #38bdf8, #34d399); border-radius: 4px; }
.tb-tier-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.tb-tier-pill-critical { background: rgba(248, 113, 113, 0.18); color: #f87171; }
.tb-tier-pill-caution { background: rgba(251, 191, 36, 0.18); color: #fbbf24; }
.tb-fleet-deferred { padding: 0 20px 16px; }
.tb-fleet-deferred summary { cursor: pointer; color: var(--nadir-gray-500); font-size: 13px; margin-bottom: 8px; }
.tb-table-compact td, .tb-table-compact th { padding: 6px 8px; font-size: 12px; }

/* Embed mode — pulse.html iframe */
.tb-embed-mode .tb-topbar {
  padding: 10px 16px;
}
.tb-embed-mode .tb-brand em { display: none; }
.tb-embed-mode .tb-topbar-meta { font-size: 11px; }
.tb-app-embed .tb-main { padding: 12px 16px 20px; }
.tb-app-embed .tb-hero { padding: 20px 0 12px; }
.tb-app-embed .tb-hero h1 { font-size: 1.35rem; }
.tb-app-embed .tb-panel-presets,
.tb-app-embed .tb-grid-3,
.tb-app-embed .tb-footer { display: none; }

.tb-page-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.tb-panel-pulse-report { border-color: rgba(52, 211, 153, 0.2); }
.tb-badge-pulse {
  background: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.3);
}
.tb-panel-lead { margin: 0 20px 12px; font-size: 13px; }
.tb-report-preview {
  margin: 0 20px 20px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
}
.tb-report-preview summary {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--nadir-gray-400);
  background: rgba(255,255,255,0.03);
}
.tb-report-iframe {
  width: 100%;
  height: 520px;
  border: 0;
  background: #fff;
}

.tb-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  padding: 0 20px 20px;
}
.tb-preset-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 18px;
  background: rgba(255,255,255,0.02);
}
.tb-preset-card.active {
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.15);
}
.tb-preset-card h3 { font-size: 15px; margin-bottom: 6px; color: #6ee7b7; }
.tb-preset-tagline { font-size: 12px; color: var(--nadir-gray-400); margin-bottom: 8px; }
.tb-preset-persona { font-size: 12px; color: var(--nadir-gray-500); margin-bottom: 12px; line-height: 1.5; }
.tb-preset-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tb-btn-sm { padding: 6px 12px; font-size: 12px; }

/* Phase 2 commits 22–27 — corpus analytics + weakness narrative */
.tb-panel-batch-analytics {
  border-top: 1px solid rgba(52, 211, 153, 0.12);
}

.tb-panel-weakness {
  border-color: rgba(251, 191, 36, 0.2);
}

.tb-capability-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 20px 20px;
}

@media (max-width: 768px) {
  .tb-capability-grid { grid-template-columns: 1fr; }
}

.tb-capability-col {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
}

.tb-capability-col h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nadir-gray-500);
  margin-bottom: 10px;
}

.tb-capability-col ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.55;
  color: var(--nadir-gray-400);
}

.tb-capability-excludes {
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.04);
}

.tb-weakness-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  padding: 0 20px 20px;
}

.tb-weakness-card {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.tb-weakness-card:hover,
.tb-weakness-card.expanded {
  border-color: rgba(52, 211, 153, 0.35);
}

.tb-weakness-sev-high { border-left: 3px solid #f87171; }
.tb-weakness-sev-medium { border-left: 3px solid #fbbf24; }
.tb-weakness-sev-low { border-left: 3px solid #34d399; }
.tb-weakness-sev-info { border-left: 3px solid #38bdf8; }

.tb-weakness-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.tb-weakness-head h3 {
  font-size: 15px;
  margin: 0;
  flex: 1;
}

.tb-weakness-id {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  color: var(--nadir-gray-500);
  text-transform: uppercase;
}

.tb-weakness-sev {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--nadir-gray-400);
}

.tb-weakness-headline {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 10px;
  color: var(--nadir-gray-100);
}

.tb-weakness-bullets {
  margin: 0 0 12px;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--nadir-gray-400);
}

.tb-weakness-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: var(--nadir-gray-500);
  margin-bottom: 10px;
}

.tb-weakness-stats strong { color: #6ee7b7; }

.tb-weakness-upgrade,
.tb-weakness-note {
  font-size: 11px;
  color: var(--nadir-gray-500);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tb-weakness-table { margin-top: 8px; }
.tb-table-compact { font-size: 11px; }
.tb-weakness-empty { font-size: 11px; margin: 8px 0 0; }
