/* ── FOC Design System ── */
:root {
  --white: #FFFFFF;
  --off-white: #F7F7F5;
  --light: #EEEDE9;
  --border: #D8D6D0;
  --text-dim: #7A7A72;
  --text: #2A2A28;
  --black: #111111;
  --navy: #1B3A4B;
  --cyan: #0099AA;
  --cyan-hover: #007A88;
  --cyan-light: rgba(0, 153, 170, 0.08);
  --transition: 0.15s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--off-white);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--black);
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  color: var(--white);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--white);
}

.logo {
  height: 28px;
  width: auto;
}

.logo-text {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  opacity: 0.7;
}

.header-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ── Language Toggle ── */
.toggle-group {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.toggle-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.toggle-btn:hover {
  color: rgba(255, 255, 255, 0.8);
}

.toggle-btn.active {
  background: var(--white);
  color: var(--black);
}

/* ── Main Content ── */
#app {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px;
  width: 100%;
}

/* ── Overview Page ── */
.overview-hero {
  margin-bottom: 64px;
  max-width: 680px;
}

.overview-hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

.overview-hero p {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.7;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

/* ── Server Cards ── */
.server-card {
  background: var(--white);
  padding: 32px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background var(--transition);
  cursor: pointer;
}

.server-card:hover {
  background: var(--cyan-light);
}

.card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.02em;
}

.card-badge {
  color: var(--text-dim);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.card-tagline {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
}

/* ── Category Labels ── */
.category-section {
  margin-bottom: 64px;
}

.category-label {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 20px;
}

/* ── Detail Page ── */
.detail-page {
  max-width: 780px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  text-decoration: none;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 48px;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--cyan);
}

.back-link svg {
  width: 14px;
  height: 14px;
}

.detail-header {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.detail-title {
  font-size: 38px;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.detail-title .card-badge {
  font-size: 14px;
}

.detail-description {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 600px;
}

/* ── Sections ── */
.detail-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.detail-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.section-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 20px;
}

/* ── Use Cases ── */
.use-case-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.use-case-item {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text);
}

/* ── Workflow ── */
.workflow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
}

.workflow-step {
  font-size: 14px;
  color: var(--text);
  padding: 8px 0;
}

.workflow-arrow {
  color: var(--text-dim);
  padding: 0 12px;
  font-size: 13px;
}

/* ── Example Prompts ── */
.example-prompt-wrapper {
  position: relative;
  margin-bottom: 8px;
}

.example-prompt {
  background: var(--black);
  color: var(--white);
  padding: 24px 52px 24px 28px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Example Prompt + Answer Pairs ── */
.example-prompt-answer-pair {
  margin-bottom: 16px;
}
.example-prompt-answer-pair.has-answer .example-prompt {
  border-radius: 0;
}
.example-answer-wrapper {
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--accent);
  padding: 20px 28px;
  position: relative;
}
.example-answer-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}
.example-answer {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.example-answer::-webkit-scrollbar {
  width: 6px;
}
.example-answer::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}

/* ── Copy Button ── */
.copy-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.4);
  padding: 6px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-btn:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.copy-btn.copied {
  color: #34D399;
  border-color: #34D399;
}

.copy-btn-prompt {
  position: absolute;
  top: 12px;
  right: 12px;
}

/* ── Remote URL ── */
.remote-url-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 12px 16px;
}

.remote-url-box code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: var(--text);
  flex: 1;
  overflow-x: auto;
}

.remote-url-box .copy-btn {
  color: var(--text-dim);
  border-color: var(--border);
  flex-shrink: 0;
}

.remote-url-box .copy-btn:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* ── Buddy Workflow ── */
.buddy-workflow {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 24px;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  color: var(--text);
}

/* ── Tools List ── */
.tools-list {
  display: flex;
  flex-direction: column;
}

.tool-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.tool-item:first-child {
  padding-top: 0;
}

.tool-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tool-name {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 4px;
}

.tool-description {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ── Footer ── */
.site-footer {
  background: var(--black);
  margin-top: 80px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-logo {
  height: 24px;
  width: auto;
  opacity: 0.6;
}

.footer-meta {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
}

.footer-sep {
  margin: 0 10px;
  opacity: 0.3;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .server-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .overview-hero h1 {
    font-size: 32px;
  }
}

@media (max-width: 600px) {
  .server-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 14px 20px;
    gap: 12px;
  }

  .header-controls {
    width: 100%;
    justify-content: flex-end;
  }

  #app {
    padding: 40px 20px;
  }

  .overview-hero h1 {
    font-size: 28px;
  }

  .detail-title {
    font-size: 28px;
  }

  .toggle-btn {
    padding: 5px 10px;
    font-size: 11px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 32px 20px;
  }

  .server-card {
    padding: 24px 20px;
  }
}

/* ── Header Link ── */
.header-link {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition);
}

.header-link:hover,
.header-link.active {
  color: var(--black);
  background: var(--white);
}

/* ── Tracker Page ── */
.tracker-page {
  max-width: 1000px;
  margin: 0 auto;
}

.tracker-hero {
  margin-bottom: 64px;
}

.tracker-hero h1 {
  font-size: 42px;
  margin-bottom: 12px;
}

.tracker-hero p {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 600px;
}

/* ── Stats Grid ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 64px;
}

.stat-card {
  background: var(--white);
  padding: 32px;
  text-align: center;
}

.stat-value {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* ── Activity Heatmap (GitHub-style) ── */
.heatmap-wrapper {
  overflow-x: auto;
  padding-bottom: 4px;
}

.heatmap-grid-gh {
  display: grid;
  grid-template-rows: auto repeat(5, 11px);
  gap: 2px;
  min-width: 500px;
}

.heatmap-month-label {
  grid-row: 1;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 4px;
}

.hm-cell {
  width: 100%;
  height: 11px;
  min-width: 0;
  background: var(--light);
}

.hm-cell[data-level="1"] { background: rgba(0, 153, 170, 0.25); }
.hm-cell[data-level="2"] { background: rgba(0, 153, 170, 0.45); }
.hm-cell[data-level="3"] { background: rgba(0, 153, 170, 0.65); }
.hm-cell[data-level="4"] { background: rgba(0, 153, 170, 0.85); }
.hm-cell[data-level="5"] { background: var(--cyan); }

.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  justify-content: flex-end;
}

.heatmap-legend .hm-cell {
  width: 12px;
  height: 12px;
}

.heatmap-legend-label {
  font-size: 11px;
  color: var(--text-dim);
}

/* ── Server Launch Timeline ── */
.launch-timeline {
  margin-bottom: 64px;
}

.launch-bar-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.launch-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.launch-bar-label {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  width: 160px;
  text-align: right;
  flex-shrink: 0;
}

.launch-bar-track {
  flex: 1;
  height: 24px;
  position: relative;
  background: var(--light);
}

.launch-bar {
  position: absolute;
  height: 100%;
  min-width: 4px;
}

.launch-bar-date {
  font-size: 10px;
  color: var(--text-dim);
  width: 70px;
  flex-shrink: 0;
}

/* ── Milestone Timeline ── */
.milestone-list {
  display: flex;
  flex-direction: column;
}

.milestone-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

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

.milestone-date {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  padding-top: 2px;
}

.milestone-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.milestone-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.02em;
}

.milestone-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
}

.milestone-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.milestone-tag {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.milestone-tag.type-launch {
  border-color: var(--cyan);
  color: var(--cyan);
}

.milestone-tag.type-feature {
  border-color: #7B68EE;
  color: #7B68EE;
}

.milestone-tag.type-fix {
  border-color: #E6674A;
  color: #E6674A;
}

.milestone-tag.type-iteration {
  border-color: #50C878;
  color: #50C878;
}

.milestone-intensity {
  display: flex;
  gap: 3px;
  align-items: center;
}

.intensity-bar {
  width: 16px;
  height: 6px;
  background: var(--light);
}

.intensity-bar.filled {
  background: var(--cyan);
}

.milestone-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.skill-tag {
  font-size: 11px;
  color: var(--text-dim);
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 2px 8px;
}

/* ── Responsive Tracker ── */
@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-value {
    font-size: 28px;
  }

  .milestone-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .launch-bar-label {
    width: 100px;
    font-size: 10px;
  }

  .tracker-hero h1 {
    font-size: 28px;
  }
}

/* ── Server Status Grid ── */
.server-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.server-status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 13px;
}

.server-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.server-status-item.ok .server-status-dot {
  background: #34D399;
}

.server-status-item.down .server-status-dot {
  background: #E6674A;
}

.server-status-name {
  font-weight: 500;
  color: var(--text);
}

.server-status-item.down .server-status-name {
  color: var(--text-dim);
}

.server-status-calls {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-dim);
}

/* ── Admin ── */
.admin-logout-btn {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--transition);
}

.admin-logout-btn:hover {
  border-color: #E6674A;
  color: #E6674A;
}

/* ── Shipped (admin-only) ── */
.shipped-admin-badge {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 2px 6px;
  margin-left: 8px;
  vertical-align: middle;
}

.shipped-container {
  max-height: 520px;
  overflow-y: auto;
  border: 1px solid var(--border);
  background: var(--white);
}

.shipped-day {
  border-bottom: 1px solid var(--border);
}

.shipped-day:last-child {
  border-bottom: none;
}

.shipped-day-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 13px;
  color: var(--text);
  text-align: left;
  transition: background var(--transition);
}

.shipped-day-btn:hover {
  background: var(--off-white);
}

.shipped-day-label {
  font-weight: 600;
  min-width: 160px;
}

.shipped-day-count {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
  margin-left: auto;
}

.shipped-chevron {
  width: 14px;
  height: 14px;
  color: var(--text-dim);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.shipped-day.active .shipped-chevron {
  transform: rotate(180deg);
}

.shipped-day-commits {
  display: none;
  padding: 0 20px 16px 20px;
}

.shipped-day.active .shipped-day-commits {
  display: block;
}

.shipped-commit {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid var(--off-white);
}

.shipped-commit:last-child {
  border-bottom: none;
}

.shipped-hash {
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  color: var(--cyan);
  font-weight: 500;
  flex-shrink: 0;
}

.shipped-msg {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

@media (max-width: 600px) {
  .shipped-day-label {
    min-width: auto;
  }

  .shipped-commit {
    flex-direction: column;
    gap: 2px;
  }
}

/* ── Health Status Bar ── */
.health-bar {
  background: var(--black);
  padding: 10px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
}

.health-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.health-label {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
}

.health-dot-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.health-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
  transition: background 0.3s;
}

.health-dot.up { background: #34D399; }
.health-dot.busy { background: #34D399; animation: pulse 1.5s infinite; }
.health-dot.degraded { background: #FBBF24; }
.health-dot.down { background: #F87171; }
.health-dot.unknown { background: rgba(255,255,255,0.25); }

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

.health-dot-name {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}

.health-summary {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

.health-summary.all-up { color: #34D399; }
.health-summary.some-down { color: #FBBF24; }
.health-summary.checking { color: rgba(255,255,255,0.3); }

/* ── Skills Section ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.skill-category {
  background: var(--white);
  padding: 24px;
}

.skill-category-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 12px;
}

.skill-category-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-pill {
  font-size: 12px;
  color: var(--text);
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 4px 10px;
  font-weight: 500;
}

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .health-bar {
    padding: 8px 16px;
  }

  .health-dot-name {
    display: none;
  }
}

/* ── Ping Report Button & Dropdown ── */
.ping-header-btn {
  font-size: 11px;
  padding: 5px 12px;
  border: 1px solid rgba(248,113,113,0.4);
  border-radius: 6px;
  background: transparent;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
}
.ping-header-btn:hover {
  background: rgba(248,113,113,0.1);
  color: #fff;
}
.ping-header-btn.has-down {
  border-color: #F87171;
  color: #F87171;
  animation: pulse-border 2s infinite;
}
@keyframes pulse-border {
  0%, 100% { border-color: #F87171; }
  50% { border-color: rgba(248,113,113,0.3); }
}

.ping-dropdown {
  position: fixed;
  top: 64px;
  right: 24px;
  width: 320px;
  background: var(--charcoal, #1a1a1a);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  z-index: 9999;
  display: none;
  overflow: hidden;
}
.ping-dropdown.open { display: block; }

.ping-dd-header {
  padding: 14px 16px 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ping-dd-list {
  max-height: 400px;
  overflow-y: auto;
}

.ping-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  text-align: left;
  transition: background 0.15s;
}
.ping-dd-item:hover:not(:disabled) { background: rgba(255,255,255,0.06); }
.ping-dd-item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ping-dd-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ping-dd-name {
  flex: 1;
  font-weight: 500;
}

.ping-dd-status {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}

.ping-dd-active {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(59,130,246,0.2);
  color: #60A5FA;
}

.ping-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--charcoal, #1a1a1a);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 9999;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.1);
}
.ping-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Activity Page ── */
.activity-page {
  max-width: 1000px;
  margin: 0 auto;
}

.activity-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 48px;
}

.activity-feed {
  display: flex;
  flex-direction: column;
}

.feed-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

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

.feed-item-row {
  display: grid;
  grid-template-columns: 140px 160px 1fr auto;
  gap: 16px;
  align-items: baseline;
}

.feed-prompt-toggle {
  font-size: 11px;
  color: var(--cyan);
  cursor: pointer;
  padding: 6px 0 2px;
  user-select: none;
}

.feed-prompt-toggle:hover {
  text-decoration: underline;
}

.feed-prompt-arrow {
  display: inline-block;
  font-size: 9px;
  transition: transform 0.15s;
}

.feed-item.prompt-open .feed-prompt-arrow {
  transform: rotate(90deg);
}

.feed-prompt-content {
  display: none;
  margin: 8px 0 4px;
  padding: 12px 16px;
  background: var(--navy);
  color: var(--off-white);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 4px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 400px;
  overflow-y: auto;
}

.feed-item.prompt-open .feed-prompt-content {
  display: block;
}

.feed-context-item {
  background: color-mix(in srgb, var(--cyan) 6%, transparent);
  border-left: 3px solid var(--cyan);
  padding: 12px 16px;
  margin: 4px 0;
}

.feed-context-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.feed-context-icon {
  font-size: 14px;
}

.feed-context-label {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cyan);
}

.feed-context-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.feed-hidden {
  display: none;
}

.show-all-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  background: none;
  border: 1px solid var(--border);
  color: var(--cyan);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.show-all-btn:hover {
  background: color-mix(in srgb, var(--cyan) 6%, transparent);
}

.feed-time {
  color: var(--text-dim);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
}

.feed-server {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 500;
  color: var(--text);
  font-size: 13px;
}

.feed-tool {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: var(--cyan);
}

.feed-user {
  font-size: 12px;
  color: var(--text-dim);
  text-align: right;
}

.feed-duration {
  font-family: 'SF Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
}

.feed-args {
  font-size: 11px;
  color: var(--text-dim);
  grid-column: 3 / -1;
  margin-top: -8px;
  padding-bottom: 4px;
  word-break: break-all;
}

.feed-status {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.feed-status.ok { background: #34D399; }
.feed-status.fail { background: #F87171; }

.activity-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-dim);
}

.activity-empty h3 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 12px;
}

.activity-empty p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto;
}

.activity-loading {
  text-align: center;
  padding: 60px;
  color: var(--text-dim);
  font-size: 14px;
}

.top-tools-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.top-tool-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--light);
}

.top-tool-name {
  font-family: 'SF Mono', monospace;
  font-size: 12px;
  color: var(--cyan);
  flex: 1;
}

.top-tool-bar {
  height: 6px;
  background: var(--cyan);
  min-width: 4px;
}

.top-tool-count {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 12px;
  color: var(--text-dim);
  width: 40px;
  text-align: right;
}

@media (max-width: 600px) {
  .activity-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .feed-item-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ── Feedback Form ── */
.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.form-input {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.form-input:focus {
  border-color: var(--cyan);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 28px;
  background: var(--black);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  align-self: flex-start;
}

.form-submit:hover {
  background: var(--cyan);
}

.form-hint {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
  font-style: italic;
}

.feedback-confirmation {
  padding: 48px 0;
}

.feedback-confirmation h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.feedback-confirmation p {
  color: var(--text-dim);
}

/* ── Feedback Inbox (Admin) ── */
.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feedback-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.feedback-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.feedback-item-date {
  font-size: 12px;
  color: var(--text-dim);
}

.feedback-item-name {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.feedback-item-tag {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.feedback-item-message {
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 12px;
}

.feedback-item-actions {
  display: flex;
  gap: 6px;
}

.feedback-status-btn {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--transition);
}

.feedback-status-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.inbox-badge {
  display: inline-block;
  background: #F87171;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  padding: 2px 10px;
  margin-left: 8px;
  vertical-align: middle;
}

.admin-only-link a {
  color: inherit;
  text-decoration: none;
}

.activity-empty-inline {
  text-align: center;
  padding: 40px;
  color: var(--text-dim);
  font-size: 14px;
}

/* ── Glossary Tooltips ── */
.glossary-term {
  border-bottom: 1px dotted var(--cyan);
  cursor: help;
  position: relative;
}

.glossary-term::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  padding: 12px 16px;
  width: 300px;
  max-width: 90vw;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 200;
  white-space: normal;
}

.glossary-term:hover::after {
  opacity: 1;
}

/* Flip tooltip below if near top of viewport */
.glossary-term::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--black);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 200;
}

.glossary-term:hover::before {
  opacity: 1;
}

/* ── Companion Servers ── */
.companion-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.companion-chip {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  text-decoration: none;
  transition: background var(--transition);
}

.companion-chip:hover {
  background: var(--cyan-light);
}

/* ── Other Tools ── */
.other-tool-card {
  cursor: default;
  border-color: var(--border);
  opacity: 0.85;
}

.other-tool-card:hover {
  background: var(--white);
}

/* ── Before/After Examples ── */
.examples-section {
  margin-bottom: 48px;
}

.examples-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
}

.example-card {
  border: 1px solid var(--border);
  padding: 24px;
  min-width: 500px;
  flex: 1;
  background: var(--white);
}

.example-label {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.example-cols {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: start;
}

.example-col {
  background: var(--off-white);
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
}

.example-col.after {
  background: var(--cyan-light);
}

.example-col-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-weight: 600;
}

.example-col-text {
  white-space: pre-line;
}

.example-arrow {
  font-size: 20px;
  color: var(--text-dim);
  align-self: center;
}

.example-server-link {
  font-size: 12px;
  color: var(--cyan);
  margin-top: 12px;
  display: inline-block;
}

.examples-link-section {
  margin: 24px 0 40px;
}

.examples-link-card {
  display: block;
  padding: 24px;
  border: 2px dashed var(--border);
  text-decoration: none;
  text-align: center;
  transition: all var(--transition);
}

.examples-link-card:hover {
  border-color: var(--cyan);
  background: var(--cyan-light);
}

.examples-link-title {
  display: block;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.examples-link-sub {
  display: block;
  font-size: 13px;
  color: var(--cyan);
  margin-top: 4px;
}

.examples-grid-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.examples-grid-page .example-card {
  min-width: auto;
}

.expand-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--cyan);
  background: none;
  border: 1px solid var(--cyan);
  cursor: pointer;
  transition: all var(--transition);
}

.expand-btn:hover {
  background: var(--cyan-light);
}

.expand-link {
  color: var(--cyan);
  cursor: pointer;
}

.expand-link:hover {
  text-decoration: underline;
}

.latest-overflow {
  cursor: pointer;
}

/* ── Latest Updates ── */
.latest-section {
  margin-bottom: 40px;
}

.latest-list {
  display: flex;
  flex-direction: column;
}

.latest-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

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

.latest-date {
  font-size: 12px;
  color: var(--text-dim);
  min-width: 80px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

.latest-title {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.latest-more {
  font-size: 13px;
  color: var(--cyan);
  margin-top: 12px;
  display: inline-block;
}

/* ── Live Metrics ── */
.live-metrics {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.live-metric {
  font-size: 13px;
  color: var(--text-dim);
}

.live-metric strong {
  color: var(--cyan);
  font-weight: 600;
}

.live-metric-dot {
  color: var(--border);
}

/* ── Architecture Diagram ── */
.arch-section {
  margin-bottom: 48px;
}

.arch-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 32px;
  border: 1px solid var(--border);
  background: var(--white);
}

.arch-layer {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.arch-layer.arch-apis {
  flex-wrap: wrap;
}

.arch-box {
  padding: 16px 24px;
  text-align: center;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid var(--border);
}

.arch-box .arch-sub {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-dim);
  margin-top: 2px;
}

.arch-buddy {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-light);
}

.arch-transport {
  border-color: var(--navy);
  color: var(--navy);
}

.arch-azure {
  border-color: #7B68EE;
  color: #7B68EE;
}

.arch-api {
  border-color: var(--border);
  font-size: 12px;
  padding: 10px 16px;
}

.arch-arrow {
  font-size: 20px;
  color: var(--text-dim);
  padding: 8px 0;
}

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.faq-question {
  padding: 20px 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: "+";
  margin-right: 12px;
  color: var(--cyan);
  font-size: 18px;
}

details[open] .faq-question::before {
  content: "\2212";
}

.faq-answer {
  padding: 0 0 20px 28px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-dim);
}

/* ── Governance ── */
.governance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.governance-card {
  border: 1px solid var(--border);
  padding: 28px 24px;
  background: var(--white);
}

.governance-icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.governance-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.governance-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-dim);
}

.governance-footer {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 16px;
}

.governance-footer p {
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}

/* ── Roadmap ── */
.roadmap-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-bottom: 40px;
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--white);
}

.roadmap-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.roadmap-stat-num {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--cyan);
}

.roadmap-stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  font-weight: 500;
}

.roadmap-section {
  margin-bottom: 36px;
}

.roadmap-section-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.roadmap-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.roadmap-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.roadmap-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.roadmap-shipped .roadmap-status-dot {
  background: var(--cyan);
}

.roadmap-partial .roadmap-status-dot {
  background: #E6A817;
}

.roadmap-planned .roadmap-status-dot {
  background: var(--border);
}

.roadmap-item-content {
  flex: 1;
  min-width: 0;
}

.roadmap-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.roadmap-item-name {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.roadmap-item-name a {
  color: var(--text);
  text-decoration: none;
}

.roadmap-item-name a:hover {
  color: var(--cyan);
}

.roadmap-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 2px;
}

.roadmap-badge-shipped {
  background: rgba(0, 153, 170, 0.12);
  color: var(--cyan);
}

.roadmap-badge-partial {
  background: rgba(230, 168, 23, 0.12);
  color: #B8860B;
}

.roadmap-badge-planned {
  background: var(--light);
  color: var(--text-dim);
}

.roadmap-item-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
}

/* Phase badges */
.roadmap-phase-live { background: rgba(0,153,170,0.12); color: var(--cyan); }
.roadmap-phase-beta { background: rgba(230,168,23,0.12); color: #B8860B; }
.roadmap-phase-dev { background: rgba(59,130,246,0.12); color: #2563EB; }
.roadmap-phase-design { background: rgba(168,85,247,0.12); color: #7C3AED; }
.roadmap-phase-research { background: rgba(236,72,153,0.12); color: #DB2777; }
.roadmap-phase-backlog { background: var(--light); color: var(--text-dim); }

/* Checklist checkbox */
.roadmap-check {
  width: 18px; height: 18px; min-width: 18px;
  border: 2px solid var(--border);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.roadmap-check.checked {
  background: var(--cyan); border-color: var(--cyan);
}
.roadmap-check.checked::after {
  content: '\2713'; color: white; font-size: 12px; font-weight: 700;
}

/* Needs-info flag */
.roadmap-flag {
  font-size: 14px; cursor: help; margin-left: 4px;
}

/* Item meta row */
.roadmap-item-meta {
  display: flex; align-items: center; gap: 8px; margin-top: 4px;
}
.roadmap-category-tag {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-dim); font-weight: 500;
}
.roadmap-owner {
  font-size: 11px; color: var(--text-dim); font-style: italic;
}
.roadmap-section-count {
  font-size: 12px; font-weight: 400; color: var(--text-dim); margin-left: 4px;
}

/* Filters */
.roadmap-filters {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  margin-bottom: 24px; padding: 16px; border: 1px solid var(--border); background: var(--white);
}
.roadmap-filter-chip {
  font-size: 12px; padding: 4px 12px; border: 1px solid var(--border);
  background: var(--white); cursor: pointer; font-weight: 500;
  font-family: 'Space Grotesk', system-ui, sans-serif;
}
.roadmap-filter-chip:hover { border-color: var(--cyan); }
.roadmap-filter-chip.active {
  border-color: var(--cyan); color: var(--cyan); background: rgba(0,153,170,0.06);
}
.roadmap-filter-flag {
  font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 4px;
  margin-left: 8px; cursor: pointer; user-select: none;
}
.roadmap-search {
  font-size: 12px; padding: 4px 10px; border: 1px solid var(--border);
  background: var(--white); margin-left: auto; width: 160px;
  font-family: 'Inter', system-ui, sans-serif;
}
.roadmap-search:focus { border-color: var(--cyan); outline: none; }

/* Request form section */
.roadmap-request-section {
  margin-top: 48px; padding-top: 32px; border-top: 2px solid var(--border);
}

/* Admin controls */
.roadmap-admin-btn {
  font-size: 11px; padding: 2px 8px; border: 1px solid var(--border);
  background: var(--white); cursor: pointer; color: var(--text-dim);
  font-family: 'Inter', system-ui, sans-serif;
}
.roadmap-admin-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.roadmap-admin-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center; z-index: 100;
}
.roadmap-admin-panel {
  background: var(--white); padding: 32px; max-width: 480px; width: 90%;
}

@media (max-width: 768px) {
  .roadmap-filters { flex-direction: column; align-items: stretch; }
  .roadmap-search { margin-left: 0; width: 100%; }
}

/* ── Roles Section ── */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.role-card {
  background: var(--white);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-card-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.role-card-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.02em;
}

.role-card-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

.role-card-why {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
}

.role-card-servers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.role-server-chip {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  text-decoration: none;
  transition: background var(--transition);
}

.role-server-chip:hover {
  background: var(--cyan-light);
}

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

/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.25s ease forwards;
}
