/* Connect-your-AI: MCP URL box, client tiles, Ask AI row, per-client steps. Used on /, /connect/ and guides. */
.cx-logo { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--cx-tint, var(--ink-800)); color: var(--cx-fg, #fff); box-shadow: inset 0 0 0 1px rgba(11,14,20,.08); }
.cx-logo svg { width: 24px; height: 24px; }
.cx-logo-any { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); font: 700 .72rem/1 var(--font-body); letter-spacing: .04em; }

.cx-url { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: var(--s-5) 0; padding: 14px 14px 14px 20px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); max-width: 760px; }
.cx-url-label { width: 100%; font-size: var(--fs-label); font-weight: 600; color: var(--text-mut); }
.cx-url-value { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; font: 600 1.05rem/1.4 var(--font-body); color: var(--text); }
.cx-copy { background: var(--cobalt-600); color: #fff; }
.cx-copy:hover { background: var(--cobalt-700); }
.cx-copied { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.cx-tiles { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; margin: var(--s-5) 0 var(--s-4); padding: 0; }
.cx-tile { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.cx-tile .cx-logo { grid-row: 1 / span 2; }
.cx-tile:hover { border-color: var(--cobalt-300); transform: translateY(-1px); }
.cx-tile-name { font-weight: 650; align-self: end; }
.cx-tile-auth { font-size: var(--fs-small); color: var(--text-mut); align-self: start; }
.cx-actions .btn { white-space: normal; text-align: center; min-height: 48px; height: auto; padding-block: 12px; line-height: 1.25; }
.cx-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: var(--s-4); }
.cx-tm { margin-top: var(--s-5); font-size: .8125rem; color: var(--text-faint); max-width: 760px; }

.cx-ask { margin-top: var(--s-7); padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-media); background: var(--surface); }
.cx-ask-title { font: 650 var(--fs-h3)/1.15 var(--font-display); letter-spacing: -.02em; }
.cx-ask-lede { margin-top: 6px; color: var(--text-mut); }
.cx-ask-qs { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--s-5) 0 var(--s-4); }
.cx-q { min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: transparent; color: var(--text); font: 600 .9375rem/1 var(--font-body); cursor: pointer; transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast); }
.cx-q:hover { border-color: var(--cobalt-300); }
.cx-q[aria-checked="true"] { background: var(--cobalt-600); border-color: var(--cobalt-600); color: #fff; }
.cx-ask-engines { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; }
.cx-engine { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--text); font-weight: 600; text-decoration: none; transition: border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.cx-engine .cx-logo { width: 36px; height: 36px; border-radius: 50%; }
.cx-engine .cx-logo svg { width: 20px; height: 20px; }
.cx-engine:hover { border-color: var(--cobalt-300); transform: translateY(-1px); }

/* Per-client page */
.cx-head { display: flex; align-items: center; gap: 14px; margin-bottom: var(--s-4); }
.cx-head .cx-logo { width: 56px; height: 56px; border-radius: 14px; }
.cx-head .cx-logo svg { width: 30px; height: 30px; }
.cx-steps { counter-reset: cx; list-style: none; padding: 0; margin: var(--s-5) 0; max-width: 760px; }
.cx-steps li { counter-increment: cx; position: relative; padding: 0 0 var(--s-5) 52px; }
.cx-steps li::before { content: counter(cx); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--cobalt-50); color: var(--cobalt-700); font-weight: 700; }
.cx-steps code, .cx-notes code, .c-prose code { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: var(--surface-sunk); padding: 1px 6px; border-radius: 6px; }
.cx-notes { max-width: 760px; padding-left: 1.2em; color: var(--text-mut); }
.cx-notes li + li { margin-top: 8px; }
.cx-prompt { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 760px; margin: var(--s-4) 0; padding: 20px 24px; border-radius: var(--r-card); background: var(--ink-800); color: var(--text-on-ink); font: 500 .95rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.cx-table { width: 100%; max-width: 900px; border-collapse: collapse; margin: var(--s-4) 0; font-size: var(--fs-small); }
.cx-table th, .cx-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cx-table td:last-child { overflow-wrap: anywhere; color: var(--text-mut); }
.cx-sources { font-size: var(--fs-small); color: var(--text-mut); }
.cx-sources a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .cx-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cx-tile { grid-template-columns: 36px 1fr; column-gap: 10px; padding: 12px; }
  .cx-tile .cx-logo { width: 36px; height: 36px; border-radius: 10px; }
  .cx-tile .cx-logo svg { width: 20px; height: 20px; }
  .cx-tile-auth { display: none; }
  .cx-tile-name { grid-row: 1 / span 2; align-self: center; font-size: .95rem; line-height: 1.2; }
  .cx-ask { padding: var(--s-5); }
  .cx-table thead { display: none; }
  .cx-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .cx-table td { display: block; border: 0; padding: 4px 0; }
}
