/* UAPI Explorer — Cinematic Product Showcase
   Fonts: Bricolage Grotesque (display) + Geist (body) + Geist Mono
   Themes: dark (default) + light via [data-theme="light"]
*/

/* ____ FONT FACES ____ */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/static/fonts/font-02.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/static/fonts/font-08.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/static/fonts/font-13.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ____ THEME TOKENS ____ */
:root {
  --bg-canvas: #0a0a0d;
  --bg-elevated: #131318;
  --bg-card: rgba(255, 255, 255, 0.025);
  --bg-card-hover: rgba(255, 255, 255, 0.055);
  --bg-glass: rgba(20, 20, 25, 0.6);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text-primary: #f4f4f5;
  --text-secondary: #a0a0aa;
  --text-muted: #6b6b75;
  --accent-amber: #f59e0b;
  --accent-pink: #ec4899;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  --gradient-cool: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
  --gradient-mesh: radial-gradient(at 0% 0%, rgba(245, 158, 11, 0.18) 0px, transparent 50%),
                   radial-gradient(at 98% 1%, rgba(236, 72, 153, 0.15) 0px, transparent 50%),
                   radial-gradient(at 50% 99%, rgba(139, 92, 246, 0.12) 0px, transparent 50%);
  --shadow-card: 0 0 0 1px var(--border), 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.2);
  --shadow-card-hover: 0 0 0 1px var(--border-strong), 0 8px 32px rgba(0,0,0,0.4), 0 16px 48px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 80px rgba(245, 158, 11, 0.15), 0 0 120px rgba(236, 72, 153, 0.1);
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-canvas: #fbfaf7;
  --bg-elevated: #ffffff;
  --bg-card: rgba(0, 0, 0, 0.018);
  --bg-card-hover: rgba(0, 0, 0, 0.04);
  --bg-glass: rgba(255, 255, 255, 0.75);
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.18);
  --text-primary: #18181b;
  --text-secondary: #52525b;
  --text-muted: #a1a1aa;
  --accent-amber: #d97706;
  --accent-pink: #db2777;
  --accent-purple: #7c3aed;
  --accent-cyan: #0891b2;
  --accent-emerald: #059669;
  --gradient-warm: linear-gradient(135deg, #d97706 0%, #db2777 100%);
  --gradient-cool: linear-gradient(135deg, #0891b2 0%, #7c3aed 100%);
  --gradient-mesh: radial-gradient(at 0% 0%, rgba(217, 119, 6, 0.12) 0px, transparent 50%),
                   radial-gradient(at 98% 1%, rgba(219, 39, 119, 0.10) 0px, transparent 50%),
                   radial-gradient(at 50% 99%, rgba(124, 58, 237, 0.08) 0px, transparent 50%);
  --shadow-card: 0 0 0 1px var(--border), 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 0 0 1px var(--border-strong), 0 8px 24px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 80px rgba(217, 119, 6, 0.1), 0 0 120px rgba(219, 39, 119, 0.08);
}

/* ____ RESET ____ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Geist", system-ui, -apple-system, sans-serif;
  background: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
  z-index: 0;
  transition: opacity var(--transition);
}
main, header, footer { position: relative; z-index: 1; }

/* ____ LAYOUT ____ */
.sheet { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ____ TOP NAV ____ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  text-decoration: none;
}
.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--gradient-warm);
  border-radius: 7px;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.3);
}
.brand-mark svg { width: 16px; height: 16px; color: white; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.5rem 0.85rem;
  border-radius: 7px;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-card); }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-secondary);
  font-family: "Geist", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.theme-toggle:hover { color: var(--text-primary); border-color: var(--border-strong); background: var(--bg-card-hover); }
.theme-toggle svg { width: 14px; height: 14px; }
.theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .sun { display: inline; }
[data-theme="light"] .theme-toggle .moon { display: none; }

.palette-trigger { cursor: pointer; }
.palette-trigger kbd {
  margin-left: 0.35rem;
  font-size: 0.65rem;
  padding: 1px 5px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  color: var(--text-muted);
}
.palette-trigger kbd { font-family: "Geist Mono", monospace; }

/* ____ HERO ____ */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 12px var(--accent-emerald);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.hero-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
  font-variation-settings: "opsz" 96;
}
.hero-title .grad {
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-title .thin {
  font-weight: 300;
  font-style: italic;
  color: var(--text-secondary);
  font-variation-settings: "opsz" 96;
}
.hero-lede {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 32rem;
  line-height: 1.55;
  margin-bottom: 2rem;
}
.hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: 9px;
  font-family: "Geist", sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--gradient-warm);
  color: white;
  box-shadow: 0 4px 24px rgba(245, 158, 11, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}
.btn svg { width: 14px; height: 14px; }

/* ____ HERO VISUAL — product constellation ____ */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}
.cortex-card {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a0a1f 0%, #0a0a0d 60%, #1f0a1a 100%);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-glow), var(--shadow-card-hover);
  display: flex;
  flex-direction: column;
}
.cortex-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(245, 158, 11, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 75% 75%, rgba(236, 72, 153, 0.40) 0%, transparent 50%),
    radial-gradient(circle at 50% 60%, rgba(139, 92, 246, 0.30) 0%, transparent 60%);
  filter: blur(2px);
  animation: bgShift 12s ease-in-out infinite alternate;
}
@keyframes bgShift {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.1) rotate(2deg); }
}
.cortex-mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}
.cortex-content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem;
  z-index: 1;
}
.cortex-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cortex-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  font-family: "Geist Mono", monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
}
.cortex-badge .dot {
  width: 5px; height: 5px;
  background: #fbbf24;
  border-radius: 50%;
  box-shadow: 0 0 8px #fbbf24;
  animation: dotPulse 2s ease-in-out infinite;
}
.cortex-id {
  font-family: "Geist Mono", monospace;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.05em;
}
.cortex-title-block { color: white; margin-top: 2rem; }
.cortex-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: clamp(2.75rem, 5.5vw, 3.75rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #fbbf24 50%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.cortex-tagline {
  font-family: "Geist", sans-serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 22rem;
  line-height: 1.5;
  font-weight: 400;
}
.cortex-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1.5rem;
}
.cortex-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
}
.cortex-status::before {
  content: "";
  width: 6px; height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}
.cortex-cta {
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  color: #fbbf24;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.cortex-cta:hover { border-bottom-color: #fbbf24; }

/* Agent access panel — below hero (class name kept for CSS stability) */
.cortex-access {
  margin-top: 3rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.access-panel > summary {
  list-style: none;
  cursor: pointer;
}
.access-panel > summary::-webkit-details-marker { display: none; }
.access-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  user-select: none;
}
.access-summary-main { min-width: 0; flex: 1; }
.access-summary-hint {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.access-chevron {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: transform 0.2s ease, border-color var(--transition);
}
.access-chevron svg { width: 16px; height: 16px; color: var(--text-secondary); }
.access-panel[open] .access-chevron { transform: rotate(180deg); border-color: var(--border-strong); }
.access-panel .cortex-access-head {
  padding: 0;
  margin: 0;
  border-bottom: none;
  display: block;
}
.access-panel .access-legacy { margin: 0.25rem 0 0; }
.access-panel .cortex-access-body {
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.35rem 1.4rem;
}
#agent-access { scroll-margin-top: 5rem; }
.cortex-access-head {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 1rem;
}
.cortex-access-head::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--gradient-warm);
  border-radius: 2px;
}
.cortex-access-body {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.access-step {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.access-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-strong);
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-amber);
  margin-bottom: 0.25rem;
}
.access-step-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.access-step-body {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.access-step-body code {
  font-size: 0.78em;
  word-break: break-all;
}

/* ____ SECTION ____ */
.section {
  padding: 4rem 0;
  position: relative;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.section-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 36rem;
}

/* ____ STATS STRIP ____ */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
@media (max-width: 720px) { .stats { grid-template-columns: 1fr; } }
.stat {
  padding: 1.75rem;
  border-right: 1px solid var(--border);
  position: relative;
}
@media (max-width: 720px) {
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: -0.035em;
  display: block;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.stat-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* ____ PRODUCT GRID ____ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.product-card {
  position: relative;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 200px;
}
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--card-glow, transparent);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.product-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}
.product-card:hover::before { opacity: 1; }
.product-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--icon-bg, var(--bg-card-hover));
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.product-icon svg { width: 22px; height: 22px; }
.product-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}
.product-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
  position: relative;
  z-index: 1;
}
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}
.product-exp {
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* per-card themes — distinctive gradients per product */
.product-mark {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--mark-bg, var(--bg-card-hover));
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  box-shadow: 0 4px 16px var(--mark-shadow, rgba(0, 0, 0, 0.2));
}
.product-mark svg {
  width: 26px;
  height: 26px;
  color: white;
}
.product-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.product-name-block {
  position: relative;
  z-index: 1;
  flex: 1;
}
.product-tagline {
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.product-legacy,
.access-legacy,
.detail-legacy {
  font-family: "Geist Mono", monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin: 0.15rem 0 0;
  opacity: 0.85;
}
.access-legacy {
  padding: 0 1.25rem 0.35rem;
}

/* per-product color themes — every family gets a visible mark gradient */
.pc-thaladex,
.pc-cortex    { --mark-bg: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%); --mark-shadow: rgba(245, 158, 11, 0.3); --card-glow: radial-gradient(circle at top right, rgba(245, 158, 11, 0.10) 0%, transparent 60%); }
.pc-beacon    { --mark-bg: linear-gradient(135deg, #ec4899 0%, #fb7185 100%); --mark-shadow: rgba(236, 72, 153, 0.3); --card-glow: radial-gradient(circle at top right, rgba(236, 72, 153, 0.10) 0%, transparent 60%); }
.pc-cadence   { --mark-bg: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%); --mark-shadow: rgba(139, 92, 246, 0.3); --card-glow: radial-gradient(circle at top right, rgba(139, 92, 246, 0.10) 0%, transparent 60%); }
.pc-switchboard { --mark-bg: linear-gradient(135deg, #06b6d4 0%, #14b8a6 100%); --mark-shadow: rgba(6, 182, 212, 0.3); --card-glow: radial-gradient(circle at top right, rgba(6, 182, 212, 0.10) 0%, transparent 60%); }
.pc-devine    { --mark-bg: linear-gradient(135deg, #10b981 0%, #84cc16 100%); --mark-shadow: rgba(16, 185, 129, 0.3); --card-glow: radial-gradient(circle at top right, rgba(16, 185, 129, 0.10) 0%, transparent 60%); }
.pc-flowhunter { --mark-bg: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%); --mark-shadow: rgba(239, 68, 68, 0.3); --card-glow: radial-gradient(circle at top right, rgba(245, 158, 11, 0.10) 0%, transparent 60%); }
.pc-skipper   { --mark-bg: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%); --mark-shadow: rgba(236, 72, 153, 0.3); --card-glow: radial-gradient(circle at top right, rgba(236, 72, 153, 0.10) 0%, transparent 60%); }
.pc-explorer  { --mark-bg: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%); --mark-shadow: rgba(139, 92, 246, 0.3); --card-glow: radial-gradient(circle at top right, rgba(139, 92, 246, 0.10) 0%, transparent 60%); }
.pc-mesh      { --mark-bg: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%); --mark-shadow: rgba(6, 182, 212, 0.3); --card-glow: radial-gradient(circle at top right, rgba(6, 182, 212, 0.10) 0%, transparent 60%); }
.pc-mail      { --mark-bg: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%); --mark-shadow: rgba(56, 189, 248, 0.3); --card-glow: radial-gradient(circle at top right, rgba(56, 189, 248, 0.10) 0%, transparent 60%); }
.pc-diffuser  { --mark-bg: linear-gradient(135deg, #a78bfa 0%, #6366f1 100%); --mark-shadow: rgba(167, 139, 250, 0.3); --card-glow: radial-gradient(circle at top right, rgba(167, 139, 250, 0.10) 0%, transparent 60%); }
.pc-thinktank { --mark-bg: linear-gradient(135deg, #f472b6 0%, #c026d3 100%); --mark-shadow: rgba(244, 114, 182, 0.3); --card-glow: radial-gradient(circle at top right, rgba(244, 114, 182, 0.10) 0%, transparent 60%); }
.pc-trammel   { --mark-bg: linear-gradient(135deg, #fbbf24 0%, #ea580c 100%); --mark-shadow: rgba(251, 191, 36, 0.3); --card-glow: radial-gradient(circle at top right, rgba(251, 191, 36, 0.10) 0%, transparent 60%); }
.pc-command   { --mark-bg: linear-gradient(135deg, #34d399 0%, #059669 100%); --mark-shadow: rgba(52, 211, 153, 0.3); --card-glow: radial-gradient(circle at top right, rgba(52, 211, 153, 0.10) 0%, transparent 60%); }
.pc-operator  { --mark-bg: linear-gradient(135deg, #fbbf24 0%, #d97706 100%); --mark-shadow: rgba(251, 191, 36, 0.3); --card-glow: radial-gradient(circle at top right, rgba(251, 191, 36, 0.10) 0%, transparent 60%); }
.pc-governance { --mark-bg: linear-gradient(135deg, #fb7185 0%, #e11d48 100%); --mark-shadow: rgba(251, 113, 133, 0.3); --card-glow: radial-gradient(circle at top right, rgba(251, 113, 133, 0.10) 0%, transparent 60%); }

/* generic accent themes (for explore index — used by kind) */
.pc-amber    { --icon-bg: rgba(245, 158, 11, 0.12); --card-glow: radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 60%); }
.pc-pink     { --icon-bg: rgba(236, 72, 153, 0.12); --card-glow: radial-gradient(circle at top right, rgba(236, 72, 153, 0.08), transparent 60%); }
.pc-purple   { --icon-bg: rgba(139, 92, 246, 0.12); --card-glow: radial-gradient(circle at top right, rgba(139, 92, 246, 0.08), transparent 60%); }
.pc-cyan     { --icon-bg: rgba(6, 182, 212, 0.12); --card-glow: radial-gradient(circle at top right, rgba(6, 182, 212, 0.08), transparent 60%); }
.pc-emerald  { --icon-bg: rgba(16, 185, 129, 0.12); --card-glow: radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 60%); }
.pc-amber svg { color: var(--accent-amber); }
.pc-pink svg { color: var(--accent-pink); }
.pc-purple svg { color: var(--accent-purple); }
.pc-cyan svg { color: var(--accent-cyan); }
.pc-emerald svg { color: var(--accent-emerald); }

/* ____ ROUTES ____ */
.routes-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  overflow: hidden;
}
.routes-group + .routes-group { margin-top: 1.5rem; }
.routes-group-head {
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-amber);
  margin-bottom: 0.5rem;
}
.route {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-family: "Geist Mono", monospace;
  font-size: 0.82rem;
}
.route:last-child { border-bottom: none; }
.route-method {
  color: var(--accent-amber);
  font-weight: 600;
}
.route-path { color: var(--text-primary); }
.route-desc {
  color: var(--text-muted);
  font-family: "Geist", sans-serif;
  font-size: 0.8rem;
}
@media (max-width: 720px) {
  .route { grid-template-columns: 64px 1fr; }
  .route-desc { grid-column: 1 / -1; padding-left: 64px; }
}

/* ____ FOOTER ____ */
.footer {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.footer-meta {
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: 1.25rem;
  font-family: "Geist Mono", monospace;
  font-size: 0.75rem;
}
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent-amber); }

/* ____ REVEAL ANIMATION ____ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.15s; }
.reveal-3 { animation-delay: 0.25s; }
.reveal-4 { animation-delay: 0.35s; }
.reveal-5 { animation-delay: 0.45s; }
.reveal-6 { animation-delay: 0.55s; }
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ____ CODE ____ */
code {
  font-family: "Geist Mono", monospace;
  font-size: 0.85em;
  background: var(--bg-card-hover);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.live-dot {
  color: var(--accent-emerald);
  text-shadow: 0 0 8px var(--accent-emerald);
}

/* ____ SCROLLBAR ____ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-canvas); }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 5px;
  border: 2px solid var(--bg-canvas);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ____ SELECTION ____ */
::selection {
  background: rgba(245, 158, 11, 0.3);
  color: var(--text-primary);
}

/* ____ CARD DETAIL PAGE ____ */
.detail-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--gradient-mesh);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: "Geist Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  transition: all var(--transition);
}
.back-link:hover { color: var(--accent-amber); border-color: var(--accent-amber); }
.back-link svg { width: 14px; height: 14px; }
.detail-hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) { .detail-hero-grid { grid-template-columns: 1fr; gap: 2rem; } }
.detail-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.detail-badge {
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}
.detail-badge-active { color: var(--accent-emerald); border-color: var(--accent-emerald); }
.detail-badge-planned { color: var(--accent-amber); border-color: var(--accent-amber); }
.detail-badge-decommissioned { color: var(--text-muted); border-color: var(--border-strong); }
.detail-badge-unknown { color: var(--text-muted); }
.detail-badge-exp { color: var(--accent-cyan); border-color: var(--accent-cyan); }
.detail-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -0.035em;
  line-height: 1.0;
  margin-bottom: 0.75rem;
  font-variation-settings: "opsz" 96;
}
.detail-summary {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 36rem;
}
.detail-quickfacts {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
}
.qf-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.qf-row:last-child { border-bottom: none; }
.qf-label {
  font-family: "Geist Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.qf-value {
  font-size: 0.92rem;
  color: var(--text-primary);
  word-break: break-word;
}
.qf-value code { font-size: 0.85em; }

.detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; gap: 2rem; } }
.detail-main { display: flex; flex-direction: column; gap: 2.5rem; }
.detail-side { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 6rem; }
@media (max-width: 900px) { .detail-side { position: static; } }
.detail-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
}
.detail-side-block { padding: 1.25rem 1.5rem; }
.detail-block-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.detail-block-title::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--gradient-warm);
  border-radius: 2px;
}
.prose {
  font-family: "Geist", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
}
.prose em { color: var(--text-secondary); }
.empty {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

/* capabilities list */
.cap-list { display: flex; flex-direction: column; gap: 0.5rem; }
.cap-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.cap-row:last-child { border-bottom: none; }
.cap-name {
  font-family: "Geist Mono", monospace;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-amber);
}
.cap-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
@media (max-width: 600px) { .cap-row { grid-template-columns: 1fr; gap: 0.25rem; } }

/* dependencies */
.dep-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.dep-chip {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: "Geist Mono", monospace;
  font-size: 0.78rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition);
}
.dep-chip:hover { border-color: var(--accent-amber); color: var(--accent-amber); }

/* breadcrumb timeline */
.bc-timeline { position: relative; padding-left: 1.5rem; }
.bc-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}
.bc-row {
  position: relative;
  padding: 0.5rem 0 1rem;
}
.bc-dot {
  position: absolute;
  left: -1.5rem;
  top: 8px;
  width: 13px;
  height: 13px;
  background: var(--bg-elevated);
  border: 2px solid var(--accent-amber);
  border-radius: 50%;
}
.bc-body { display: flex; flex-direction: column; gap: 0.2rem; }
.bc-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
}
.bc-kind {
  font-weight: 600;
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.bc-kind-restarted, .bc-kind-credential-rotated { color: var(--accent-pink); }
.bc-kind-modified, .bc-kind-observed { color: var(--accent-cyan); }
.bc-kind-created { color: var(--accent-emerald); }
.bc-actor { color: var(--text-muted); }
.bc-date { color: var(--text-muted); margin-left: auto; }
.bc-summary { font-size: 0.92rem; color: var(--text-primary); line-height: 1.5; }

/* related docs */
.related-list { display: flex; flex-direction: column; gap: 0.5rem; }
.related-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
  align-items: baseline;
}
.related-row:hover { border-color: var(--accent-amber); }
.related-slug {
  font-family: "Geist Mono", monospace;
  font-size: 0.78rem;
  color: var(--accent-amber);
}
.related-title {
  grid-column: 1 / -1;
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.4;
}
.related-kind {
  font-family: "Geist Mono", monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* mini code block */
.codeblock-mini {
  margin-top: 0.75rem;
  background: #1a1410;
  color: #e8dec4;
  padding: 0.85rem 1rem 0.85rem 0;
  border-radius: 8px;
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  line-height: 1.75;
  overflow-x: auto;
  position: relative;
}

/* utility classes for variant layouts */
.hero.no-pad-bottom { padding-bottom: 0; }
.hero.tall { padding: 8rem 0; }
.centered { text-align: center; }
.centered .hero-eyebrow { margin: 0 auto 1.5rem; }
.centered .hero-lede { margin: 1rem auto 2rem; }
.centered .hero-cta { justify-content: center; }
.pink-dot { background: var(--accent-pink) !important; }
.section.compact { padding-top: 2rem; }
.detail-main .prose { font-size: 1rem; line-height: 1.65; }
.detail-side .prose { font-size: 0.92rem; }
.codeblock-mini pre { white-space: pre-wrap; word-break: break-word; }
.codeblock-mini .comment { color: rgba(232, 222, 196, 0.5); font-style: italic; }
.codeblock-mini .var { color: #d4a96a; }

/* ____ UTILITY ____ */
.status-extra { margin-left: 0.5rem; }
.prose-body.narrow { max-width: 42rem; margin: 0 auto; }
kbd {
  display: inline-block;
  padding: 1px 6px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  font-family: "Geist Mono", monospace;
  font-size: 0.78em;
  color: var(--text-primary);
}

/* ____ DOCS LISTING (/docs) ____ */
.doc-section { margin-bottom: 3rem; }
.doc-section-head {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-strong);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.doc-list { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
@media (min-width: 900px) { .doc-list { grid-template-columns: 1fr 1fr; gap: 0.75rem 2rem; } }
.doc-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}
.doc-row:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.doc-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.3;
}
.doc-summary {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}
.doc-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.doc-slug { word-break: break-all; }

/* ____ DOC READING (/docs/{slug}) ____ */
.detail-doc-meta {
  margin-top: 0.5rem;
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.dot-sep { margin: 0 0.5rem; opacity: 0.5; }
.doc-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; gap: 2rem; } }
.doc-side { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 6rem; }
@media (max-width: 900px) { .doc-side { position: static; } }

/* rendered markdown */
.prose-body {
  font-family: "Geist", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
}
.prose-body h1, .prose-body h2, .prose-body h3, .prose-body h4 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
  scroll-margin-top: 6rem;
}
.prose-body h1 { font-size: 1.9rem; margin-top: 0; }
.prose-body h2 { font-size: 1.45rem; padding-bottom: 0.3rem; border-bottom: 1px solid var(--border); }
.prose-body h3 { font-size: 1.2rem; }
.prose-body h4 { font-size: 1rem; color: var(--text-secondary); }
.prose-body p { margin-bottom: 1rem; }
.prose-body ul, .prose-body ol { margin: 0 0 1.25rem 1.5rem; }
.prose-body li { margin-bottom: 0.4rem; }
.prose-body blockquote {
  margin: 1.25rem 0;
  padding: 0.75rem 1.25rem;
  border-left: 3px solid var(--accent-amber);
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary);
  font-style: italic;
}
.prose-body code {
  font-family: "Geist Mono", monospace;
  font-size: 0.85em;
  background: var(--bg-card-hover);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.prose-body pre {
  margin: 1.25rem 0;
  background: #1a1410;
  color: #e8dec4;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  font-family: "Geist Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.6;
}
.prose-body pre code { background: none; border: none; padding: 0; color: inherit; }
.prose-body a {
  color: var(--accent-amber);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.prose-body a:hover { border-bottom-color: var(--accent-amber); }
.prose-body hr {
  margin: 2.5rem 0;
  border: none;
  height: 1px;
  background: var(--border);
}
.prose-body table {
  width: 100%;
  margin: 1.25rem 0;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.prose-body th, .prose-body td {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  text-align: left;
}
.prose-body th { background: var(--bg-card); font-weight: 600; }
.prose-body img { max-width: 100%; border-radius: 8px; }

/* codehilite (pygments) — minimal dark theme */
.prose-body .highlight {
  background: #1a1410;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin: 1.25rem 0;
  overflow-x: auto;
}
.prose-body .highlight pre { background: none; padding: 0; margin: 0; }
.prose-body .k { color: #fbbf24; }
.prose-body .s { color: #a3e635; }
.prose-body .n { color: #e8dec4; }
.prose-body .c { color: rgba(232, 222, 196, 0.5); font-style: italic; }
.prose-body .nf, .prose-body .fm { color: #ec4899; }
.prose-body .nc, .prose-body .nn { color: #06b6d4; }

/* tags */
.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-chip {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition);
}
.tag-chip:hover { color: var(--accent-amber); border-color: var(--accent-amber); }

/* ____ COMMAND PALETTE (Cmd+K) ____ */
.palette-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  animation: fadeIn 150ms ease-out;
}
.palette-backdrop.open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.palette {
  width: 100%;
  max-width: 600px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: paletteSlide 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes paletteSlide {
  from { transform: translateY(-12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.palette-input-wrap {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 0 1rem;
}
.palette-input-wrap svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.palette-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 1rem;
  font-family: "Geist", sans-serif;
  font-size: 1rem;
  color: var(--text-primary);
}
.palette-input::placeholder { color: var(--text-muted); }
.palette-kbd {
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  padding: 2px 6px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
}
.palette-results {
  max-height: 50vh;
  overflow-y: auto;
  padding: 0.5rem;
}
.palette-group {
  font-family: "Geist Mono", monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0.75rem 0.75rem 0.4rem;
}
.palette-result {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  transition: background 100ms ease;
}
.palette-result.active, .palette-result:hover {
  background: var(--bg-card-hover);
}
.palette-result-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--bg-card-hover);
  border-radius: 6px;
  flex-shrink: 0;
}
.palette-result-icon svg { width: 14px; height: 14px; color: var(--accent-amber); }
.palette-result-body { flex: 1; min-width: 0; }
.palette-result-title {
  font-family: "Geist", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.palette-result-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.palette-empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.palette-hint {
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--border);
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* ____ COPY BUTTON ____ */
.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.7);
  font-family: "Geist Mono", monospace;
  font-size: 0.65rem;
  padding: 3px 8px;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition), background var(--transition);
}
.codeblock:hover .copy-btn, .codeblock-mini:hover .copy-btn { opacity: 1; }
.copy-btn:hover { background: rgba(255, 255, 255, 0.15); color: white; }
.copy-btn.copied { background: rgba(16, 185, 129, 0.25); color: #10b981; border-color: #10b981; opacity: 1; }

/* ____ TOAST ____ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent-emerald);
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  font-family: "Geist", sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ____ HERO VISUAL ANIMATIONS — magic ____ */
.ring-rotate-slow { animation: ringRotate 60s linear infinite; }
.ring-rotate-rev { animation: ringRotate 45s linear infinite reverse; }
.ring-origin { transform-origin: 200px 200px; transform-box: fill-box; }
@keyframes ringRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.data-flow path {
  stroke-dasharray: 6 8;
  animation: dashMove 4s linear infinite;
}
@keyframes dashMove { to { stroke-dashoffset: -28; } }

.dash-flow { animation: dashMove 6s linear infinite; }
.dash-flow-rev { animation: dashMove 6s linear infinite reverse; }

.node-pulse { animation: nodeBreathe 3s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.node-pulse-2 { animation-delay: 0.5s; }
.node-pulse-3 { animation-delay: 1s; }
.node-pulse-4 { animation-delay: 1.5s; }
@keyframes nodeBreathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.4); }
}

.core-pulse {
  animation: coreBreathe 2.5s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes coreBreathe {
  0%, 100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 6px #fbbf24); }
  50% { opacity: 0.85; transform: scale(1.15); filter: drop-shadow(0 0 16px #fbbf24); }
}

.particle { animation: floatParticle 8s ease-in-out infinite; }
.particle-1 { animation-delay: 0s; }
.particle-2 { animation-delay: 2s; }
.particle-3 { animation-delay: 4s; }
.particle-4 { animation-delay: 6s; }
@keyframes floatParticle {
  0%, 100% { transform: translate(0, 0); opacity: 0.8; }
  50% { transform: translate(20px, -15px); opacity: 0.4; }
}

/* Atmospheric background orbs */
.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.atmosphere::before, .atmosphere::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.atmosphere::before {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25), transparent 60%);
  top: -200px;
  left: -200px;
  animation: orbDrift1 30s ease-in-out infinite;
}
.atmosphere::after {
  background: radial-gradient(circle, rgba(236, 72, 153, 0.20), transparent 60%);
  bottom: -200px;
  right: -200px;
  animation: orbDrift2 35s ease-in-out infinite;
}
@keyframes orbDrift1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(100px, 80px); }
}
@keyframes orbDrift2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-120px, -100px); }
}
[data-theme="light"] .atmosphere::before { opacity: 0.25; }
[data-theme="light"] .atmosphere::after { opacity: 0.2; }

/* ____ ENRICHED PRODUCT CARDS ____ */
.product-card {
  min-height: 240px;
}
.product-card .product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 1;
}
.product-card .product-cta {
  color: var(--accent-amber);
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--transition);
}
.product-card:hover .product-cta {
  opacity: 1;
  transform: translateX(0);
}
.product-card .product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}
.product-card .product-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}
.product-card .product-status-dot.planned {
  background: var(--accent-amber);
  box-shadow: 0 0 8px var(--accent-amber);
}
.product-card .product-status-dot.decommissioned {
  background: var(--text-muted);
  box-shadow: none;
}

/* ____ STATS ANIMATED ENTRANCE ____ */
.stat-num { transition: opacity 300ms ease; }
.stat-num.counting { opacity: 0.85; }


.recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.recent-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.4rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}
.recent-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.recent-kind {
  font-family: "Geist Mono", monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-pink);
}
.recent-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.3;
}
.recent-summary {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.recent-date {
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  padding-top: 0.5rem;
  border-top: 1px dotted var(--border);
}

/* ____ HERO TWEAKS ____ */
.hero-cta .btn kbd {
  margin-left: 0.5rem;
  font-size: 0.85em;
}

/* ____ INLINE HERO STATS ____ */
.hero-stats-inline {
  display: flex;
  gap: 2.5rem;
  margin: 1.75rem 0 1.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hsi { display: flex; flex-direction: column; gap: 0.25rem; }
.hsi-num {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.85rem;
  line-height: 1;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: -0.025em;
}
.hsi-label {
  font-family: "Geist Mono", monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* ____ CONSTELLATION PANEL ____ */
.constellation-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow), var(--shadow-card-hover);
}
.constellation-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(245, 158, 11, 0.12), transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.10), transparent 50%);
  pointer-events: none;
}
.constellation-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  position: relative;
}
.constellation-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.constellation-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pulse-mini {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: dotPulse 2s ease-in-out infinite;
}
.constellation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  position: relative;
}
.constellation-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
  position: relative;
}
.constellation-tile:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.constellation-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--mark-bg, var(--bg-card-hover));
  box-shadow: 0 4px 12px var(--mark-shadow, transparent);
  position: relative;
}
.constellation-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.constellation-mark svg {
  width: 22px;
  height: 22px;
  color: white;
}
.constellation-name {
  font-family: "Geist", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  letter-spacing: 0.01em;
}
.constellation-tile:hover .constellation-name {
  color: var(--text-primary);
}
.constellation-foot {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: right;
  position: relative;
}
.constellation-foot a {
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  color: var(--accent-amber);
  text-decoration: none;
  letter-spacing: 0.05em;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.constellation-foot a:hover { border-bottom-color: var(--accent-amber); }

/* ____ DETAIL ENHANCEMENTS ____ */
.block-count {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 1px 7px;
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: 100px;
  vertical-align: middle;
}

/* expandable breadcrumb detail rows */
.bc-row-detail {
  position: relative;
  padding-left: 0;
}
.bc-row-detail > summary {
  list-style: none;
  cursor: pointer;
  position: relative;
}
.bc-row-detail > summary::-webkit-details-marker { display: none; }
.bc-row-detail > summary::after {
  content: "";
  position: absolute;
  top: 0.6rem;
  left: -1.5rem;
  width: 13px;
  height: 13px;
  background: var(--bg-elevated);
  border: 2px solid var(--accent-amber);
  border-radius: 50%;
  z-index: 2;
}
.bc-detail {
  margin: 0.5rem 0 0;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  border-left: 2px solid var(--accent-amber);
}

/* "Show N more" expandable section */
.expand-more {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--transition);
}
.expand-more > summary {
  list-style: none;
  font-family: "Geist Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-amber);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.expand-more > summary::-webkit-details-marker { display: none; }
.expand-more > summary::before {
  content: "+";
  display: inline-block;
  width: 16px;
  height: 16px;
  background: var(--accent-amber);
  color: var(--bg-elevated);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
}
.expand-more[open] > summary::before { content: "−"; }
.expand-more > div { margin-top: 0.85rem; }
.expand-more:hover { border-color: var(--accent-amber); background: var(--bg-card-hover); }

/* expandable section block */
.expand-block {
  cursor: pointer;
}
.expand-block > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.expand-block > summary::-webkit-details-marker { display: none; }
.expand-block > summary::-moz-list-marker { display: none; }
.expand-hint {
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--transition);
}
.expand-block[open] > summary .expand-hint::before { content: "collapse "; }
.expand-block:not([open]) > summary .expand-hint::before { content: "expand "; }
.expand-block > summary::-webkit-details-marker { display: none; }
.expand-block[open] > summary { margin-bottom: 1rem; }

/* api tabs */
.api-tabs { display: flex; flex-direction: column; gap: 0.85rem; }
.api-tabs .codeblock-mini { margin-top: 0; }

/* extra rows in related list (visible when expanded) */
.related-row.extra-row {
  background: var(--bg-card);
  opacity: 0.85;
}

/* dep chip kind label */
.dep-kind {
  margin-left: 0.4rem;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 1px 5px;
  background: var(--bg-card-hover);
  border-radius: 3px;
}

/* link styling inside prose detail */
.bc-summary a, .bc-detail a {
  color: var(--accent-amber);
  text-decoration: none;
  border-bottom: 1px dotted;
}
.codeblock-mini::before {
  content: "$";
  position: absolute;
  left: 1rem;
  top: 0.85rem;
  color: var(--accent-amber);
  font-weight: 600;
}
.codeblock-mini pre {
  margin-left: 1.5rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.codeblock-mini .comment { color: rgba(232, 222, 196, 0.5); font-style: italic; }
.codeblock-mini .var { color: #d4a96a; }



/* ____ DOCS CONSOLE (v0.5.4) ____ */
.docs-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.docs-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  background: var(--bg-deep, var(--bg));
  border: 1px solid var(--border);
  border-radius: 10px;
}
.docs-search-wrap svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.docs-search-wrap input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-family: "Geist", sans-serif;
  font-size: 0.95rem;
}
.kind-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.kind-chip {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-family: "Geist Mono", monospace;
  cursor: pointer;
  transition: all var(--transition);
}
.kind-chip:hover { border-color: var(--border-strong); color: var(--text-primary); }
.kind-chip.active {
  background: linear-gradient(135deg, rgba(245,158,11,0.18), rgba(236,72,153,0.14));
  border-color: rgba(245,158,11,0.45);
  color: var(--text-primary);
}
.chip-count { opacity: 0.65; margin-left: 0.25rem; }
.docs-count { font-family: "Geist Mono", monospace; font-size: 0.75rem; color: var(--text-muted); }
.docs-empty { text-align: center; color: var(--text-muted); padding: 2rem; }
.doc-row.featured {
  border-color: rgba(245,158,11,0.35);
  background: linear-gradient(180deg, rgba(245,158,11,0.08), var(--bg-card));
}
.doc-row.is-hidden { display: none; }
.doc-section.is-hidden { display: none; }
.featured-section .doc-section-head { color: var(--accent-amber, #f59e0b); }
.doc-kind-pill {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-amber, #f59e0b);
}
.doc-slug-inline { word-break: break-all; }
.badge-safe {
  background: rgba(63,185,80,0.12);
  border: 1px solid rgba(63,185,80,0.35);
  color: #3fb950;
}
.toc-nav { display: flex; flex-direction: column; gap: 0.35rem; }
.toc-nav a {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-left: 2px solid var(--border);
  padding: 0.15rem 0 0.15rem 0.65rem;
  line-height: 1.35;
}
.toc-nav a:hover { color: var(--text-primary); border-left-color: var(--accent-amber, #f59e0b); }
.toc-nav a.toc-h3 { padding-left: 1.1rem; font-size: 0.78rem; }
.related-list { display: flex; flex-direction: column; gap: 0.45rem; }
.related-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  background: var(--bg-deep, var(--bg));
  border: 1px solid var(--border);
}
.related-link:hover { color: var(--text-primary); border-color: var(--border-strong); }
.doc-fallback {
  white-space: pre-wrap;
  font-family: "Geist Mono", monospace;
  font-size: 0.85rem;
  line-height: 1.55;
  padding: 1rem;
  background: var(--bg-deep, var(--bg));
  border-radius: 10px;
  border: 1px solid var(--border);
}
.prose-body table { display: block; overflow-x: auto; }

/* ____ HUMAN PRODUCTS CONSOLE (v0.6.2) ____ */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: "Geist", sans-serif;
  font-size: 0.9rem;
  font-weight: 520;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}
.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}
.product-more-wrap {
  margin-top: 1rem;
}
.product-more-wrap[hidden] { display: none !important; }
.product-more-wrap.is-open .product-card {
  animation: productFadeIn 0.35s ease both;
}
.product-more-wrap.is-open .product-card:nth-child(1) { animation-delay: 0.02s; }
.product-more-wrap.is-open .product-card:nth-child(2) { animation-delay: 0.05s; }
.product-more-wrap.is-open .product-card:nth-child(3) { animation-delay: 0.08s; }
.product-more-wrap.is-open .product-card:nth-child(4) { animation-delay: 0.11s; }
.product-more-wrap.is-open .product-card:nth-child(5) { animation-delay: 0.14s; }
.product-more-wrap.is-open .product-card:nth-child(6) { animation-delay: 0.17s; }
.product-more-wrap.is-open .product-card:nth-child(7) { animation-delay: 0.2s; }
.product-more-wrap.is-open .product-card:nth-child(8) { animation-delay: 0.23s; }
@keyframes productFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.product-more-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.product-card.is-hidden,
.doc-row.is-hidden,
.doc-section.is-hidden {
  display: none !important;
}
.products-toolbar {
  margin-bottom: 1.25rem;
}
.routes-panel > summary {
  list-style: none;
  cursor: pointer;
}
.routes-panel > summary::-webkit-details-marker { display: none; }
.routes-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0;
}
.routes-summary .section-title { margin-bottom: 0.35rem; }
.routes-summary .section-sub { margin: 0; }
.routes-panel[open] .access-chevron { transform: rotate(180deg); border-color: var(--border-strong); }
.routes-panel[open] .routes-block { margin-top: 1.25rem; }
.routes-panel:not([open]) .routes-summary { margin-bottom: 0; }
.product-card:focus-visible,
.constellation-tile:focus-visible,
.doc-row:focus-visible,
.recent-card:focus-visible {
  outline: 2px solid var(--accent-pink, #ec4899);
  outline-offset: 2px;
}
.kind-chip {
  transition: transform 0.15s ease, background var(--transition), border-color var(--transition);
}
.kind-chip:active { transform: scale(0.97); }
.section-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}
a.product-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
a.product-card-link .product-cta {
  opacity: 1;
  transform: none;
  margin-top: 0.65rem;
  font-family: "Geist", sans-serif;
  font-size: 0.85rem;
  font-weight: 560;
  letter-spacing: 0;
  text-transform: none;
}
a.product-card-link:hover .product-cta {
  color: var(--accent-pink);
}
.product-doc-meta {
  margin-top: 0.55rem;
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.4;
  position: relative;
  z-index: 1;
}
.product-detail-hero .product-detail-head {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.product-mark.lg {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.product-mark.lg svg { width: 32px; height: 32px; }
.product-detail-copy { min-width: 0; flex: 1; }
.product-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}
.product-stat-pill {
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
}
.doc-section-collapsible { margin-bottom: 0.75rem; }
.doc-section-collapsible > summary {
  cursor: pointer;
  list-style: none;
}
.doc-section-collapsible > summary::-webkit-details-marker { display: none; }
.doc-section-collapsible[open] > summary .section-note { opacity: 1; }
.docs-archive-banner {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 0.65rem;
  border: 1px solid var(--border-strong, rgba(255,255,255,0.12));
  background: rgba(245, 158, 11, 0.08);
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.nav-link.start-start,
.nav-link.runbooks-runbooks,
.nav-link.reference-reference,
.nav-link.catalog-catalog,
.nav-link.products-products,
.nav-link.lab-lab,
.nav-link.procedures-procedures,
.nav-link.agents-agents {
  color: var(--text-primary);
  background: var(--bg-card);
}
/* Theme accents kept for explore-index kind chips (marks use --mark-bg above). */
.pc-mail { --pc: #38bdf8; }
.pc-diffuser { --pc: #a78bfa; }
.pc-thinktank { --pc: #f472b6; }
.pc-trammel { --pc: #fbbf24; }
.pc-command { --pc: #34d399; }
.pc-operator { --pc: #fbbf24; }
.pc-governance { --pc: #fb7185; }
.pc-thaladex { --pc: #f59e0b; }

/* ____ START HERE OPERATOR PATH (v0.6.4) ____ */
.start-path { padding-top: 2rem; }
.start-step {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.start-step:last-child { border-bottom: none; margin-bottom: 0; }
.start-step-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.start-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gradient-warm);
  color: white;
  font-family: "Geist Mono", monospace;
  font-size: 0.85rem;
  font-weight: 700;
}
.start-step-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}
.start-step-lede {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 40rem;
  line-height: 1.55;
}
.start-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}
.start-doc-grid,
.start-path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}
.start-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
  min-height: 148px;
}
.start-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}
.start-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.start-card-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: flex-end; }
.start-card-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 650;
  font-size: 1.05rem;
}
.start-card-legacy {
  font-family: "Geist Mono", monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
}
.start-card-purpose {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  flex: 1;
}
.start-card-cta {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 560;
  color: var(--accent-amber);
}
.start-doc-card,
.start-path-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}
.start-path-card:hover,
.start-doc-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}
.start-path-card-title,
.start-doc-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 1rem;
}
.start-path-card p,
.start-doc-summary {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  flex: 1;
}
.start-doc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.start-doc-date {
  font-family: "Geist Mono", monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
}
.start-step-foot { margin-top: 1rem; }
.start-advanced { margin-top: 2rem; }
.start-path-card-agent {
  max-width: 32rem;
  border-color: rgba(139, 92, 246, 0.35);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.08), var(--bg-elevated));
}
.product-mark.sm { width: 36px; height: 36px; border-radius: 9px; }
.product-mark.sm svg { width: 20px; height: 20px; }
.product-mark.xs { width: 28px; height: 28px; border-radius: 7px; }
.product-mark.xs svg { width: 16px; height: 16px; }

/* status / tier chips */
.status-chip,
.tier-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-family: "Geist Mono", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--border);
}
.status-active { color: var(--accent-emerald); border-color: rgba(16, 185, 129, 0.45); }
.status-planned { color: var(--accent-amber); border-color: rgba(245, 158, 11, 0.45); }
.status-decommissioned { color: var(--text-muted); }
.tier-public { color: var(--accent-cyan); border-color: rgba(6, 182, 212, 0.4); }
.tier-mesh { color: var(--accent-purple); border-color: rgba(139, 92, 246, 0.4); }
.tier-lab { color: var(--text-secondary); }
.tier-local { color: var(--text-muted); }

/* ____ PRODUCT HUB (v0.6.4) ____ */
.product-hub-hero { padding-bottom: 2.5rem; }
.hub-breadcrumb {
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.hub-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}
.hub-breadcrumb a:hover { color: var(--accent-amber); }
.hub-bc-sep { margin: 0 0.4rem; opacity: 0.5; }
.hub-hero-lede { max-width: 42rem; }
.hub-hero-cta { margin-top: 1.1rem; }
.product-hub-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 960px) {
  .product-hub-layout { grid-template-columns: 1fr; }
  .product-hub-sidebar { order: -1; }
}
.hub-section {
  margin-bottom: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  overflow: hidden;
}
.hub-section > summary.doc-section-head {
  padding: 0.85rem 1rem;
  margin: 0;
  border-bottom: none;
  cursor: pointer;
  list-style: none;
}
.hub-section > summary.doc-section-head::-webkit-details-marker { display: none; }
.hub-section[open] > summary.doc-section-head {
  border-bottom: 1px solid var(--border);
}
.hub-section-body { padding: 0.85rem 1rem 1rem; }
.hub-overview-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}
.hub-doc-list { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .hub-doc-list { grid-template-columns: 1fr; }
}
.hub-expand {
  margin-top: 0.65rem;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  padding: 0.35rem 0.65rem;
}
.hub-expand > summary {
  cursor: pointer;
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-amber);
  list-style: none;
}
.hub-expand > summary::-webkit-details-marker { display: none; }
.hub-empty {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-style: italic;
  margin: 0;
}
.hub-archive { border-color: rgba(245, 158, 11, 0.35); }
.hub-toolbar { margin-bottom: 1rem; }
.product-hub-sidebar {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (max-width: 960px) { .product-hub-sidebar { position: static; } }
.hub-sidebar-block {
  padding: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.hub-sidebar-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.hub-sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.hub-sidebar-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
}
.hub-sidebar-links a:hover { color: var(--accent-amber); }
.related-product-grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.related-product-tile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  transition: all var(--transition);
}
.related-product-tile:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}
.hub-section.is-hidden { display: none !important; }
@media (max-width: 720px) {
  .start-step-head { flex-direction: column; gap: 0.65rem; }
  .start-product-grid { grid-template-columns: 1fr; }
}

/* ____ OPERATOR CONSOLE v0.7.0 ____ */
.operator-footer .footer-tier-note {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.operator-footer .footer-tier-note a { color: var(--text-secondary); }
.lab-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
}
.lab-status-card {
  position: relative;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  min-height: 96px;
  transition: all var(--transition);
}
.lab-status-card:hover { border-color: var(--border-strong); background: var(--bg-card-hover); }
.lab-status-down { border-color: rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.06); }
.lab-status-top { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.35rem; }
.lab-status-dot { font-size: 0.75rem; }
.lab-status-name { font-weight: 600; font-size: 0.92rem; }
.lab-status-detail { font-size: 0.78rem; color: var(--text-muted); }
.lab-status-mark { position: absolute; right: 0.75rem; bottom: 0.75rem; opacity: 0.35; width: 28px; height: 28px; }
.blocked-list { list-style: none; padding: 0; }
.blocked-item {
  padding: 0.55rem 0.75rem;
  border-left: 3px solid var(--accent-amber);
  margin-bottom: 0.45rem;
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
}
.op-start-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.op-start-card {
  display: block;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}
.op-start-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.op-start-title { font-weight: 700; font-size: 1rem; margin-bottom: 0.35rem; }
.op-start-lede { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.75rem; }
.op-synth-card {
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.op-synth-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.op-synth-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.35rem; }
.op-synth-body { color: var(--text-secondary); margin-bottom: 1rem; }
.op-zone {
  margin-bottom: 1.5rem;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}
.op-zone-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.op-zone-title { font-size: 1rem; font-weight: 700; }
.op-zone-meta { font-size: 0.75rem; color: var(--text-muted); }
.op-access-list { margin: 0 0 1rem 1.1rem; color: var(--text-secondary); font-size: 0.9rem; }
.op-access-list li { margin-bottom: 0.35rem; }
.op-zone-actions { margin-top: 0.5rem; }
.op-procedure-list { display: flex; flex-direction: column; gap: 0.45rem; }
.op-procedure-link {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}
.op-procedure-link:hover { border-color: var(--border-strong); background: var(--bg-card-hover); }
.op-procedure-title { font-weight: 500; font-size: 0.9rem; }
.op-procedure-meta { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }
.op-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.op-product-card {
  display: block;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}
.op-product-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.op-product-name { font-weight: 700; margin: 0.35rem 0 0.15rem; }
.op-product-tagline { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.65rem; }
.op-product-legacy { font-size: 0.75rem; color: var(--text-muted); }
.op-more-products { margin-top: 1.5rem; }
.op-more-reference { margin-top: 1.5rem; opacity: 0.88; }
.op-more-reference > summary { cursor: pointer; font-size: 0.9rem; color: var(--text-secondary); padding: 0.5rem 0; }
.op-more-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.op-product-more {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--text-secondary);
}
.op-related { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.tier-operator { border-color: rgba(16, 185, 129, 0.35); }
.tier-reference { border-color: rgba(161, 161, 170, 0.25); opacity: 0.95; }
.tier-reference-panel .doc-section { opacity: 0.92; }
.tier-archive { border-color: rgba(245, 158, 11, 0.35); background: rgba(245, 158, 11, 0.06); }
.tier-agent { border-color: rgba(139, 92, 246, 0.35); }
.detail-badge.tier-operator { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.detail-badge.tier-agent { background: rgba(139, 92, 246, 0.15); color: var(--accent-purple); }
.agent-standalone .access-step { margin-bottom: 1rem; }
.op-zone-ref summary { cursor: pointer; list-style: none; }
.op-zone-ref summary::-webkit-details-marker { display: none; }

/* Explorer 2.0 Ideas Salvage Inbox (P0 stub) */
.ideas-stats-toggle,
.ideas-more,
details.op-zone {
  margin: 0.75rem 0 1rem;
}
.ideas-stats-toggle > summary,
.ideas-more > summary,
details.op-zone > summary {
  cursor: pointer;
  list-style: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.4rem 0;
}
.ideas-stats-toggle > summary::-webkit-details-marker,
.ideas-more > summary::-webkit-details-marker,
details.op-zone > summary::-webkit-details-marker {
  display: none;
}
details.op-zone > summary.op-zone-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
}
.ideas-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.ideas-stat {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface-2);
}
.ideas-stat-n { display: block; font-size: 1.35rem; font-weight: 700; color: var(--accent-gold); }
.ideas-stat-l { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.ideas-list, .ideas-doc-list { display: flex; flex-direction: column; gap: 0.65rem; }
.idea-row, .idea-doc-row {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface-2);
}
.idea-doc-row { display: block; text-decoration: none; color: inherit; transition: border-color 0.15s; }
.idea-doc-row:hover { border-color: var(--accent-gold); }
.idea-row-head, .idea-doc-head {
  display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-bottom: 0.45rem;
}
.idea-id { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); }
.idea-product, .idea-date { font-size: 0.72rem; color: var(--text-muted); margin-left: auto; }
.idea-body, .idea-doc-summary { font-size: 0.88rem; color: var(--text-secondary); margin: 0 0 0.4rem; line-height: 1.45; }
.idea-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.72rem; color: var(--text-muted); }
.idea-meta code { font-size: 0.7rem; }
.idea-lane, .idea-state {
  font-size: 0.68rem; font-weight: 600; padding: 0.15rem 0.45rem; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.idea-lane-ai { background: rgba(139, 92, 246, 0.18); color: var(--accent-purple); }
.idea-lane-human { background: rgba(16, 185, 129, 0.18); color: var(--accent-emerald); }
.idea-lane-thinktank { background: rgba(245, 158, 11, 0.18); color: var(--accent-gold); }
.idea-lane-native { background: rgba(59, 130, 246, 0.18); color: var(--accent-blue, #3b82f6); }
.tier-thinktank { border-color: rgba(245, 158, 11, 0.25); }
.tier-native { border-color: rgba(59, 130, 246, 0.25); }
.idea-state-needs_classification { background: rgba(245, 158, 11, 0.18); color: var(--accent-gold); }
.idea-state-stale_valuable { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.idea-state-promoted { background: rgba(16, 185, 129, 0.18); color: var(--accent-emerald); }
.idea-doc-title { font-weight: 600; font-size: 0.92rem; flex: 1; }
.idea-tag { color: var(--accent-gold); }
.idea-related.muted { opacity: 0.5; }

@media (max-width: 720px) {
  .lab-status-grid { grid-template-columns: 1fr 1fr; }
  .op-start-grid { grid-template-columns: 1fr; }
  .ideas-stat-grid { grid-template-columns: 1fr 1fr; }
}
