:root {
  color-scheme: light;
  --ink: #222;
  --border: #ddd;
  --bg-muted: #f6f6f6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

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

.brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}

.user-email {
  color: #666;
  font-size: 0.9rem;
}

.content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: var(--bg-muted);
}

.card h3 { margin-top: 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

form.inline-form { display: inline; }

.link-button {
  background: none;
  border: none;
  padding: 0;
  color: #0366d6;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
}

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

th, td {
  text-align: left;
  padding: 0.5rem;
  border-bottom: 1px solid var(--border);
}

input, button, select {
  font-size: 1rem;
  padding: 0.5rem;
}

.field { margin-bottom: 1rem; }

label { display: block; margin-bottom: 0.25rem; font-weight: 600; }

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
}

.btn-google {
  background: #4285f4;
}

.muted { color: #666; }
