:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #1d2230;
  --muted: #5f6675;
  --line: #dde0e6;
  --accent: #2257d6;
  --accent-text: #ffffff;
  --ok: #17733a;
  --err: #b42318;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151b;
    --card: #1b1f27;
    --text: #e7e9ee;
    --muted: #9aa1ae;
    --line: #2d333e;
    --accent: #5b8cff;
    --accent-text: #0b1020;
    --ok: #5fd28a;
    --err: #ff7b6e;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

.card {
  width: 100%;
  max-width: 40rem;
  align-self: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
}

h1 { margin: 0 0 1rem; font-size: 1.4rem; }

code { overflow-wrap: anywhere; }

.status { font-size: 1.1rem; font-weight: 600; }
.status.ok { color: var(--ok); }
.status.error { color: var(--err); }
.muted { color: var(--muted); }

table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
th { color: var(--muted); font-weight: 500; width: 38%; }

details { margin: 1rem 0; }
summary { cursor: pointer; color: var(--muted); }
pre {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
  overflow-x: auto;
  font-size: 0.85rem;
}

form { margin: 0; }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  border: 0;
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { filter: brightness(1.1); }
.link { margin-left: 1rem; color: var(--accent); }

.integration {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 8px;
}
.integration h2 { margin: 0 0 0.5rem; font-size: 0.95rem; color: var(--muted); font-weight: 600; }
.integration dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25rem 0.75rem;
  margin: 0;
  font-size: 0.9rem;
}
.integration dt { color: var(--muted); }
.integration dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 30rem) {
  .integration dl { grid-template-columns: 1fr; }
  .integration dd { margin-bottom: 0.4rem; }
}
