/* MCP & API tab (2026-11-10). Loaded last, after app-tidy.css.
   The Extract-tab changes that shipped alongside this in 71aa8a5 (first-visit
   headline, sample export, steps) were rolled back at the founder's request;
   only this tab's rebuild remains. */
/* Two full-width cards instead of two half-width columns of small grey text.
   Each card splits in two: what to do on the left, the thing itself on the
   right (the assistant answering; the request to send). */
.connect-stack { display: grid; gap: 18px; }
#view-mcp .connect-stack .dash-card { margin-bottom: 0; }
#view-mcp .dash-head .muted { max-width: 72ch; }
.connect-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px 44px;
  padding: 26px 28px 28px;
  border-color: var(--line-2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 20px 44px -30px rgba(0, 0, 0, 0.18);
}
@media (min-width: 980px) {
  .connect-split { grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); }
}
.connect-main, .connect-aside { min-width: 0; }
.connect-span { grid-column: 1 / -1; }

/* Type one step up: this tab was set almost entirely in 12.5px grey. */
.connect-kicker {
  margin-bottom: 9px;
  padding: 0;
  border-radius: 0;
  background: none;
  font: 700 12px/1.2 Inter, system-ui, sans-serif;
  letter-spacing: 0.055em;
}
.connect-head { margin-bottom: 18px; }
.connect-head h2 { margin: 0 0 6px; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.connect-head .card-sub { margin: 0; max-width: 54ch; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.connect-field-label { margin: 0 0 7px; font-size: 13px; color: var(--ink-2); }
.connect-card .mcp-clients { margin: 12px 0 0; gap: 8px; }
.connect-steps { margin-top: 24px; }
.connect-steps-title { margin-bottom: 14px; font-size: 15px; }
.connect-step { font-size: 14px; padding-bottom: 20px; }
.connect-step > div > b { font-size: 14px; }
.connect-step > div > span { font-size: 13px; }
.connect-card .mcp-steps { font-size: 14px; }
.connect-card .mcp-hint { font-size: 13px; line-height: 1.55; }
.connect-card .mcp-auth { font-size: 13px; line-height: 1.55; }
/* One link style on the tab: ink, semibold, underlined on hover. Two reds and
   an underline were competing with the one red button elsewhere. */
.connect-card .connect-foot { margin-top: 14px; }
.connect-card .connect-foot a,
.connect-card .connect-callout a { color: var(--ink); font-weight: 600; text-decoration: none; }
.connect-card .connect-foot a:hover,
.connect-card .connect-callout a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Right column: the example conversation, always on show. */
.connect-aside-cap {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--ink-3);
}
/* The demo ships a dark palette for dark-mode docs; the app is always light,
   and a dark window on this page read as a broken embed. */
.connect-live.chat-demo {
  --cd-ink: #141414; --cd-ink2: #5c5c66; --cd-ink3: #8b8b93;
  --cd-line: #e7e7ea; --cd-bg: #fff; --cd-bg2: #f6f6f7;
  max-width: none;
  margin: 0;
  border-color: var(--line-2);
  border-radius: 14px;
}
/* The conversation only starts once it scrolls into view. Hold its height
   from the start so the prompts below do not jump when it does. */
.connect-live { min-height: 368px; }
.connect-asks-cap { margin-top: 22px; }
.connect-asks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.connect-ask {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-1);
  font: inherit;
  font-size: 13.5px;
  line-height: 1.45;
  text-align: left;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 150ms var(--ease-out), color 150ms var(--ease-out), transform 150ms var(--ease-out);
}
.connect-ask:hover { border-color: var(--line-2); color: var(--ink); }
.connect-ask:active { transform: scale(0.99); }
.connect-ask .mcp-fr-copy { flex: none; min-width: 60px; text-align: right; font-size: 12px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.connect-ask.copied { border-color: var(--good); }
.connect-ask.copied .mcp-fr-copy { color: var(--good-ink); }

/* API card: the sign-in prompt and the credits note are quiet panels, not a
   dashed box and a pink alert. Nothing here is an error. */
.connect-card .apikey-signin { border-style: solid; border-color: var(--line); background: var(--surface-2); font-size: 13.5px; }
.connect-card .connect-callout {
  margin-top: 0;
  background: var(--surface-2);
  border-color: var(--line);
  font-size: 13.5px;
  line-height: 1.55;
}
.connect-card .connect-callout svg { color: var(--ink-3); }
.connect-card .connect-foot-links { margin-top: 14px; }
#mcp-key-card { margin: 18px 0 0; }

@media (max-width: 620px) {
  .connect-split { gap: 22px; padding: 20px 16px; }
  .connect-head h2 { font-size: 19px; }
}
