/* The connect page (ADR 0003): one column, system fonts, light and dark. Loads nothing else: no imports, no external resources, no web fonts. */
:root {
  color-scheme: light dark;
  --bg: #ffffff; --fg: #1a1a1a; --muted: #5c5c5c; --line: #d9d9d9; --card: #f6f6f6;
  --accent: #1f4ed8; --accent-fg: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414; --fg: #ececec; --muted: #a8a8a8; --line: #3a3a3a; --card: #1f1f1f;
    --accent: #7aa2ff; --accent-fg: #0d0d0d;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 36rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
h1 { font-size: 1.5rem; margin: 0 0 1.5rem; }
h2 { font-size: 1.125rem; margin: 0 0 0.75rem; }
section { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; margin-bottom: 1rem; }
p { margin: 0.5rem 0; }
.muted { color: var(--muted); font-size: 0.9375rem; }
.action {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin: 0.5rem 0;
  padding: 0.5rem 1rem; border: 0; border-radius: 8px; background: var(--accent); color: var(--accent-fg);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.action:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
.copy-row { display: flex; gap: 0.5rem; align-items: center; margin: 0.5rem 0; }
.copy-row code {
  flex: 1; min-width: 0; padding: 0.5rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg);
  font: 0.875rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere;
}
.copy-row button {
  min-height: 44px; min-width: 4.5rem; padding: 0 0.75rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--fg); font: inherit; cursor: pointer;
}
/* The copy-prompt card (ADR 0007): the path for every agent without a button, so it stands out from the app cards. */
.prompt-card { border: 2px solid var(--accent); border-radius: 16px; padding: 1.25rem; margin: 1.5rem 0; }
.prompt-card h2 { font-size: 1.25rem; }
.prompt {
  margin: 0.75rem 0; padding: 0.75rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg);
  font-size: 1.25rem; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; user-select: all;
}
/* The server URL: a secondary option, quieter than the cards above it. */
.secondary { background: transparent; }
.secondary h2 { font-size: 1rem; color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 30rem) {
  .copy-row { flex-direction: column; align-items: stretch; }
  .copy-row button { width: 100%; }
}
