:root {
  --mcp-bg: #f6f8fc;
  --mcp-panel: #fff;
  --mcp-panel-2: #f5f5f7;
  --mcp-ink: #1d1d1f;
  --mcp-muted: #6e6e73;
  --mcp-soft: #86868b;
  --mcp-line: rgba(0, 0, 0, 0.08);
  --mcp-accent: #2f63ff;
  --mcp-shadow: 0 20px 56px rgba(32, 67, 137, 0.08);
}

.mcp-shell,
.mcp-shell * {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.mcp-shell {
  background: var(--mcp-bg);
  color: var(--mcp-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  letter-spacing: 0;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.mcp-section {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.mcp-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) 600px;
  gap: 44px;
  align-items: center;
  min-height: calc(100dvh - 64px);
  padding-top: 56px;
  padding-bottom: 56px;
}

.mcp-hero-copy,
.mcp-connection-visual,
.mcp-agent-console,
.mcp-workflow-scene,
.mcp-workflow-board,
.mcp-workflow-current-main {
  max-width: 100%;
  min-width: 0;
}

.mcp-eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--mcp-accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.mcp-eyebrow::before {
  width: 28px;
  height: 1px;
  background: var(--mcp-accent);
  content: "";
}

.mcp-hero h1,
.mcp-section-head h2,
.mcp-doc-card h2 {
  margin: 0;
  color: var(--mcp-ink);
  letter-spacing: 0;
}

.mcp-hero h1 {
  max-width: 680px;
  font-size: clamp(48px, 5vw, 68px);
  font-weight: 850;
  line-height: 1.06;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mcp-connection-visual {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
  width: 100%;
  height: 448px;
  isolation: isolate;
}

.mcp-connection-window {
  position: relative;
  width: auto;
  min-height: 390px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(47, 99, 255, 0.06);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(32, 67, 137, 0.08), 0 2px 8px rgba(32, 67, 137, 0.04);
}

.mcp-ai-window {
  z-index: 1;
}

.mcp-server-window {
  z-index: 1;
}

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

.mcp-window-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 850;
}

.mcp-window-brand i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--mcp-accent);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.mcp-window-brand-logo img {
  display: block;
  width: 21px;
  height: auto;
}

.mcp-window-status {
  color: var(--mcp-soft);
  font-size: 11px;
}

.mcp-window-status.is-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1d8f4e;
}

.mcp-window-status.is-online::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34c759;
  content: "";
}

.mcp-ai-message {
  width: max-content;
  max-width: 100%;
  margin: 22px 0 20px auto;
  padding: 12px 15px;
  border-radius: 14px 14px 5px;
  background: #f0f1f4;
  color: var(--mcp-ink);
  font-size: 14px;
  font-weight: 700;
}

.mcp-ai-lines {
  display: grid;
  gap: 10px;
}

.mcp-ai-lines span {
  width: 86%;
  height: 9px;
  border-radius: 5px;
  background: #eceef2;
}

.mcp-ai-lines span:nth-child(2) {
  width: 68%;
}

.mcp-ai-lines span:nth-child(3) {
  width: 76%;
}

.mcp-ai-input {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 10px 11px 10px 15px;
  border-radius: 14px;
  background: #f7f8fb;
  box-shadow: inset 0 0 0 1px rgba(47, 99, 255, 0.08);
  color: var(--mcp-accent);
  font-size: 12px;
  font-weight: 800;
}

.mcp-ai-input i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: var(--mcp-accent);
  color: #fff;
  font-size: 18px;
  font-style: normal;
}

.mcp-server-tools {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.mcp-server-tools > div {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #f7f8fb;
}

.mcp-server-tools > div > i {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--mcp-accent);
  box-shadow: 0 0 0 5px rgba(47, 99, 255, 0.1);
}

.mcp-server-tools span,
.mcp-server-tools b,
.mcp-server-tools small {
  display: block;
  min-width: 0;
}

.mcp-server-tools b {
  margin-bottom: 3px;
  font-size: 12px;
}

.mcp-server-tools small {
  overflow: hidden;
  color: var(--mcp-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mcp-server-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(47, 99, 255, 0.09);
}

.mcp-server-result span {
  color: var(--mcp-accent);
  font-size: 10px;
  font-weight: 800;
}

.mcp-server-result b {
  font-size: 11px;
}

.mcp-connection-bridge {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: grid;
  grid-template-columns: 28px 44px;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 52px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.mcp-connection-bridge::before {
  position: absolute;
  z-index: -1;
  inset: -6px -8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(32, 67, 137, 0.12), 0 0 0 1px rgba(47, 99, 255, 0.08);
  content: "";
}

.mcp-bridge-label {
  position: absolute;
  top: -38px;
  left: 50%;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(47, 99, 255, 0.1);
  background: #f1f5ff;
  color: var(--mcp-accent);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
}

.mcp-bridge-node {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.mcp-bridge-flow {
  position: relative;
  width: 28px;
  height: 2px;
  background: rgba(47, 99, 255, 0.28);
}

.mcp-bridge-flow::after {
  position: absolute;
  top: -3px;
  right: -1px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--mcp-accent);
  content: "";
}

.mcp-bridge-flow i {
  position: absolute;
  top: -2px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mcp-accent);
  box-shadow: 0 0 0 3px rgba(47, 99, 255, 0.1);
  animation: mcp-bridge-flow-x 1.4s ease-in-out infinite;
}

.mcp-bridge-mcp {
  background: var(--mcp-accent);
}

.mcp-bridge-mcp img {
  display: block;
  width: 28px;
  height: auto;
  object-fit: contain;
}

@keyframes mcp-bridge-flow-x {
  0% { opacity: 0; transform: translateX(0); }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateX(21px); }
}

@keyframes mcp-bridge-flow-y {
  0% { opacity: 0; transform: translateY(0); }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(21px); }
}

.mcp-hero-text {
  max-width: 600px;
  margin: 20px 0 0;
  color: var(--mcp-muted);
  font-size: 16px;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.mcp-hero-actions {
  display: flex;
  align-items: center;
  max-width: 100%;
  width: max-content;
  margin-top: 30px;
}

.mcp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 136px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 48px;
  max-width: 100%;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

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

.mcp-btn-primary {
  background: var(--mcp-accent);
  color: #fff !important;
  box-shadow: none;
}

.mcp-btn-primary:hover {
  background: #2455e8;
  color: #fff !important;
}

.mcp-panel,
.mcp-card,
.mcp-detail-panel,
.mcp-case-strip > div,
.mcp-doc-card {
  background: var(--mcp-panel);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mcp-panel p,
.mcp-card p,
.mcp-detail-item p,
.mcp-case-strip p,
.mcp-doc-card p {
  color: var(--mcp-muted);
  font-size: 14px !important;
  line-height: 1.7;
}

.mcp-agent-console {
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  padding: 18px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--mcp-shadow);
}

.mcp-scenario {
  padding-top: 70px;
}

.mcp-agent-console-wide {
  display: grid;
  grid-template-columns: minmax(250px, 0.68fr) minmax(0, 1.62fr);
  gap: 16px;
  align-items: stretch;
  width: 100%;
  max-width: none;
  padding: 16px;
  border-radius: 30px;
}

.mcp-scenario-column {
  display: flex;
  min-width: 0;
  padding: 18px;
  border-radius: 22px;
  background: #f5f5f7;
  flex-direction: column;
}

.mcp-call-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.mcp-column-head,
.mcp-console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mcp-column-head {
  padding: 2px 2px 14px;
  border-bottom: 1px solid var(--mcp-line);
}

.mcp-column-head b,
.mcp-call-title {
  color: var(--mcp-ink);
  font-size: 16px;
  font-weight: 850;
}

.mcp-column-head span {
  color: var(--mcp-soft);
  font-size: 11px;
}

.mcp-agent-console-wide .mcp-question-tabs {
  display: grid;
  gap: 8px;
  padding: 14px 0;
  overflow: visible;
}

.mcp-agent-console-wide .mcp-question-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  width: 100%;
  min-height: 74px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  text-align: left;
  white-space: normal;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.mcp-agent-console-wide .mcp-question-chip:active {
  transform: scale(0.98);
}

.mcp-question-chip-index {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #f0f1f4;
  color: var(--mcp-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
}

.mcp-agent-console-wide .mcp-question-chip b,
.mcp-agent-console-wide .mcp-question-chip small {
  display: block;
}

.mcp-agent-console-wide .mcp-question-chip b {
  margin-bottom: 3px;
  font-size: 13px;
}

.mcp-agent-console-wide .mcp-question-chip small {
  overflow-wrap: anywhere;
  color: var(--mcp-soft);
  font-size: 10.5px;
  line-height: 1.5;
}

.mcp-agent-console-wide .mcp-question-chip.is-active {
  border-color: transparent;
  background: var(--mcp-accent);
  color: #fff;
  box-shadow: 0 12px 26px rgba(47, 99, 255, 0.2);
}

.mcp-agent-console-wide .mcp-question-chip.is-active .mcp-question-chip-index {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.mcp-agent-console-wide .mcp-question-chip.is-active small {
  color: rgba(255, 255, 255, 0.74);
}

.mcp-scene-question {
  margin-top: auto;
  padding: 15px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--mcp-line);
}

.mcp-scene-question span {
  display: block;
  margin-bottom: 8px;
  color: var(--mcp-accent);
  font-size: 10px;
  font-weight: 900;
}

.mcp-scene-question p {
  margin: 0;
  color: var(--mcp-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.65;
}

.mcp-agent-console-wide .mcp-workflow-scene {
  display: block;
  flex: 1;
  margin-top: 0;
}

.mcp-agent-console-wide .mcp-workflow-board {
  height: 320px;
  margin-top: 0;
}

.mcp-agent-console-wide .mcp-workflow-current {
  align-content: center;
  margin-top: 10px;
}

.mcp-console-head {
  min-height: 42px;
  padding: 0 4px 14px;
  border-bottom: 1px solid var(--mcp-line);
  color: var(--mcp-soft);
  font-size: 13px;
}

.mcp-status-dot {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--mcp-accent);
}

.mcp-status-dot::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 18px rgba(52, 199, 89, 0.5);
  content: "";
}

.mcp-agent-chat {
  display: flex;
  min-height: 0;
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  background: #f5f5f7;
}

.mcp-chat-message {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.mcp-chat-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 8px;
  place-items: center;
  background: #e8ecf7;
  color: var(--mcp-soft);
  font-size: 9px;
  font-weight: 900;
}

.mcp-chat-message > div {
  max-width: calc(100% - 40px);
  padding: 10px 12px;
  border-radius: 12px;
}

.mcp-chat-message small {
  display: block;
  margin-bottom: 4px;
  font-size: 9px;
  font-weight: 900;
}

.mcp-chat-message p {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.6;
}

.mcp-chat-message-user {
  flex-direction: row-reverse;
}

.mcp-chat-message-user .mcp-chat-avatar {
  background: var(--mcp-accent);
  color: #fff;
}

.mcp-chat-message-user > div {
  background: var(--mcp-accent);
  color: #fff;
  border-top-right-radius: 4px;
}

.mcp-chat-message-user small {
  color: rgba(255, 255, 255, 0.7);
}

.mcp-tool-run {
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--mcp-line);
}

.mcp-tool-run summary {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}

.mcp-tool-run summary::-webkit-details-marker {
  display: none;
}

.mcp-tool-run summary:focus-visible {
  outline: 2px solid var(--mcp-accent);
  outline-offset: -3px;
}

.mcp-tool-run summary::after {
  color: var(--mcp-soft);
  content: "\2304";
  font-size: 14px;
  transform: rotate(180deg);
  transition: transform 180ms ease;
}

.mcp-tool-run:not([open]) summary::after {
  transform: rotate(0deg);
}

.mcp-tool-run-icon {
  display: grid;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  place-items: center;
  background: var(--mcp-accent);
  color: #fff;
  font-size: 12px;
}

.mcp-tool-run summary span:nth-child(2) b,
.mcp-tool-run summary span:nth-child(2) small {
  display: block;
}

.mcp-tool-run summary b {
  color: var(--mcp-ink);
  font-size: 12.5px;
}

.mcp-tool-run summary small {
  margin-top: 3px;
  color: var(--mcp-soft);
  font-size: 9.5px;
}

.mcp-tool-run summary em {
  color: var(--mcp-accent);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.mcp-tool-run.is-thinking summary em::after {
  display: inline-block;
  width: 14px;
  content: "...";
  animation: mcp-agent-dots 900ms steps(3, end) infinite;
  text-align: left;
}

.mcp-tool-run.is-complete summary em {
  color: #248a3d;
}

.mcp-tool-step-list {
  display: grid;
  margin: 0;
  padding: 0 12px 12px;
  list-style: none;
}

.mcp-tool-step {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 9px 10px;
  border-top: 1px solid var(--mcp-line);
  opacity: 0.42;
  transition: opacity 180ms ease, background-color 180ms ease;
}

.mcp-tool-step.is-active,
.mcp-tool-step.is-complete {
  opacity: 1;
}

.mcp-tool-step.is-active {
  background: rgba(47, 99, 255, 0.055);
}

.mcp-tool-step-index {
  display: grid;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  place-items: center;
  background: #eef0f4;
  color: var(--mcp-soft);
  font-size: 9px;
  font-weight: 900;
}

.mcp-tool-step.is-active .mcp-tool-step-index {
  background: var(--mcp-accent);
  color: #fff;
}

.mcp-tool-step.is-complete .mcp-tool-step-index {
  position: relative;
  border-radius: 50%;
  background: #2fa84f;
  color: transparent;
  box-shadow: 0 0 0 3px rgba(47, 168, 79, 0.12);
}

.mcp-tool-step.is-complete .mcp-tool-step-index::after {
  position: absolute;
  inset: 0;
  display: grid;
  color: #fff;
  content: "\2713";
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  place-items: center;
}

.mcp-tool-step b,
.mcp-tool-step p {
  display: inline;
  font-size: 10.5px;
}

.mcp-tool-step b {
  margin-right: 8px;
  color: var(--mcp-ink);
}

.mcp-tool-step p {
  margin: 0;
  color: var(--mcp-muted);
}

.mcp-tool-step-output {
  padding: 4px 7px;
  border-radius: 6px;
  background: #f2f3f6;
  color: var(--mcp-soft);
  font-size: 9.5px;
  white-space: nowrap;
}

.mcp-chat-message-agent .mcp-chat-avatar {
  background: #111827;
  color: #fff;
}

.mcp-chat-message-agent > div {
  border-top-left-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 29, 48, 0.08);
}

.mcp-chat-message-agent small {
  color: var(--mcp-accent);
}

.mcp-chat-message-agent.is-pending {
  opacity: 0.5;
}

.mcp-chat-message-agent.is-ready {
  animation: mcp-answer-in 360ms ease both;
}

@keyframes mcp-agent-dots {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes mcp-answer-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mcp-question-tabs {
  display: flex;
  max-width: 100%;
  gap: 8px;
  padding: 12px 0 3px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mcp-question-tabs::-webkit-scrollbar {
  display: none;
}

.mcp-question-chip {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f5f5f7;
  color: var(--mcp-muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.mcp-question-chip.is-active {
  border-color: rgba(47, 99, 255, 0.25);
  background: rgba(47, 99, 255, 0.1);
  color: var(--mcp-accent);
}

.mcp-workflow-scene {
  margin-top: 12px;
  padding: 14px;
  border-radius: 20px;
  background: #f5f5f7;
}

.mcp-workflow-board {
  position: relative;
  height: 258px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(rgba(47, 99, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 99, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  background-size: 26px 26px, 26px 26px, auto;
  box-shadow: inset 0 0 0 1px var(--mcp-line), 0 16px 36px rgba(0, 0, 0, 0.04);
}

.mcp-workflow-node {
  position: absolute;
  z-index: 2;
  width: 220px;
  min-height: 116px;
  padding: 11px 12px 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.mcp-workflow-node[data-step="0"] {
  left: 64px;
  top: 18px;
}

.mcp-workflow-node[data-step="1"] {
  right: 64px;
  top: 18px;
}

.mcp-workflow-node[data-step="2"] {
  right: 64px;
  bottom: 28px;
}

.mcp-workflow-node[data-step="3"] {
  left: 64px;
  bottom: 28px;
}

.mcp-workflow-node.is-active {
  border-color: rgba(47, 99, 255, 0.54);
  background: #fff;
  box-shadow: 0 18px 42px rgba(47, 99, 255, 0.18);
  transform: translateY(-2px);
}

.mcp-workflow-node.is-complete {
  border-color: rgba(47, 99, 255, 0.2);
  background: rgba(245, 250, 255, 0.98);
}

.mcp-workflow-node-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.mcp-workflow-node-index {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #f5f5f7;
  color: var(--mcp-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
}

.mcp-workflow-node.is-active .mcp-workflow-node-index {
  background: var(--mcp-accent);
  color: #fff;
}

.mcp-workflow-node-type,
.mcp-workflow-current-tool,
.mcp-card span,
.mcp-detail-head span,
.mcp-call-list code,
.mcp-case-strip span,
.mcp-doc-card > span {
  color: var(--mcp-accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 900;
}

.mcp-workflow-node-type {
  overflow: visible;
  max-width: calc(100% - 32px);
  font-size: 10px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.mcp-workflow-node b {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.mcp-workflow-node p {
  margin: 0;
  color: var(--mcp-muted);
  font-size: 11.5px;
}

.mcp-flow-line {
  position: absolute;
  z-index: 1;
  background: rgba(47, 99, 255, 0.34);
}

.mcp-flow-line-1 {
  top: 76px;
  left: 284px;
  right: 284px;
  height: 2px;
}

.mcp-flow-line-2 {
  top: 134px;
  right: 174px;
  bottom: 144px;
  width: 2px;
}

.mcp-flow-line-3 {
  left: 284px;
  right: 284px;
  bottom: 86px;
  height: 2px;
}

.mcp-workflow-current {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 78px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--mcp-line);
}

.mcp-workflow-current-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mcp-accent);
  color: #fff;
  box-shadow: 0 0 0 7px rgba(47, 99, 255, 0.1);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}

.mcp-workflow-current-head {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.mcp-workflow-current-title {
  font-size: 13px;
  font-weight: 900;
}

.mcp-workflow-current-tool {
  overflow: hidden;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(47, 99, 255, 0.1);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mcp-workflow-current-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mcp-workflow-current-meta span {
  color: var(--mcp-muted);
  font-size: 11.5px;
}

.mcp-workflow-current-meta b {
  color: var(--mcp-soft);
}

.mcp-workflow-current-meta em {
  font-style: normal;
}

.mcp-section-head {
  display: grid;
  grid-template-columns: minmax(520px, 0.95fr) minmax(0, 1.05fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
}

.mcp-section-head h2 {
  margin: 0;
  font-size: clamp(36px, 3.8vw, 50px);
  line-height: 1.1;
}

.mcp-doc-card h2 {
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.08;
}

.mcp-section-head p {
  margin: 0;
  color: var(--mcp-muted);
  font-size: 16px;
  line-height: 1.8;
}

.mcp-section-head code {
  padding: 2px 5px;
  border-radius: 6px;
  background: rgba(47, 99, 255, 0.08);
  color: var(--mcp-accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.88em;
}

.mcp-pain-grid,
.mcp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mcp-panel {
  min-height: 210px;
  padding: 22px;
  border-radius: 24px;
}

.mcp-panel b,
.mcp-card b,
.mcp-detail-item b,
.mcp-case-strip b,
.mcp-doc-steps strong,
.mcp-client-list b {
  display: block;
  margin-bottom: 12px;
  font-size: 17px;
}

.mcp-panel p,
.mcp-card p,
.mcp-detail-item p,
.mcp-case-strip p,
.mcp-doc-card p,
.mcp-client-list p {
  margin: 0;
  font-size: 14px;
}

.mcp-explorer {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(420px, 1.05fr);
  gap: 16px;
  align-items: stretch;
}

.mcp-capability-table-wrap {
  overflow: hidden;
  border-radius: 8px;
  background: var(--mcp-panel);
  box-shadow: var(--mcp-shadow);
}

.mcp-capability-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: left;
}

.mcp-capability-table th,
.mcp-capability-table td {
  padding: 20px 18px;
  border-bottom: 1px solid var(--mcp-line);
  vertical-align: top;
}

.mcp-capability-table thead th {
  padding-top: 14px;
  padding-bottom: 14px;
  background: #f5f5f7;
  color: var(--mcp-soft);
  font-size: 12px;
  font-weight: 800;
}

.mcp-capability-table thead th:nth-child(1) {
  width: 18%;
}

.mcp-capability-table thead th:nth-child(2) {
  width: 25%;
}

.mcp-capability-table thead th:nth-child(3) {
  width: 39%;
}

.mcp-capability-table thead th:nth-child(4) {
  width: 18%;
}

.mcp-capability-table tbody tr:last-child > * {
  border-bottom: 0;
}

.mcp-capability-table tbody tr {
  transition: background-color 180ms ease;
}

.mcp-capability-table tbody tr:hover {
  background: rgba(47, 99, 255, 0.035);
}

.mcp-capability-table tbody th {
  color: var(--mcp-ink);
  font-size: 15px;
  line-height: 1.55;
}

.mcp-capability-table td {
  color: var(--mcp-muted);
  font-size: 13px;
  line-height: 1.7;
}

.mcp-capability-table code {
  color: var(--mcp-accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.mcp-capability-table td:last-child span {
  display: inline-block;
  margin: 0 4px 5px 0;
  padding: 4px 7px;
  border-radius: 4px;
  background: #f5f5f7;
  color: var(--mcp-soft);
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
}

.mcp-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.mcp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 188px;
  padding: 18px;
  border: 1px solid transparent;
  border-radius: 22px;
  cursor: pointer;
  outline: none;
  transition: border-color 180ms ease, box-shadow 220ms ease, transform 220ms ease, background 180ms ease;
}

.mcp-card:hover {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.075);
  transform: translateY(-2px);
}

.mcp-card.is-active {
  border-color: rgba(47, 99, 255, 0.34);
  background: linear-gradient(180deg, rgba(47, 99, 255, 0.055), #fff 42%);
  box-shadow: 0 20px 54px rgba(47, 99, 255, 0.12);
}

.mcp-card.is-active::after {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mcp-accent);
  box-shadow: 0 0 0 6px rgba(47, 99, 255, 0.12);
  content: "";
}

.mcp-card span {
  display: inline-flex;
  max-width: 100%;
  margin-bottom: 12px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.mcp-card ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.mcp-card li {
  padding: 5px 6px;
  border-radius: 999px;
  background: #f5f5f7;
  font-size: 10px;
  white-space: nowrap;
}

.mcp-detail-panel {
  height: 100%;
  padding: 28px;
  border-radius: 30px;
  box-shadow: var(--mcp-shadow);
}

.mcp-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--mcp-line);
}

.mcp-detail-head span {
  display: inline-flex;
  margin-bottom: 12px;
  font-size: 12px;
}

.mcp-detail-head h3 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.15;
}

.mcp-detail-head small {
  color: var(--mcp-soft);
  font-size: 13px;
  white-space: nowrap;
}

.mcp-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.mcp-detail-item {
  padding: 17px 18px;
  border-radius: 22px;
  background: #f5f5f7;
}

.mcp-detail-item:first-child {
  grid-column: 1 / -1;
}

.mcp-call-panel {
  margin-top: 10px;
  padding: 16px 18px 18px;
  border-radius: 22px;
  background: #f5f5f7;
}

.mcp-call-panel > b {
  display: block;
  margin-bottom: 12px;
}

.mcp-call-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mcp-call-list li {
  min-height: 94px;
  padding: 13px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--mcp-line);
}

.mcp-call-list code {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.mcp-call-list span {
  color: var(--mcp-muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.mcp-case-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.mcp-case-strip > div {
  position: relative;
  min-height: 170px;
  padding: 18px;
  border-radius: 24px;
}

.mcp-case-strip > div::after {
  position: absolute;
  top: 26px;
  right: -10px;
  width: 18px;
  height: 1px;
  background: rgba(47, 99, 255, 0.2);
  content: "";
}

.mcp-case-strip > div:last-child::after {
  display: none;
}

.mcp-case-strip span {
  display: block;
  margin-bottom: 15px;
  font-size: 12px;
}

.mcp-doc-cta {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 28px 30px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff 0%, #f7f9ff 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), inset 0 0 0 1px rgba(47, 99, 255, 0.1);
}

.mcp-cta-section {
  padding-top: 0;
}

.mcp-cta-section .mcp-doc-cta {
  margin-top: 0;
}

.mcp-doc-cta span {
  display: inline-flex;
  margin-bottom: 9px;
  color: var(--mcp-accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}

.mcp-doc-cta h3 {
  margin: 0;
  color: var(--mcp-ink);
  font-size: 24px;
  font-weight: 850;
  line-height: 1.24;
}

.mcp-doc-cta p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--mcp-muted);
  font-size: 15px;
  line-height: 1.72;
}

.mcp-doc-cta .mcp-btn {
  flex: 0 0 auto;
}

.mcp-doc-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.mcp-doc-side {
  position: sticky;
  top: 24px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mcp-doc-side strong,
.mcp-doc-side a {
  display: block;
}

.mcp-doc-side strong {
  margin-bottom: 12px;
  font-size: 15px;
}

.mcp-doc-side a {
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--mcp-muted);
  font-size: 14px;
}

.mcp-doc-side a:hover {
  background: rgba(47, 99, 255, 0.08);
  color: var(--mcp-accent);
}

.mcp-doc-card {
  scroll-margin-top: 24px;
  margin-bottom: 16px;
  padding: 34px;
  border-radius: 30px;
  box-shadow: var(--mcp-shadow);
}

.mcp-doc-card > span {
  display: inline-flex;
  margin-bottom: 14px;
  font-size: 12px;
}

.mcp-doc-card > p {
  max-width: 760px;
  margin-top: 16px;
  font-size: 16px;
}

.mcp-doc-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.mcp-doc-steps div {
  padding: 18px;
  border-radius: 20px;
  background: #f5f5f7;
}

.mcp-doc-steps b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--mcp-accent);
  color: #fff;
}

.mcp-client-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.mcp-client-list > div {
  padding: 20px;
  border-radius: 22px;
  background: #f5f5f7;
}

.mcp-client-list pre {
  margin: 16px 0 0;
  overflow-x: auto;
  padding: 16px;
  border-radius: 16px;
  background: #111827;
  color: #dce7ff;
  font-size: 13px;
  line-height: 1.65;
}

.mcp-faq-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.mcp-faq-list details {
  padding: 18px 20px;
  border-radius: 18px;
  background: #f5f5f7;
}

.mcp-faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.mcp-faq-list p {
  margin-top: 12px;
}

.mcp-motion-ready .mcp-motion-item,
.mcp-motion-ready .mcp-section-head,
.mcp-motion-ready .mcp-panel,
.mcp-motion-ready .mcp-card,
.mcp-motion-ready .mcp-detail-panel,
.mcp-motion-ready .mcp-capability-table-wrap,
.mcp-motion-ready .mcp-case-strip > div,
.mcp-motion-ready .mcp-doc-cta,
.mcp-motion-ready .mcp-connection-visual,
.mcp-motion-ready .mcp-agent-console {
  opacity: 0;
  transform: translateY(22px);
}

.mcp-motion-ready .mcp-agent-console {
  transform: translateY(28px) scale(0.98);
}

.mcp-motion-ready .mcp-revealed {
  animation: mcp-rise 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--mcp-delay, 0ms);
}

@keyframes mcp-rise {
  from {
    opacity: 0;
    transform: translateY(22px) scale(1);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mcp-bridge-flow i {
    opacity: 1;
    animation: none;
  }

  .mcp-tool-run,
  .mcp-tool-run summary::after,
  .mcp-tool-run summary em::after,
  .mcp-chat-message-agent {
    transition: none !important;
    animation: none !important;
  }

  .mcp-motion-ready .mcp-motion-item,
  .mcp-motion-ready .mcp-section-head,
  .mcp-motion-ready .mcp-panel,
  .mcp-motion-ready .mcp-card,
  .mcp-motion-ready .mcp-detail-panel,
  .mcp-motion-ready .mcp-capability-table-wrap,
  .mcp-motion-ready .mcp-case-strip > div,
  .mcp-motion-ready .mcp-doc-cta,
  .mcp-motion-ready .mcp-connection-visual,
  .mcp-motion-ready .mcp-agent-console {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

@media (max-width: 980px) {
  .mcp-hero,
  .mcp-section-head,
  .mcp-explorer,
  .mcp-doc-layout {
    grid-template-columns: 1fr;
  }

  .mcp-agent-console {
    max-width: 100%;
  }

  .mcp-agent-console-wide {
    grid-template-columns: 1fr;
  }

  .mcp-agent-console-wide .mcp-question-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mcp-scene-question {
    margin-top: 0;
  }

  .mcp-connection-visual {
    width: min(720px, 100%);
    margin: 0 auto;
  }

  .mcp-pain-grid,
  .mcp-doc-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mcp-case-strip {
    grid-template-columns: 1fr;
  }

  .mcp-case-strip > div::after {
    display: none;
  }

  .mcp-doc-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .mcp-doc-side {
    position: static;
    display: flex;
    gap: 8px;
    overflow-x: auto;
  }

  .mcp-doc-side strong {
    display: none;
  }
}

@media (max-width: 640px) {
  .mcp-section {
    width: calc(100% - 28px);
    padding: 56px 0;
  }

  .mcp-section,
  .mcp-hero,
  .mcp-hero > *,
  .mcp-hero-copy,
  .mcp-connection-visual,
  .mcp-agent-console {
    max-width: calc(100vw - 28px);
  }

  .mcp-hero {
    min-height: auto;
    width: calc(100% - 28px);
    padding-top: 46px;
    gap: 28px;
  }

  .mcp-hero h1 {
    max-width: 100%;
    font-size: 38px;
    line-height: 1.08;
  }

  .mcp-hero-text,
  .mcp-section-head p {
    font-size: 15px;
    line-height: 1.72;
  }

  .mcp-hero-actions,
  .mcp-btn,
  .mcp-doc-cta .mcp-btn {
    width: 100%;
  }

  .mcp-pain-grid,
  .mcp-grid,
  .mcp-detail-grid,
  .mcp-call-list,
  .mcp-doc-steps,
  .mcp-detail-head {
    grid-template-columns: 1fr;
  }

  .mcp-explorer {
    min-width: 0;
  }

  .mcp-section-head {
    gap: 14px;
    margin-bottom: 22px;
  }

  .mcp-section-head h2 {
    font-size: 32px;
    line-height: 1.14;
  }

  .mcp-capability-table-wrap {
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .mcp-capability-table,
  .mcp-capability-table tbody,
  .mcp-capability-table tr,
  .mcp-capability-table th,
  .mcp-capability-table td {
    display: block;
    width: 100%;
  }

  .mcp-capability-table thead {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    clip-path: inset(50%);
  }

  .mcp-capability-table tbody {
    display: grid;
    gap: 12px;
  }

  .mcp-capability-table tbody tr {
    overflow: hidden;
    border-radius: 8px;
    background: var(--mcp-panel);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .mcp-capability-table tbody tr:hover {
    background: var(--mcp-panel);
  }

  .mcp-capability-table th,
  .mcp-capability-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--mcp-line);
  }

  .mcp-capability-table tbody th {
    padding-top: 16px;
    padding-bottom: 16px;
    background: #f5f5f7;
    font-size: 16px;
  }

  .mcp-capability-table tbody th::before,
  .mcp-capability-table td::before {
    display: block;
    margin-bottom: 5px;
    color: var(--mcp-soft);
    content: attr(data-label);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.4;
  }

  .mcp-capability-table tbody tr > *:last-child {
    border-bottom: 0;
  }

  .mcp-panel,
  .mcp-card,
  .mcp-case-strip > div {
    min-height: auto;
    border-radius: 20px;
  }

  .mcp-card {
    margin-bottom: 0;
  }

  .mcp-agent-console,
  .mcp-detail-panel,
  .mcp-doc-card,
  .mcp-doc-cta {
    padding: 20px;
    border-radius: 24px;
  }

  .mcp-agent-console {
    width: 100%;
    max-width: 100%;
    padding: 14px;
  }

  .mcp-agent-console-wide {
    gap: 12px;
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .mcp-scenario-column {
    padding: 14px;
    border-radius: 18px;
  }

  .mcp-agent-console-wide .mcp-question-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mcp-agent-console-wide .mcp-question-chip {
    gap: 8px;
    min-height: 64px;
    padding: 9px 10px;
  }

  .mcp-question-chip-index {
    width: 24px;
    height: 24px;
  }

  .mcp-connection-visual {
    grid-template-columns: 1fr;
    gap: 72px;
    align-items: start;
    height: 780px;
  }

  .mcp-connection-window {
    width: 100%;
    min-height: 330px;
    padding: 16px;
    border-radius: 22px;
  }

  .mcp-window-head {
    padding-bottom: 13px;
  }

  .mcp-window-brand {
    gap: 7px;
    font-size: 12px;
  }

  .mcp-window-brand i {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 9px;
  }

  .mcp-ai-message {
    margin-top: 18px;
    font-size: 12px;
  }

  .mcp-ai-input {
    right: 16px;
    bottom: 16px;
    left: 16px;
    min-height: 48px;
    font-size: 10px;
  }

  .mcp-ai-input i {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .mcp-server-tools {
    gap: 7px;
    margin-top: 13px;
  }

  .mcp-server-tools > div {
    padding: 8px 10px;
  }

  .mcp-server-result {
    padding: 9px 10px;
  }

  .mcp-connection-bridge {
    top: 50%;
    grid-template-rows: 56px 36px 56px;
    grid-template-columns: 56px;
    width: 56px;
    height: 148px;
  }

  .mcp-bridge-label {
    top: 50%;
    left: 72px;
    transform: translateY(-50%);
  }

  .mcp-bridge-node {
    width: 56px;
    height: 56px;
    font-size: 13px;
  }

  .mcp-bridge-flow {
    width: 2px;
    height: 36px;
    justify-self: center;
  }

  .mcp-bridge-flow::after {
    top: auto;
    right: auto;
    bottom: -1px;
    left: -3px;
    border-top: 6px solid var(--mcp-accent);
    border-right: 4px solid transparent;
    border-bottom: 0;
    border-left: 4px solid transparent;
  }

  .mcp-bridge-flow i {
    top: 0;
    left: -2px;
    animation-name: mcp-bridge-flow-y;
  }

  .mcp-bridge-ai span {
    font-size: 25px;
  }

  .mcp-detail-panel.is-mobile-inline {
    height: auto;
    margin: -2px 0 12px;
    padding: 20px;
    border: 1px solid rgba(47, 99, 255, 0.16);
    border-radius: 0 0 22px 22px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(47, 99, 255, 0.08);
  }

  .mcp-card.is-active {
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
  }

  .mcp-detail-panel.is-mobile-inline .mcp-detail-head {
    padding-bottom: 16px;
  }

  .mcp-detail-panel.is-mobile-inline .mcp-detail-head small {
    display: none;
  }

  .mcp-detail-panel.is-mobile-inline .mcp-detail-grid {
    margin-top: 14px;
  }

  .mcp-detail-panel.is-mobile-inline .mcp-detail-item,
  .mcp-detail-panel.is-mobile-inline .mcp-call-panel {
    border-radius: 18px;
  }

  .mcp-detail-panel.is-mobile-inline .mcp-call-panel {
    padding: 14px;
  }

  .mcp-detail-panel.is-mobile-inline .mcp-call-panel > b {
    margin-bottom: 10px;
  }

  .mcp-detail-panel.is-mobile-inline .mcp-call-list {
    gap: 8px;
  }

  .mcp-detail-panel.is-mobile-inline .mcp-call-list li {
    min-height: 0;
    padding: 11px 12px;
    border-radius: 14px;
  }

  .mcp-detail-panel.is-mobile-inline .mcp-call-list code {
    margin-bottom: 5px;
  }

  .mcp-console-head span:first-child,
  .mcp-workflow-current-tool {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mcp-doc-cta h3 {
    font-size: 21px;
  }

  .mcp-workflow-board {
    height: 300px;
  }

  .mcp-workflow-node {
    width: 124px;
    min-height: 108px;
    padding: 9px 8px;
  }

  .mcp-workflow-node[data-step="0"] {
    left: 10px;
  }

  .mcp-workflow-node[data-step="1"] {
    right: 10px;
  }

  .mcp-workflow-node[data-step="2"] {
    right: 10px;
  }

  .mcp-workflow-node[data-step="3"] {
    left: 10px;
  }

  .mcp-workflow-node[data-step="0"],
  .mcp-workflow-node[data-step="1"] {
    top: 15px;
  }

  .mcp-workflow-node[data-step="2"],
  .mcp-workflow-node[data-step="3"] {
    bottom: 15px;
  }

  .mcp-flow-line-1,
  .mcp-flow-line-3 {
    left: 134px;
    right: 134px;
  }

  .mcp-flow-line-2 {
    top: 123px;
    right: 72px;
    bottom: 123px;
  }

  .mcp-workflow-current-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .mcp-section {
    width: calc(100% - 24px);
    padding: 48px 0;
  }

  .mcp-section,
  .mcp-hero,
  .mcp-hero > *,
  .mcp-hero-copy,
  .mcp-connection-visual,
  .mcp-agent-console {
    max-width: calc(100vw - 24px);
  }

  .mcp-hero {
    width: calc(100% - 24px);
    padding-top: 34px;
    padding-bottom: 48px;
  }

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

  .mcp-eyebrow {
    margin-bottom: 16px;
    font-size: 12px;
  }

  .mcp-connection-visual {
    gap: 64px;
    height: 700px;
  }

  .mcp-connection-window {
    width: 100%;
    min-height: 300px;
    padding: 14px;
  }

  .mcp-window-status {
    font-size: 9px;
  }

  .mcp-server-result {
    display: none;
  }

  .mcp-connection-bridge {
    grid-template-rows: 50px 32px 50px;
    grid-template-columns: 50px;
    width: 50px;
    height: 132px;
  }

  .mcp-bridge-node {
    width: 50px;
    height: 50px;
  }

  .mcp-bridge-ai span {
    font-size: 22px;
  }

  .mcp-bridge-flow {
    height: 32px;
  }

  .mcp-console-head {
    align-items: center;
    gap: 10px;
    font-size: 12px;
  }

  .mcp-status-dot {
    flex: 0 0 auto;
  }

  .mcp-agent-chat {
    padding: 10px;
    border-radius: 14px;
  }

  .mcp-chat-message > div {
    max-width: calc(100% - 38px);
  }

  .mcp-tool-run summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 10px;
  }

  .mcp-tool-run summary em {
    grid-row: 2;
    grid-column: 2;
    white-space: normal;
  }

  .mcp-tool-run summary::after {
    grid-row: 1 / span 2;
    grid-column: 3;
  }

  .mcp-tool-step {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .mcp-tool-step-output {
    grid-column: 2;
    justify-self: start;
    white-space: normal;
  }

  .mcp-workflow-scene {
    padding: 10px;
    border-radius: 18px;
  }

  .mcp-workflow-board {
    height: 300px;
    border-radius: 16px;
  }

  .mcp-workflow-node {
    width: 124px;
    min-height: 108px;
    padding: 9px 8px;
    border-radius: 14px;
  }

  .mcp-workflow-node-index {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }

  .mcp-workflow-node-type {
    max-width: 92px;
    font-size: 8.5px;
  }

  .mcp-workflow-node b {
    font-size: 12px;
  }

  .mcp-workflow-node p {
    font-size: 10.5px;
  }

  .mcp-workflow-node[data-step="0"],
  .mcp-workflow-node[data-step="3"] {
    left: 10px;
  }

  .mcp-workflow-node[data-step="1"],
  .mcp-workflow-node[data-step="2"] {
    right: 10px;
  }

  .mcp-workflow-node[data-step="0"],
  .mcp-workflow-node[data-step="1"] {
    top: 15px;
  }

  .mcp-workflow-node[data-step="2"],
  .mcp-workflow-node[data-step="3"] {
    bottom: 15px;
  }

  .mcp-flow-line-1,
  .mcp-flow-line-3 {
    left: 134px;
    right: 134px;
  }

  .mcp-flow-line-2 {
    top: 123px;
    right: 72px;
    bottom: 123px;
    width: 2px;
    transform: none;
  }

  .mcp-workflow-current {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .mcp-workflow-current-index {
    display: none;
  }

  .mcp-workflow-current-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .mcp-detail-panel,
  .mcp-doc-cta {
    padding: 18px;
  }

  .mcp-detail-head h3 {
    font-size: 24px;
  }

  .mcp-detail-head small {
    white-space: normal;
  }

  .mcp-card ul {
    flex-wrap: wrap;
  }

  .mcp-detail-panel.is-mobile-inline .mcp-call-panel {
    padding: 12px;
  }

  .mcp-detail-panel.is-mobile-inline .mcp-call-list li {
    padding: 10px 11px;
  }

  .mcp-doc-cta {
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .mcp-hero {
    align-content: center;
    gap: 24px;
    min-height: calc(100vh - 52px);
    min-height: calc(100dvh - 52px);
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .mcp-hero h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .mcp-eyebrow {
    margin-bottom: 12px;
  }

  .mcp-hero-text {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.65;
  }

  .mcp-scenario {
    padding-top: 20px;
  }

  .mcp-cta-section {
    padding-top: 0;
  }

  .mcp-scenario-column {
    padding: 12px;
  }

  .mcp-agent-console-wide .mcp-question-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 10px 0;
  }

  .mcp-agent-console-wide .mcp-question-chip {
    gap: 6px;
    min-height: 44px;
    padding: 7px 8px;
  }

  .mcp-agent-console-wide .mcp-question-chip b {
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.35;
  }

  .mcp-agent-console-wide .mcp-question-chip small {
    display: none;
  }

  .mcp-question-chip-index {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    font-size: 9px;
  }

  .mcp-scene-question {
    padding: 11px 12px;
    border-radius: 12px;
  }

  .mcp-scene-question span {
    display: none;
  }

  .mcp-scene-question p {
    font-size: 12px;
    line-height: 1.5;
  }

  .mcp-hero-actions,
  .mcp-hero-actions .mcp-btn {
    width: max-content;
  }

  .mcp-hero-actions {
    margin-top: 22px;
  }

  .mcp-hero-actions .mcp-btn {
    height: 46px;
    min-height: 46px;
    padding: 0 20px;
    font-size: 15px !important;
    line-height: 46px;
  }

  .mcp-connection-visual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
    height: 270px;
  }

  .mcp-connection-window {
    display: block;
    min-height: 270px;
    padding: 11px;
    border-radius: 14px;
  }

  .mcp-window-head {
    gap: 6px;
    padding-bottom: 10px;
  }

  .mcp-window-brand {
    gap: 6px;
    font-size: 11px;
  }

  .mcp-window-brand i {
    width: 22px;
    height: 22px;
    border-radius: 7px;
  }

  .mcp-window-status {
    display: inline-flex;
    font-size: 8px;
  }

  .mcp-ai-message {
    margin: 14px 0 10px auto;
    padding: 8px 9px;
    font-size: 11px;
    line-height: 1.45;
  }

  .mcp-ai-lines {
    display: grid;
    gap: 6px;
  }

  .mcp-ai-lines span {
    height: 6px;
  }

  .mcp-ai-input {
    right: 11px;
    bottom: 11px;
    left: 11px;
    display: flex;
    min-height: 40px;
    padding: 7px 8px 7px 10px;
    font-size: 9px;
  }

  .mcp-ai-input i {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    font-size: 14px;
  }

  .mcp-server-tools {
    display: grid;
    gap: 5px;
    margin-top: 10px;
  }

  .mcp-server-tools > div {
    gap: 7px;
    padding: 6px 7px;
  }

  .mcp-server-tools > div > i {
    width: 6px;
    height: 6px;
    flex-basis: 6px;
    box-shadow: 0 0 0 3px rgba(47, 99, 255, 0.1);
  }

  .mcp-server-tools b {
    margin-bottom: 1px;
    font-size: 10px;
  }

  .mcp-server-tools small {
    font-size: 7px;
  }

  .mcp-server-result {
    display: flex;
    gap: 6px;
    margin-top: 7px;
    padding: 8px;
  }

  .mcp-server-result span,
  .mcp-server-result b {
    font-size: 10px;
  }

  .mcp-connection-bridge {
    top: 50%;
    grid-template-rows: none;
    grid-template-columns: 24px 38px;
    width: 62px;
    height: 42px;
  }

  .mcp-connection-bridge::before {
    inset: -5px -6px;
  }

  .mcp-bridge-label {
    display: none;
  }

  .mcp-bridge-node {
    width: 38px;
    height: 38px;
  }

  .mcp-bridge-mcp img {
    width: 22px;
    height: auto;
  }

  .mcp-bridge-flow {
    width: 24px;
    height: 2px;
    justify-self: auto;
  }

  .mcp-bridge-flow::after {
    top: -3px;
    right: -1px;
    bottom: auto;
    left: auto;
    border-top: 4px solid transparent;
    border-right: 0;
    border-bottom: 4px solid transparent;
    border-left: 6px solid var(--mcp-accent);
  }

  .mcp-bridge-flow i {
    top: -2px;
    left: 0;
    animation-name: mcp-bridge-flow-x;
  }
}
