/* RudderWP unified site design system (x.ai/bot inspired, Geist + Geist Mono) */

:root {
  --background: #ffffff;
  --surface: #f4f4f6;
  --surface-hover: #eaecef;
  --foreground: #121214;
  --text-secondary: #5c5c66;
  --border: #e2e2e8;
  --accent: #121214;
  --accent-foreground: #ffffff;
  --success: #0d8a52;
  --success-surface: #eaf6f0;
  --danger: #c92a2a;
  --danger-surface: #fceeee;
  --overlay: rgba(12, 12, 14, 0.8);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

:root[data-theme="dark"] {
  --background: #0a0a0b;
  --surface: #141416;
  --surface-hover: #1d1d21;
  --foreground: #f4f4f6;
  --text-secondary: #9898a3;
  --border: #232328;
  --accent: #f4f4f6;
  --accent-foreground: #0a0a0b;
  --success: #22b875;
  --success-surface: #11261c;
  --danger: #ff6b6b;
  --danger-surface: #2a1416;
  --overlay: rgba(0, 0, 0, 0.86);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

strong, b {
  font-weight: 500;
  color: var(--foreground);
}

a { color: inherit; }
button, a, input, textarea, select { font-family: inherit; }

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
  transition: none !important;
}

/* Shared container */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Sticky unified header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.topbar {
  min-height: 64px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  color: var(--text-secondary);
}

.nav-links a {
  text-decoration: none;
  transition: color 150ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--foreground);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-menu-btn {
  display: none;
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border);
  padding: 12px 0 18px;
}

.mobile-drawer.is-open {
  display: block;
  animation: fadeSlideIn 180ms ease-out;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 15px;
  color: var(--text-secondary);
  transition: background-color 150ms ease, color 150ms ease;
}

.mobile-drawer-links a:hover {
  background: var(--surface);
  color: var(--foreground);
}

/* Buttons & crisp icon buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--foreground);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 100ms ease;
}

.btn:hover {
  background: var(--surface-hover);
  border-color: var(--text-secondary);
}

.btn:active {
  transform: scale(0.97);
}

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

.btn-primary {
  background: var(--accent);
  color: var(--accent-foreground);
  border-color: var(--accent);
}

.btn-primary:hover {
  opacity: 0.9;
  background: var(--accent);
  border-color: var(--accent);
}

.btn-lg {
  height: 46px;
  padding: 0 22px;
  font-size: 15px;
}

.btn-sm {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 100ms ease;
}

.icon-btn:hover {
  background: var(--surface-hover);
  border-color: var(--text-secondary);
}

.icon-btn:active {
  transform: scale(0.97);
}

.icon-btn.mobile-menu-btn {
  display: none;
}

.ico {
  width: 16px;
  height: 16px;
  display: inline-block;
  flex-shrink: 0;
}

/* Typography helpers */
.page-title {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 14px;
  text-wrap: balance;
}

.section-title {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 10px;
  text-wrap: balance;
}

.card-title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0 0 8px;
}

.lead {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 0 0 28px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
}

.muted {
  color: var(--text-secondary);
}

/* Hero section */
.hero {
  padding: 72px 0 64px;
  text-align: center;
}

.hero .page-title {
  max-width: 680px;
  margin: 0 auto 16px;
}

.hero .lead {
  max-width: 560px;
  margin: 0 auto 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

/* Interactive workspace showcase */
.workspace {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ws-bar {
  min-height: 44px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-secondary);
}

.ws-bar-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  color: var(--foreground);
}

.ws-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: pulseQuiet 2.2s ease-in-out infinite;
}

.ws-body {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 420px;
}

.ws-roster {
  border-right: 1px solid var(--border);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ws-roster-label {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 10px 8px;
}

.bot-row {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--foreground);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.bot-row:hover {
  background: var(--surface-hover);
}

.bot-row.is-active {
  background: var(--surface-hover);
  border-color: var(--border);
}

.bot-face {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: block;
}

.bot-meta { min-width: 0; flex: 1; }

.bot-name {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bot-sub {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-thread {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ws-thread-head {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ws-thread-title {
  font-size: 15px;
  font-weight: 500;
}

.ws-thread-handle {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  margin-left: 8px;
}

.ws-thread-scope {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}

.ws-messages {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.ws-swap {
  animation: fadeSlideIn 160ms ease-out;
}

.msg-user {
  align-self: flex-end;
  max-width: 82%;
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 1.45;
}

.msg-bot {
  align-self: flex-start;
  max-width: 92%;
  font-size: 15px;
  line-height: 1.55;
}

.msg-bot p { margin: 0 0 10px; }

.trace-line {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.approval-block {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  margin-top: 4px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.approval-info { flex: 1 1 260px; min-width: 0; }

.approval-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}

.approval-detail {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  word-break: break-word;
}

.approval-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.approval-status {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--foreground);
}

.ws-foot {
  padding: 12px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-secondary);
}

.ws-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
}

.ws-foot a:hover { text-decoration: underline; }

/* Sections & Visual Split Bands */
.section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 580px;
  margin-bottom: 36px;
}

.visual-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.visual-split > *,
.eco-grid > *,
.gallery-grid > *,
.pricing-box > * {
  min-width: 0;
}

.visual-split.is-reversed {
  grid-template-columns: 0.85fr 1.15fr;
}

.visual-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.visual-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 240ms ease;
}

.visual-frame:hover img {
  transform: scale(1.02);
}

.split-copy p {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 0 0 22px;
}

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.spec-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 15px;
}

.spec-list li span:last-child {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  text-align: right;
}

/* Ecosystem two-panel spec sheet */
.eco-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.eco-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
}

.eco-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.eco-panel-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}

/* Screenshot gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.shot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  text-align: left;
  color: inherit;
  transition: border-color 150ms ease, transform 100ms ease;
}

.shot-card:hover { border-color: var(--text-secondary); }
.shot-card:active { transform: scale(0.985); }

.shot-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.shot-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 500;
}

/* Pricing box */
.pricing-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: start;
}

.price-val {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 10px;
}

.price-note {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.pricing-box .nav-actions {
  flex-wrap: wrap;
}

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.price-list li {
  padding: 11px 0;
  border-top: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-secondary);
}

.price-list li:first-child { border-top: 0; padding-top: 0; }

/* FAQ accordion */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: transform 180ms ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0;
}

/* Shared page panels, forms, tables (Redeem, Admin, Support, Legal, Docs) */
.page-main {
  padding: 52px 0 76px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  margin-bottom: 20px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
}

.input,
.textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
  color: var(--foreground);
  font-size: 15px;
  outline: none;
  transition: border-color 150ms ease;
}

.input { height: 44px; }
.textarea { min-height: 104px; font-family: var(--font-mono); font-size: 13px; }
.input:focus, .textarea:focus { border-color: var(--accent); }

.hint {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.notice {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  margin-bottom: 18px;
}

.notice.is-ok { background: var(--success-surface); color: var(--success); }
.notice.is-err { background: var(--danger-surface); color: var(--danger); }

.prose h2 {
  font-size: 20px;
  font-weight: 500;
  margin: 32px 0 10px;
}

.prose h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 22px 0 8px;
}

.prose p, .prose li {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.prose ul, .prose ol {
  padding-left: 20px;
  margin: 0 0 16px;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--foreground);
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 6px;
}

.prose pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
}

.prose pre code { background: transparent; padding: 0; }

.table-wrap { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 14px 0 22px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table th {
  font-weight: 500;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Docs sidebar layout */
.docs-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 44px;
  padding: 40px 0 76px;
  align-items: start;
}

.docs-toc {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.docs-toc a {
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.docs-toc a:hover {
  background: var(--surface);
  color: var(--foreground);
}

/* Admin stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.stat-val { font-size: 28px; font-weight: 500; line-height: 1.2; }
.stat-lbl { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Shared footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-nav a:hover { color: var(--foreground); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 999;
}

.lightbox.is-open {
  display: flex;
  animation: fadeIn 160ms ease-out;
}

.lightbox-inner {
  max-width: 1180px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  animation: scaleIn 180ms cubic-bezier(0.2, 0, 0, 1);
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.lightbox-inner img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  background: var(--background);
}

/* Reveal micro-animation (< 240ms, zero bounce) */
.reveal {
  opacity: 0;
  transform: translateY(8px);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms ease-out, transform 220ms cubic-bezier(0.2, 0, 0, 1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseQuiet {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .ws-pulse, .ws-swap, .lightbox, .lightbox-inner { animation: none !important; }
  * { transition-duration: 0.01ms !important; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .icon-btn.mobile-menu-btn { display: inline-flex; }
  .ws-body { grid-template-columns: minmax(0, 1fr); }
  .ws-roster {
    min-width: 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    overflow-x: auto;
    padding: 10px;
  }
  .ws-roster-label { display: none; }
  .bot-row { width: auto; flex: 0 0 auto; }
  .visual-split,
  .visual-split.is-reversed,
  .eco-grid,
  .gallery-grid,
  .pricing-box,
  .grid-2,
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .visual-split.is-reversed .visual-frame { order: -1; }
  .docs-toc { position: static; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .wrap, .wrap-narrow { padding: 0 16px; }
  .hero { padding: 44px 0 40px; text-align: left; }
  .hero .page-title, .hero .lead { margin-left: 0; }
  .page-title { font-size: 28px; }
  .section-title { font-size: 24px; }
  .hero-actions { justify-content: flex-start; }
  .section { padding: 48px 0; }
  .pricing-box, .panel { padding: 20px; }
  .ws-messages { padding: 16px; }
  .msg-user { max-width: 100%; }
  .hide-xs { display: none; }
}

/* Interactive MCP Architecture Hub Visual (zero gradients, zero glow, dark + light native) */
.mcp-stage {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mcp-diagram {
  width: 100%;
  height: auto;
  display: block;
}

.mcp-wire {
  stroke: var(--border);
  stroke-width: 1.25;
  fill: none;
}

.mcp-wire-active {
  stroke: var(--foreground);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
  fill: none;
  animation: wireFlow 1.4s linear infinite;
}

.mcp-node-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mcp-node-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 100ms ease;
}

.mcp-node-btn:hover {
  color: var(--foreground);
  border-color: var(--text-secondary);
}

.mcp-node-btn:active { transform: scale(0.97); }

.mcp-node-btn.is-active {
  background: var(--accent);
  color: var(--accent-foreground);
  border-color: var(--accent);
}

.mcp-readout {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
}

.mcp-readout-url {
  color: var(--text-secondary);
  word-break: break-all;
}

/* Interactive SKILL.md preview block */
.skill-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.skill-code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow-x: auto;
  margin: 0;
}

.skill-code .sk-key { color: var(--foreground); }

/* Visual tab switcher above real WP screenshot */
.shot-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

@keyframes wireFlow {
  from { stroke-dashoffset: 20; }
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mcp-wire-active { animation: none !important; }
}
