/* Scoped MCP setup and consent; preserve the shared platform palette. */
.mcp-setup, .mcp-consent, .mcp-connections { color: #111; width: 100%; min-width: 0; }
.mcp-setup { max-width: 1040px; margin: 0 auto; padding: 32px 24px 56px; }
.mcp-page-heading { margin-bottom: 24px; }
.mcp-page-heading h1, .mcp-consent h1 { margin: 8px 0 16px; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; letter-spacing: -.035em; }
.mcp-page-heading p, .mcp-summary p, .mcp-consent p { line-height: 1.6; max-width: 78ch; }
.mcp-eyebrow { color: #005319; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.mcp-status { display: inline-block; color: #005319; background: #edf5ef; border: 1px solid #b6efc9; border-radius: 6px; padding: 6px 10px; font-size: 13px; font-weight: 600; }
.mcp-summary, .mcp-client-card, .mcp-consent-panel, .mcp-connection-card { background: #fff; border: 1px solid #c9e8d3; border-top: 3px solid #006B20; border-radius: 10px; padding: 24px; margin: 0 0 20px; }
.mcp-summary { background: #f5f8f5; }
.mcp-summary h2, .mcp-client-heading h2, .mcp-consent-panel h2, .mcp-connection-card h3 { color: #005319; margin: 0; line-height: 1.3; }
.mcp-client-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.mcp-client-mark { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid #b6efc9; border-radius: 9px; background: #edf5ef; color: #005319; font-weight: 700; }
.mcp-steps { padding-left: 24px; margin: 16px 0; }
.mcp-steps li { padding-left: 4px; margin: 10px 0; line-height: 1.5; }
.mcp-client-note, .mcp-notice { border-left: 3px solid #006B20; background: #edf5ef; padding: 12px 16px; line-height: 1.6; }
.mcp-copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; margin-top: 20px; }
.mcp-copy-row label { grid-column: 1 / -1; font-weight: 600; font-size: 13px; }
.mcp-copy-row input { width: 100%; min-width: 0; font-family: var(--font-mono, monospace); font-size: 13px; padding: 12px; border: 1px solid #b6efc9; border-radius: 6px; color: #111; background: #fff; }
.mcp-copy-row .btn { min-height: 44px; white-space: nowrap; }
.mcp-help-link { display: inline-block; color: #005319; margin-top: 14px; font-size: 13px; }
.mcp-footer { border-top: 1px solid #c9e8d3; padding-top: 20px; margin-top: 32px; }
.mcp-consent { max-width: 760px; padding: 32px 24px; margin: 0 auto; }
.mcp-consent fieldset { border: 0; padding: 0; margin: 24px 0; min-width: 0; }
.mcp-consent legend, .mcp-consent label { font-weight: 600; }
.mcp-consent select { width: 100%; min-width: 0; padding: 12px; border: 1px solid #b6efc9; border-radius: 6px; margin-top: 8px; background: #fff; color: #111; }
.mcp-permission { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0; }
.mcp-permission input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #006B20; }
.mcp-permission span { line-height: 1.5; }
.mcp-permission small { display: block; font-weight: 400; margin-top: 3px; }
.mcp-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.mcp-actions .btn { min-height: 44px; }
.mcp-connections-header { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.mcp-connection-meta { display: flex; gap: 8px 24px; flex-wrap: wrap; margin: 16px 0; }
.mcp-connection-meta div { min-width: 0; }
.mcp-connection-meta dt { color: #005319; font-weight: 600; font-size: 12px; }
.mcp-connection-meta dd { margin: 4px 0; overflow-wrap: anywhere; }
.mcp-setup :is(button, a, input):focus-visible, .mcp-consent :is(button, a, input, select):focus-visible, .mcp-connections :is(button, a):focus-visible { outline: 2px solid #006B20; outline-offset: 3px; }
@media (max-width: 600px) {
    .mcp-setup, .mcp-consent { padding: 24px 16px 40px; }
    .mcp-summary, .mcp-client-card, .mcp-consent-panel, .mcp-connection-card { padding: 18px 16px; }
    .mcp-copy-row { grid-template-columns: minmax(0, 1fr); }
    .mcp-copy-row .btn { width: 100%; }
    .mcp-connections-header { align-items: flex-start; flex-direction: column; }
}
