@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;700&display=swap');

/* DiSco · Design System do Spinlist */

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

:root {
  --green: #C8F53C;
  --bg: #0f0f0f;
  --surface1: #1a1a1a;
  --surface2: #2a2a2a;
  --surface3: #333;
  --text-primary: #f5f5f5;
  --text-secondary: #888;
  --sidebar-width: 240px;
  --content-max: 800px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
}

/* ── Layout ───────────────────────────────────────────── */

.layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ──────────────────────────────────────────── */

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--surface2);
  padding: 28px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-logo {
  padding: 0 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-logo-img {
  width: 120px;
  height: auto;
}

.logo-sub {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 12px;
}

.nav-group {
  display: flex;
  flex-direction: column;
}

/* Cluster button (group header) */
.nav-cluster-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  text-align: left;
  transition: color 200ms, background 200ms;
}

.nav-cluster-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

.nav-cluster-btn.active,
.nav-cluster-btn.open {
  color: var(--text-primary);
}

.nav-cluster-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.55;
  transition: opacity 200ms;
}

.nav-cluster-btn:hover .nav-cluster-icon,
.nav-cluster-btn.active .nav-cluster-icon,
.nav-cluster-btn.open .nav-cluster-icon {
  opacity: 1;
}

.nav-cluster-chevron {
  margin-left: auto;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: 0.3;
  transition: transform 200ms, opacity 200ms;
}

.nav-cluster-btn.open .nav-cluster-chevron {
  transform: rotate(90deg);
  opacity: 0.6;
}

/* Submenu (collapses/expands) */
.nav-submenu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 250ms ease;
  margin-bottom: 2px;
}

.nav-submenu.open {
  max-height: 480px;
}

/* Submenu links */
.nav-link {
  display: block;
  padding: 5px 10px 5px 34px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: color 200ms, background 200ms;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
}

.nav-link.active {
  color: var(--green);
  background: rgba(200, 245, 60, 0.06);
  border-left-color: var(--green);
}

/* ── Content ──────────────────────────────────────────── */

.content {
  margin-left: var(--sidebar-width);
  flex: 1;
  max-width: calc(var(--content-max) + var(--sidebar-width));
  padding: 0 64px 80px;
}

/* ── Section ──────────────────────────────────────────── */

.section {
  padding-top: 80px;
  border-bottom: 1px solid var(--surface2);
  padding-bottom: 64px;
}

.section:last-of-type { border-bottom: none; }

.section-header { margin-bottom: 40px; }

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 8px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 16px;
}

.intro-logo {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.subsection-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ── Info grid (intro) ────────────────────────────────── */

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

.info-card {
  background: var(--surface1);
  border-radius: 16px;
  padding: 24px;
}

.info-card h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 8px;
}

.info-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Principles ───────────────────────────────────────── */

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

.principle-card {
  background: var(--surface1);
  border-radius: 16px;
  padding: 28px 24px;
}

.principle-icon {
  font-size: 24px;
  color: var(--green);
  margin-bottom: 16px;
}

.principle-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.principle-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Colors ───────────────────────────────────────────── */

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.color-swatch {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  min-height: 140px;
  display: flex;
  align-items: flex-end;
}

.swatch-info {
  padding: 12px;
  width: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.swatch-info.dark { background: rgba(0,0,0,0.5); }
.swatch-info.light { background: rgba(0,0,0,0.6); }

.swatch-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.swatch-hex {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
}

.swatch-token {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

.swatch-role {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

/* ── Genre gradient palette ───────────────────────────── */

.genre-gradient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.genre-swatch {
  border-radius: 12px;
  overflow: hidden;
  height: 96px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px 12px;
  gap: 2px;
}

.genre-swatch-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.genre-swatch-range {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(255,255,255,0.55);
}

/* ── Typography ───────────────────────────────────────── */

.type-scale {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--surface2);
  border-radius: 16px;
  overflow: hidden;
}

.type-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--surface2);
}

.type-row:last-child { border-bottom: none; }

.type-meta {
  flex-shrink: 0;
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.type-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.type-token {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-secondary);
}

.type-sample {
  color: var(--text-primary);
  line-height: 1.3;
  flex: 1;
}

/* ── Spacing ──────────────────────────────────────────── */

.spacing-scale {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spacing-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.spacing-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spacing-token {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 700;
}

.spacing-value {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ── Border Radius ────────────────────────────────────── */

.radius-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.radius-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.radius-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  max-width: 100px;
}

.radius-token {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
}

.radius-value {
  font-size: 11px;
  color: var(--text-secondary);
}

.radius-usage {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ── Elevation ────────────────────────────────────────── */

.elevation-demo {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.elev-layer {
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.elev-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.elev-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ── Component blocks ─────────────────────────────────── */

.component-block {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.component-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 32px;
  border-radius: 16px;
  flex: 1;
  min-width: 0;
}

.dark-bg { background: var(--surface1); }

.component-spec {
  flex: 1;
  min-width: 0;
}

.component-spec h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.component-spec p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.6;
}

.component-spec code {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--green);
  background: #0a0a0a;
  border-radius: 8px;
  padding: 12px 14px;
  line-height: 1.8;
}

.component-spec ul {
  list-style: none;
  padding: 0;
}

/* ── Button demos ─────────────────────────────────────── */

.btn-filled {
  background: var(--green);
  color: #0f0f0f;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  line-height: 1;
}

.btn-filled:active { opacity: 0.7; transform: scale(0.98); }
.btn-filled:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-secondary {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  line-height: 1;
}

.btn-secondary:active { opacity: 0.7; transform: scale(0.98); }

.btn-ghost {
  background: none;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  border: none;
  padding: 12px 8px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-ghost:active { opacity: 0.7; }

.state-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-secondary);
}

/* ── Field demos ──────────────────────────────────────── */

.field {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  border-radius: 12px;
  padding: 12px 16px;
  outline: none;
  border: 1px solid transparent;
  transition: border-color 0.2s;
  width: 100%;
}

.field::placeholder { color: var(--text-secondary); }
.field:focus { border-color: var(--green); }
.field-focused { border-color: var(--green); }

.field-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* ── Chip demos ───────────────────────────────────────── */

.chip {
  background: var(--bg);
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  border: none;
  border-radius: 9999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
}

.chip-active {
  background: var(--green);
  color: #0f0f0f;
}

/* ── Spinner demo ─────────────────────────────────────── */

.spinner-logo {
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes dot-blink {
  0%, 20% { opacity: 0; }
  50%      { opacity: 1; }
  100%     { opacity: 0; }
}

.dot {
  display: inline-block;
  animation: dot-blink 1.2s infinite;
  animation-delay: 0s;
}

/* ── Toast demo ───────────────────────────────────────── */

.toast {
  background: var(--text-primary);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 16px;
  white-space: nowrap;
}

.toast-error {
  background: #ef4444;
  color: #fff;
}

/* ── Skeleton demo ────────────────────────────────────── */

.skeleton {
  background: var(--surface1);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── States table ─────────────────────────────────────── */

.states-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--surface2);
  border-radius: 16px;
  overflow: hidden;
}

.state-row {
  display: grid;
  grid-template-columns: 100px 260px 1fr;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--surface2);
  align-items: center;
}

.state-row:last-child { border-bottom: none; }

.state-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.state-class {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--green);
}

.state-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Rule box ─────────────────────────────────────────── */

.rule-box {
  background: rgba(200, 245, 60, 0.04);
  border: 1px solid rgba(200, 245, 60, 0.15);
  border-radius: 12px;
  padding: 20px 24px;
}

.rule-box h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rule-box ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 16px;
}

.rule-box li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.rule-box code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--green);
  background: rgba(200, 245, 60, 0.08);
  padding: 1px 4px;
  border-radius: 3px;
}

/* ── Iconografia ──────────────────────────────────────── */

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 8px 14px;
  background: var(--surface1);
  border-radius: 12px;
  text-align: center;
  cursor: default;
  transition: background 200ms;
}

.icon-item:hover { background: var(--surface2); }

.icon-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.icon-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.icon-ctx {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.icon-group-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin: 28px 0 12px;
}

.icon-group-label:first-child { margin-top: 0; }

/* ── Inline code ──────────────────────────────────────── */

code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--green);
  background: rgba(200, 245, 60, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ── Footer ───────────────────────────────────────────── */

.tokens-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.tokens-block {
  background: #0a0a0a;
  border: 1px solid var(--surface2);
  border-radius: 12px;
  padding: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-secondary);
  overflow-x: auto;
  white-space: pre;
}

.token-key    { color: #7dd3fc; }
.token-string { color: #86efac; }
.token-meta   { color: var(--green); }

.ds-footer {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--surface2);
  text-align: center;
  color: var(--text-secondary);
  font-size: 12px;
}

/* ── Page TOC ─────────────────────────────────────────── */

.page-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--surface2);
}

.page-toc a {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 5px 12px;
  background: var(--surface1);
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}

.page-toc a:hover {
  color: var(--text-primary);
  background: var(--surface2);
}

/* ── Page section ─────────────────────────────────────── */

.page-section {
  padding-top: 56px;
  margin-bottom: 0;
}

.page-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

/* ── Anatomy ──────────────────────────────────────────── */

.anatomy-stage {
  background: var(--surface1);
  border-radius: 16px;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

/* Phone frame for anatomy sections */
.phone-frame {
  background: #0f0f0f;
  border: 1.5px solid #2a2a2a;
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 0 6px #141414, 0 20px 50px rgba(0,0,0,0.6);
}
.phone-frame-sm { width: 240px; height: 480px; border-radius: 36px; }
.phone-frame-lg { width: 270px; height: 560px; }
.phone-island {
  width: 88px;
  height: 26px;
  background: #141414;
  border-radius: 0 0 16px 16px;
  margin: 8px auto 0;
  flex-shrink: 0;
}
.phone-safe-area {
  height: 10px;
  background: rgba(200,245,60,0.05);
}
.phone-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.phone-bottom-safe {
  height: 20px;
  background: #0f0f0f;
  flex-shrink: 0;
}

.anatomy-rel {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.anatomy-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: #0f0f0f;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 0 0 3px #0f0f0f;
  cursor: default;
}

.anatomy-line {
  position: absolute;
  background: var(--green);
  opacity: 0.35;
  pointer-events: none;
}

.anatomy-legend {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--surface2);
  border-radius: 12px;
  overflow: hidden;
}

.anatomy-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--surface2);
}

.anatomy-item:last-child { border-bottom: none; }

.anatomy-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: #0f0f0f;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.anatomy-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.anatomy-item-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.anatomy-item-desc code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--green);
  background: rgba(200, 245, 60, 0.08);
  padding: 1px 4px;
  border-radius: 3px;
}

/* ── Do / Don't ───────────────────────────────────────── */

.do-dont-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.do-block,
.dont-block {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--surface2);
}

.do-block { border-top: 3px solid #22c55e; }
.dont-block { border-top: 3px solid #ef4444; }

.do-block .dd-label { color: #22c55e; }
.dont-block .dd-label { color: #ef4444; }

.dd-preview {
  background: var(--surface1);
  padding: 28px 24px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.dd-caption {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dd-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dd-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Specs table ──────────────────────────────────────── */

.specs-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--surface2);
  border-radius: 12px;
  overflow: hidden;
  font-size: 12px;
}

.specs-table thead tr {
  background: var(--surface1);
}

.specs-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--surface2);
}

.specs-table td {
  padding: 12px 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid #1a1a1a;
  vertical-align: top;
}

.specs-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.specs-table tr:last-child td { border-bottom: none; }

.specs-table code {
  background: rgba(200, 245, 60, 0.08);
  color: var(--green);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}

/* ── Scrollbar ────────────────────────────────────────── */

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 2px; }

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 900px) {
  .sidebar { display: none; }
  .content { margin-left: 0; padding: 0 24px 80px; }
  .info-grid, .principles-grid { grid-template-columns: 1fr; }
  .component-block { flex-direction: column; }
  .state-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ── Overview grid (home) ─────────────────────────────── */

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.overview-card {
  background: var(--surface1);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  transition: background 0.15s;
}

.overview-card:hover { background: var(--surface2); }

.overview-icon {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.overview-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin: 0;
}

.overview-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2px 0 0;
}

@keyframes spin { to { transform: rotate(360deg); } }
