:root {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, sans-serif;
  color-scheme: light dark;
}

body {
  margin: 0;
  background: #0f1419;
  color: #e8eaed;
}

a {
  color: #8ab4f8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #303438;
  background: #151b22;
}

.brand {
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.user-pill {
  font-size: 0.85rem;
  color: #9aa0a6;
}

.inline {
  display: inline;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #8ab4f8;
  font: inherit;
}

.link-button:hover {
  text-decoration: underline;
}

.card {
  background: #151b22;
  border: 1px solid #303438;
  border-radius: 8px;
  padding: 1.25rem;
}

.flash {
  background: #063b1f;
  border: 1px solid #0f9960;
  color: #cbf5dd;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.error-msg {
  background: #380a0a;
  border: 1px solid #c52222;
  color: #fdd;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.stack label {
  display: block;
  margin-top: 0.75rem;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: #bdc1c6;
}

.stack input,
.stack textarea {
  width: 100%;
  max-width: 28rem;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #3c4248;
  background: #0f1419;
  color: #e8eaed;
}

.primary {
  margin-top: 1rem;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  border: none;
  background: #1a73e8;
  color: #fff;
  cursor: pointer;
}

.primary:hover {
  background: #1967d2;
}

.field-error {
  color: #f28b82;
  font-size: 0.85rem;
}

table.simple {
  width: 100%;
  border-collapse: collapse;
}

table.simple th,
table.simple td {
  text-align: left;
  padding: 0.5rem;
  border-bottom: 1px solid #303438;
}
