:root {
  /* High-Contrast Obsidian & Pearl Design System */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  
  /* Telemetry Console (Dark Contrast Anchor) */
  --telemetry-bg: #0b0f19;
  --telemetry-surface: #111827;
  --telemetry-border: #1f293d;
  --telemetry-text: #f8fafc;
  --telemetry-muted: #94a3b8;

  /* Vibrant Accents */
  --brand-blue: #2563eb;
  --brand-blue-hover: #1d4ed8;
  --brand-blue-glow: rgba(37, 99, 235, 0.25);
  --emerald-green: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.2);
  --amber-gold: #f59e0b;
  --crimson-red: #ef4444;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-hud: 0 20px 40px -15px rgba(2, 6, 23, 0.5);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* ================================================================
   HEADER & NAVBAR
   ================================================================ */
header {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.brand-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand-blue);
  border: 1px solid rgba(37, 99, 235, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--brand-blue);
}

/* ================================================================
   HOMEPAGE HERO & CONTROLS
   ================================================================ */
.hero {
  padding: 4rem 0 2rem;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-blue);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 2.25rem;
}

.search-bar-wrap {
  max-width: 650px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3.2rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 750px;
  margin: 0 auto 3.5rem;
}

.filter-btn {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--bg-page);
}

.filter-btn.active {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

/* ================================================================
   HOMEPAGE CARD GRID
   ================================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.version-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand-blue);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.card-snippet {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.55;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
}

/* ================================================================
   BREADCRUMBS & ARTICLE BASE
   ================================================================ */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  padding: 1.5rem 0 0.5rem;
}

.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--theme-primary, var(--brand-blue));
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.share-btn:hover {
  color: var(--text-primary);
  border-color: var(--theme-primary, var(--brand-blue));
}

.article-header {
  padding: 1.5rem 0 2rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}

.article-category {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--theme-primary, var(--brand-blue));
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.article-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.article-body {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 4rem;
}

.article-body h2 {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
  font-weight: 800;
}

.article-body h3 {
  font-size: 1.35rem;
  color: var(--text-primary);
  margin: 1.75rem 0 0.75rem;
  font-weight: 700;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body ul, .article-body ol {
  margin: 0 0 1.5rem 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body code {
  font-family: var(--font-mono);
  background: rgba(37, 99, 235, 0.08);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(37, 99, 235, 0.15);
  font-size: 0.9em;
  color: var(--brand-blue);
  font-weight: 600;
}

/* ================================================================
   POST PAGE LAYOUT & FULL-WIDTH HERO ANCHOR
   ================================================================ */
.post-main-layout {
  width: 100%;
  flex: 1;
}

.deck-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--telemetry-muted, #94a3b8);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.deck-breadcrumbs a {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.deck-breadcrumbs a:hover {
  color: var(--theme-primary, #38bdf8);
}

.deck-breadcrumbs .bc-sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
}

.deck-breadcrumbs .bc-current {
  color: #f1f5f9;
  font-weight: 600;
}

.telemetry-deck {
  width: 100%;
  background: var(--telemetry-bg);
  border-top: 2px solid var(--theme-border-highlight, rgba(56, 189, 248, 0.4));
  border-bottom: 1px solid var(--telemetry-border);
  border-left: none;
  border-right: none;
  border-radius: 0;
  padding: 2.25rem max(1.5rem, calc((100% - 1380px) / 2)) 3rem;
  margin: 0;
  color: var(--telemetry-text);
  box-shadow: var(--shadow-hud), 0 0 50px -10px var(--theme-glow, rgba(37, 99, 235, 0.18));
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.telemetry-deck::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--theme-glow, var(--brand-blue-glow)) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.telemetry-deck::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--theme-glow-sec, transparent) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.deck-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.app-identity {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.app-logo-box {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid var(--theme-border-highlight, rgba(255, 255, 255, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px var(--theme-glow, rgba(0, 0, 0, 0.4));
  transition: all 0.2s ease;
}

.app-meta-text h1 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #ffffff;
}

.app-meta-text p {
  color: var(--telemetry-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.2rem;
}

.deck-body-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .deck-body-split {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.deck-lifecycle-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  justify-content: space-between;
}

.stepper-wrap {
  background: var(--telemetry-surface);
  border: 1px solid var(--telemetry-border);
  border-radius: 14px;
  padding: 1.15rem 1.35rem;
  width: 100%;
  transition: all 0.2s ease;
}

.stepper-wrap:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--theme-border-highlight, rgba(255, 255, 255, 0.18));
}

.stepper-label-bar {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--telemetry-muted);
  margin-bottom: 0.9rem;
  display: flex;
  justify-content: space-between;
}

.stepper-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.step-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--telemetry-border);
  border-radius: 10px;
  padding: 0.85rem 0.65rem;
  text-align: center;
}

.step-box.active {
  border-color: var(--theme-stepper-active-border, var(--brand-blue));
  background: var(--theme-stepper-active-bg, rgba(37, 99, 235, 0.15));
  box-shadow: 0 0 16px var(--theme-glow, rgba(37, 99, 235, 0.25));
}

.step-box .version {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  display: block;
  color: #ffffff;
}

.step-box.active .version {
  color: var(--theme-stepper-active-text, #60a5fa);
}

.step-box .status {
  font-size: 0.7rem;
  color: var(--telemetry-muted);
  display: block;
  margin-top: 0.2rem;
}

/* Sprint Staging Staged Below Lifecycle */
.staging-card {
  background: var(--telemetry-surface);
  border: 1px solid var(--telemetry-border);
  border-radius: 14px;
  padding: 0.95rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  transition: all 0.2s ease;
}

.staging-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--theme-border-highlight, rgba(16, 185, 129, 0.35));
}

.staging-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.staging-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.staging-badge {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: var(--theme-staging-badge-bg, rgba(16, 185, 129, 0.12));
  color: var(--theme-staging-badge-text, #34d399);
  border: 1px solid var(--theme-staging-badge-border, rgba(16, 185, 129, 0.3));
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.staging-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--theme-primary, #10b981);
  box-shadow: 0 0 8px var(--theme-primary, #10b981);
  animation: pulseDot 1.8s infinite;
}

.staging-prs {
  font-size: 0.88rem;
  color: #cbd5e1;
}

.staging-prs strong {
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.staging-badge-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.staging-pct-badge {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--theme-staging-badge-text, #34d399);
  background: var(--theme-staging-badge-bg, rgba(16, 185, 129, 0.15));
  border: 1px solid var(--theme-staging-badge-border, rgba(16, 185, 129, 0.3));
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
}

.staging-days {
  font-size: 0.78rem;
  color: var(--telemetry-muted);
}

/* THE GLOWING HORIZONTAL PROGRESS BAR */
.staging-progress-wrap {
  width: 100%;
  position: relative;
  margin: 0.2rem 0 0.25rem 0;
}

.staging-progress-track {
  width: 100%;
  height: 9px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.staging-progress-bar {
  height: 100%;
  background: var(--theme-staging-gradient, linear-gradient(90deg, #059669 0%, #10b981 60%, #34d399 100%));
  border-radius: 9999px;
  position: relative;
  box-shadow: 0 0 14px var(--theme-staging-glow, rgba(16, 185, 129, 0.6)), 0 0 4px var(--theme-staging-glow, rgba(16, 185, 129, 0.4));
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.staging-progress-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--telemetry-muted);
}

.staging-progress-ticks .tick.active {
  color: var(--theme-staging-badge-text, #34d399);
  font-weight: 600;
}

.staging-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--telemetry-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.4rem;
}

/* Fallback for radial gauge if present */
.gauge-card {
  background: var(--telemetry-surface);
  border: 1px solid var(--telemetry-border);
  border-radius: 14px;
  padding: 0.85rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  transition: all 0.2s ease;
}

.radial-gauge {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.radial-gauge svg {
  transform: rotate(-90deg);
  width: 72px;
  height: 72px;
}

/* Registry Telemetry In Hero Deck (Right Column) */
.deck-registry-card {
  background: var(--telemetry-surface);
  border: 1px solid var(--telemetry-border);
  border-top: 3px solid var(--theme-primary, #38bdf8);
  border-radius: 14px;
  padding: 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.deck-registry-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--theme-border-highlight, rgba(56, 189, 248, 0.35));
}

.deck-reg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.deck-reg-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
}

.deck-reg-title svg {
  stroke: var(--theme-primary, #38bdf8);
}

.deck-reg-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  background: var(--theme-staging-badge-bg, rgba(16, 185, 129, 0.15));
  color: var(--theme-staging-badge-text, #34d399);
  border: 1px solid var(--theme-staging-badge-border, rgba(16, 185, 129, 0.3));
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.deck-reg-metric-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.deck-reg-caption {
  font-size: 11px;
  color: var(--telemetry-muted, #94a3b8);
  margin-bottom: 10px;
  line-height: 1.4;
}

.deck-reg-metric-val {
  font-size: 26px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #ffffff;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.deck-reg-trend-pill {
  font-size: 11px;
  font-weight: 600;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.deck-reg-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.deck-reg-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--telemetry-border);
  border-radius: 8px;
  padding: 6px 10px;
}

.deck-reg-tile-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--telemetry-muted);
  margin-bottom: 2px;
}

.deck-reg-tile-val {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: #f1f5f9;
}

.deck-reg-sparkline {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--telemetry-border);
  border-radius: 8px;
  padding: 8px 10px 4px 10px;
  margin-top: auto;
}

.deck-reg-sparkline-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--telemetry-muted);
  margin-top: 3px;
}

.radial-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}

.radial-progress {
  fill: none;
  stroke: var(--emerald-green);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 62.8;
  filter: drop-shadow(0 0 6px var(--emerald-glow));
}

.gauge-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.gauge-center-text .pct {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  display: block;
  line-height: 1;
}

.gauge-center-text .lbl {
  font-size: 0.65rem;
  color: var(--telemetry-muted);
  text-transform: uppercase;
}

.gauge-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.gauge-details strong {
  font-size: 1.1rem;
  color: #ffffff;
}

.gauge-details span {
  font-size: 0.82rem;
  color: var(--telemetry-muted);
}

.confidence-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--emerald-green);
  font-weight: 700;
  font-size: 0.8rem;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.radar-dot {
  width: 7px;
  height: 7px;
  background: var(--emerald-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald-green);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.deck-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--telemetry-border);
  font-size: 0.85rem;
  color: var(--telemetry-muted);
}

/* ================================================================
   ECOSYSTEM & OPERATIONAL TELEMETRY HUD (INSIDE TELEMETRY DECK)
   ================================================================ */
.deck-telemetry-hud {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--telemetry-border);
  position: relative;
  z-index: 2;
}

.hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hud-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
}

.hud-subtitle {
  font-size: 0.8rem;
  color: var(--telemetry-muted);
}

.hud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem;
}

.hud-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--telemetry-border);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.hud-tile:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.hud-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

.hud-tile-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--telemetry-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hud-tile-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.hud-tile-badge.gravity {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.hud-tile-badge.friction {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.hud-tile-badge.runtime {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.hud-tile-badge.security {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.hud-stat-primary {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  font-family: var(--font-mono);
}

.hud-stat-meta {
  font-size: 0.8rem;
  color: var(--telemetry-muted);
  line-height: 1.45;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hud-stat-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hud-stat-meta span::before {
  content: '•';
  color: rgba(255, 255, 255, 0.3);
}

/* ================================================================
   3-COLUMN STATISTICAL INTELLIGENCE GRID (INSIDE TELEMETRY DECK)
   ================================================================ */
.deck-stats-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--telemetry-border);
  position: relative;
  z-index: 2;
}

.deck-stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.deck-stats-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
}

.deck-stats-sub {
  font-size: 0.8rem;
  color: var(--telemetry-muted);
}

.deck-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

@media (max-width: 900px) {
  .deck-stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.deck-stat-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--telemetry-border);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  transition: all 0.2s ease;
}

.deck-stat-tile:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.deck-stat-tile.tile-git { border-top: 3px solid var(--theme-secondary, #6366f1); }
.deck-stat-tile.tile-market { border-top: 3px solid var(--theme-primary, #38bdf8); }
.deck-stat-tile.tile-health { border-top: 3px solid #10b981; }

.deck-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.deck-stat-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
}

.deck-stat-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid var(--telemetry-border);
}

.deck-stat-badge.branch {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.3);
  font-family: var(--font-mono);
}

.deck-stat-metric-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.deck-stat-metric-val {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* Diff bar inside dark card */
.deck-diff-bar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  margin: 8px 0 14px 0;
}

.deck-diff-add {
  background: #10b981;
}

.deck-diff-del {
  background: #f43f5e;
}

.deck-stat-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

.deck-stat-col strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
  font-family: var(--font-mono);
}

.deck-stat-col span {
  font-size: 10px;
  color: var(--telemetry-muted);
  white-space: nowrap;
}

/* Market distribution in dark card */
.deck-dist-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  gap: 2px;
  margin-bottom: 12px;
}

.deck-dist-segment {
  height: 100%;
  border-radius: 2px;
  transition: opacity 0.2s ease;
}

.deck-dist-segment:hover {
  opacity: 0.85;
}

.deck-dist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 10px;
  margin-bottom: 12px;
}

.deck-dist-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #cbd5e1;
}

.deck-dist-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.deck-dist-insight {
  font-size: 11px;
  color: var(--telemetry-muted);
  background: rgba(255, 255, 255, 0.02);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--telemetry-border);
  margin-top: auto;
  line-height: 1.4;
}

/* Scorecard in dark card */
.deck-score-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.deck-score-num {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ffffff;
  letter-spacing: -0.04em;
}

.deck-score-grade {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.deck-diag-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: auto;
}

.deck-diag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.deck-diag-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 3px;
}

.deck-diag-fill {
  height: 100%;
  border-radius: 2px;
}

.deck-footer-cert {
  font-size: 10px;
  color: var(--telemetry-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--telemetry-border);
}

/* ================================================================
   AUDITED RESOLUTION & FIX RADAR (INSIDE TELEMETRY DECK)
   ================================================================ */
.deck-audit-strip {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--telemetry-border);
  position: relative;
  z-index: 2;
}

.audit-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.audit-strip-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
}

.audit-strip-title svg {
  stroke: var(--theme-primary, #38bdf8);
}

.audit-strip-subtitle {
  font-size: 0.8rem;
  color: var(--telemetry-muted);
}

.audit-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem;
}

.audit-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--telemetry-border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.audit-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.audit-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.audit-tag {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.audit-tag.fixed {
  background: var(--theme-staging-badge-bg, rgba(16, 185, 129, 0.15));
  color: var(--theme-staging-badge-text, #34d399);
  border: 1px solid var(--theme-staging-badge-border, rgba(16, 185, 129, 0.3));
}

.audit-tag.security {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.audit-tag.deferred {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.audit-tag.friction {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.audit-card-pr {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--telemetry-muted);
}

.audit-card strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.audit-card p {
  font-size: 0.8rem;
  color: var(--telemetry-muted);
  line-height: 1.45;
  margin: 0;
}

.audit-card code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  color: #93c5fd;
}

/* ================================================================
   COCKPIT GRID & DELIVERABLES
   ================================================================ */
.cockpit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.cockpit-tile {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cockpit-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tile-info span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.tile-info strong {
  display: block;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-top: 0.2rem;
  font-weight: 800;
}

.tile-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.deliverables-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.deliverables-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.deliverable-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.deliverable-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.del-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.del-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.status-badge.merged {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-badge.rfc {
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.status-badge.signal {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.del-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.del-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.del-drawer {
  background: var(--bg-page);
  border: 1px dashed var(--border-subtle);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.del-drawer a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: none;
}

/* ================================================================
   TERMINAL WINDOW & CODE DIFF
   ================================================================ */
.terminal-window {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 14px;
  overflow: hidden;
  margin: 2.5rem 0 3.5rem;
  box-shadow: var(--shadow-hud);
}

.terminal-header {
  background: #1e293b;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-controls {
  display: flex;
  gap: 6px;
}

.t-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.t-red { background: #ef4444; }
.t-yellow { background: #f59e0b; }
.t-green { background: #10b981; }

.terminal-tabs {
  display: flex;
  gap: 0.5rem;
}

.t-tab {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.t-tab.active {
  background: #334155;
  color: #ffffff;
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.7;
  color: #cbd5e1;
  overflow-x: auto;
}

.diff-del {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  display: block;
  padding: 0.1rem 0.5rem;
  border-left: 3px solid #ef4444;
}

.diff-add {
  background: rgba(16, 185, 129, 0.2);
  color: #86efac;
  display: block;
  padding: 0.1rem 0.5rem;
  border-left: 3px solid #10b981;
}

.terminal-status-bar,
.terminal-badge {
  background: #1e293b;
  border-top: 1px solid #334155;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #94a3b8;
}

.terminal-status-bar span,
.terminal-badge span {
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 500;
}

.terminal-status-bar strong,
.terminal-badge strong {
  color: #10b981;
}

.diff-pane {
  transition: opacity 0.15s ease-in-out;
}

.section-header-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.85rem;
  margin: 3rem 0 1.5rem 0;
}

.section-header-bar h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

/* ================================================================
   SENTIMENT BOX & FAQS
   ================================================================ */
.sentiment-widget,
.sentiment-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.25rem 2rem;
  margin: 3.5rem 0;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.sentiment-widget h4,
.sentiment-box h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.sentiment-widget p,
.sentiment-box p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.sentiment-actions,
.sentiment-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.85rem;
  max-width: 680px;
  margin: 0 auto;
}

.sentiment-btn {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.9rem 0.6rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s;
}

.sentiment-btn:hover {
  border-color: var(--theme-primary, var(--brand-blue));
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.sentiment-btn.voted {
  border-color: var(--theme-primary, var(--brand-blue));
  background: var(--theme-stepper-active-bg, rgba(37, 99, 235, 0.08));
  color: var(--theme-primary, var(--brand-blue));
}

.pulse-pct {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--theme-primary, var(--brand-blue));
  margin-top: 0.15rem;
}

.vote-bar-wrap {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 0.4rem;
}

.vote-bar-fill {
  height: 100%;
  background: var(--theme-primary, var(--brand-blue));
  border-radius: 9999px;
  transition: width 0.5s ease;
}

.faq-wrap {
  margin: 3.5rem 0;
}

.faq-wrap h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.faq-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.faq-card strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.faq-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.editorial-note {
  background: #ffffff;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  padding: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 3.5rem;
  line-height: 1.6;
}

/* ================================================================
   LEGACY ARTICLE SUPPORT (Neovim, Prisma, etc.)
   ================================================================ */
.quick-info-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--brand-blue);
  border-radius: 12px;
  padding: 1.75rem;
  margin: 2rem 0 2.5rem;
  box-shadow: var(--shadow-sm);
}

.quick-info-box h3 {
  margin-top: 0 !important;
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quick-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.quick-info-item span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.quick-info-item strong {
  font-size: 1.05rem;
  color: var(--text-primary);
}

.progress-section {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: var(--bg-page);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-blue) 0%, var(--emerald-green) 100%);
  border-radius: 9999px;
  transition: width 0.5s ease-in-out;
}

/* ================================================================
   FOOTER & TOAST
   ================================================================ */
footer {
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 3rem 0;
  margin-top: auto;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.footer-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--brand-blue);
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--text-primary);
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  pointer-events: none;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   INTERACTIVE UPGRADE COMMAND CONTAINER (WORKBENCH)
   ================================================================ */
.upgrade-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.5rem;
  margin: 1.75rem 0 2.25rem 0;
  box-shadow: var(--shadow-md);
}

.upgrade-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.upgrade-box-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.upgrade-verified-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.upgrade-tabs {
  display: flex;
  gap: 0.35rem;
  background: var(--bg-page);
  padding: 0.25rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.upgrade-tab-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.upgrade-tab-btn:hover {
  color: var(--text-primary);
}

.upgrade-tab-btn.active {
  background: #ffffff;
  color: var(--theme-primary, var(--brand-blue));
  border-bottom: 2px solid var(--theme-primary, var(--brand-blue));
  box-shadow: var(--shadow-sm);
}

.cmd-pane {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0b0f19;
  border-radius: 10px;
  padding: 0.9rem 1.15rem;
  gap: 1rem;
  border: 1px solid var(--theme-border-highlight, #1f293d);
}

.cmd-pane code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.92rem;
  color: #38bdf8;
  white-space: nowrap;
  overflow-x: auto;
  user-select: all;
}

.cmd-pane code span.cmd-prompt {
  color: var(--theme-workbench-prompt, #64748b);
  margin-right: 0.5rem;
  user-select: none;
}

.cmd-pane code span.cmd-pkg {
  color: #34d399;
}

.cmd-pane code span.cmd-flag {
  color: #f59e0b;
}

.copy-cmd-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #1e293b;
  border: 1px solid #334155;
  color: #f1f5f9;
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.copy-cmd-btn:hover {
  background: var(--theme-stepper-active-bg, #334155);
  border-color: var(--theme-primary, #475569);
  color: #ffffff;
}

.copy-cmd-btn.copied {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #10b981;
}

.upgrade-safety-note {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

@media (max-width: 850px) {
  .deck-body-split {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .cmd-pane {
    flex-direction: column;
    align-items: flex-start;
  }
  .copy-cmd-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   DEVELOPER TELEMETRY BENTO GRID DESIGN SYSTEM
   Modern, compact 2x2 modular layout inspired by Vercel, Linear & GitHub
   ========================================================================== */

:root {
  --bento-bg: #ffffff;
  --bento-border: #e2e8f0;
  --bento-border-hover: #cbd5e1;
  --bento-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.02);
  --bento-shadow-hover: 0 10px 25px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --bento-radius: 14px;
  --bento-padding: 20px 22px;
  --bento-text-title: #0f172a;
  --bento-text-muted: #64748b;
  --bento-text-micro: #94a3b8;
  --bento-accent-blue: #0284c7;
  --bento-accent-emerald: #10b981;
  --bento-accent-indigo: #6366f1;
  --bento-accent-amber: #f59e0b;
  --bento-accent-rose: #f43f5e;
}

/* 3-Column Bento Container for Lower Intelligence Grid */
.telemetry-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 24px 0 36px 0;
  width: 100%;
}

@media (max-width: 960px) {
  .telemetry-bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Bento Card Base */
.bento-card {
  background: var(--bento-bg);
  border: 1px solid var(--bento-border);
  border-radius: var(--bento-radius);
  padding: var(--bento-padding);
  box-shadow: var(--bento-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  min-height: 290px;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  border-color: var(--bento-border-hover);
  box-shadow: var(--bento-shadow-hover);
}

/* Top Accent Stripe per Tile */
.bento-card.tile-registry { border-top: 3px solid #0284c7; }
.bento-card.tile-git { border-top: 3px solid #6366f1; }
.bento-card.tile-market { border-top: 3px solid #0ea5e9; }
.bento-card.tile-health { border-top: 3px solid #10b981; }

/* Card Header Lockup */
.bento-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.bento-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bento-text-title);
  letter-spacing: -0.01em;
}

.bento-card-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bento-card-badge.live {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}

.bento-card-badge.branch {
  background: #eef2ff;
  color: #4f46e5;
  border-color: #c7d2fe;
  font-family: var(--font-mono);
}

/* Pulsing beacon */
.pulse-live-beacon {
  width: 7px;
  height: 7px;
  background-color: var(--theme-primary, #10b981);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 8px var(--theme-primary, rgba(16, 185, 129, 0.6));
  animation: beacon-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes beacon-ping {
  0% { transform: scale(0.95); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
  100% { transform: scale(0.95); opacity: 1; }
}

/* Primary Metric Lockup */
.bento-metric-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.bento-metric-val {
  font-size: 26px;
  font-weight: 700;
  color: var(--bento-text-title);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.bento-trend-pill {
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #d1fae5;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Sub-metrics Ribbon */
.bento-submetric-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.bento-submetric-tile {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 8px 10px;
}

.bento-submetric-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--bento-text-muted);
  margin-bottom: 2px;
}

.bento-submetric-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--bento-text-title);
  font-variant-numeric: tabular-nums;
}

/* Micro SVG Sparkline */
.bento-sparkline-wrap {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 10px 12px 6px 12px;
  margin-top: auto;
}

.bento-sparkline-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--bento-text-micro);
  margin-top: 4px;
}

/* Diff Bar Component (Tile 2) */
.bento-diff-bar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: #f1f5f9;
  margin: 8px 0 14px 0;
}

.bento-diff-bar-add {
  background: #10b981;
}

.bento-diff-bar-del {
  background: #f43f5e;
}

/* 3-Col Metric Ribbon (Tile 2) */
.bento-git-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.bento-git-col strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--bento-text-title);
  font-variant-numeric: tabular-nums;
}

.bento-git-col span {
  font-size: 11px;
  color: var(--bento-text-muted);
  white-space: nowrap;
}

/* Segmented Version Bar (Tile 3) */
.bento-dist-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  gap: 2px;
  margin-bottom: 12px;
}

.bento-dist-segment {
  height: 100%;
  border-radius: 2px;
  transition: opacity 0.2s ease;
}

.bento-dist-segment:hover {
  opacity: 0.85;
}

.bento-dist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 10px;
  margin-bottom: 12px;
}

.bento-dist-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--bento-text-title);
}

.bento-dist-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bento-dist-insight {
  font-size: 11px;
  color: var(--bento-text-muted);
  background: #f8fafc;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #f1f5f9;
  margin-top: auto;
  line-height: 1.4;
}

/* Scorecard Layout (Tile 4) */
.bento-score-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.bento-score-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--bento-text-title);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.bento-score-grade {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.bento-diag-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: auto;
}

.bento-diag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.bento-diag-bar-track {
  height: 4px;
  background: #f1f5f9;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 3px;
}

.bento-diag-bar-fill {
  height: 100%;
  border-radius: 2px;
}

.bento-footer-cert {
  font-size: 10px;
  color: var(--bento-text-micro);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
}



