/* The app is dark only. */
:root {
  color-scheme: dark;
  --background: #0a0a0a;
  --surface: #141414;
  --track: #1c1c1c;
  --hairline: #2a2a2a;
  --text: #e5e5e5;
  --muted: #8f8f8f;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --link: #93c5fd;
  --positive: #4ade80;
  --negative: #f87171;
}

body {
  background: var(--background);
}

.page {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
}

.page h2 {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.muted {
  color: var(--muted);
}

.page-nav {
  font-size: 0.9rem;
}

.page-nav a {
  color: var(--link);
}

.button {
  padding: 0.6rem 1.2rem;
  border: 0;
  background: var(--accent);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.button:hover {
  background: var(--accent-hover);
}

.flash {
  padding: 0.75rem 1rem;
}

.flash-notice {
  background: #052e16;
  color: #bbf7d0;
}

.flash-alert {
  background: #3b0a0a;
  color: #fecaca;
}

.page-nav .button-to {
  display: inline;
  margin-left: 1rem;
}

.connect-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-nav .link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.sign-in {
  display: grid;
  gap: 0.4rem;
  max-width: 20rem;
}

.sign-in input:not([type="submit"]) {
  padding: 0.5rem;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: inherit;
  font: inherit;
}

.sign-in .button {
  margin-top: 0.8rem;
  justify-self: start;
}

.settings-form {
  display: grid;
  gap: 0.4rem;
  max-width: 36rem;
}

.settings-form input:not([type="submit"]),
.settings-form textarea {
  padding: 0.5rem;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: inherit;
  font: inherit;
}

.settings-form textarea {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}

.settings-form .button {
  margin-top: 0.8rem;
  justify-self: start;
}

.settings-form .flash p {
  margin: 0;
}

.callback-url {
  overflow-wrap: anywhere;
}

.connection {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
}
