/* AI agent bridge: header chip, edit consent card, "Connect an AI agent" dialog. */
.bridge-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 4px 11px; border: 1px solid #d6e3c8; border-radius: 999px; background: var(--green-soft); color: #527843; font-size: 10px; font-weight: 600; white-space: nowrap; }
.bridge-chip:hover { border-color: #b9cfa6; background: #e1ebd6; }
.bridge-chip[hidden] { display: none; }
.bridge-dot { width: 7px; height: 7px; border-radius: 50%; background: #6aa152; box-shadow: 0 0 0 3px #6aa15230; animation: bridge-pulse 1.8s ease-in-out infinite; }
@keyframes bridge-pulse { 50% { box-shadow: 0 0 0 5px #6aa15212; } }
@media (prefers-reduced-motion: reduce) { .bridge-dot { animation: none; } }
@media (max-width: 760px) { .bridge-chip span:last-child { display: none; } .bridge-chip { padding: 4px 8px; } }

.bridge-consent { position: fixed; z-index: 1001; right: 20px; bottom: 20px; width: min(340px, calc(100% - 32px)); padding: 14px 16px; border: 1px solid #ffffff1a; border-radius: 8px; background: #2e4938; color: #f1f6e7; box-shadow: 0 8px 30px #263b2e33; font-size: 11px; line-height: 1.6; }
.bridge-consent p { margin: 0 0 11px; }
.bridge-consent small { color: #c4d3bb; }
.bridge-consent-actions { display: flex; justify-content: flex-end; gap: 8px; }

.connect-agent .connect-heading { margin: 20px 0 10px; color: #627558; font-size: 12px; font-weight: 650; }
.connect-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.connect-where, .connect-note { margin: 0 0 8px; color: #88967d; font-size: 11px; line-height: 1.6; }
.connect-note { margin-top: 8px; }
.connect-code { position: relative; min-width: 0; max-width: 100%; }
.connect-code pre { margin: 0; padding: 11px 70px 11px 13px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: 11px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.connect-code .button { position: absolute; top: 7px; right: 7px; }
.connect-agent code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95em; }
