:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --bg: #f7f8fb;
  --card: #fff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #2563eb;
  --ok: #166534;
  --warn: #92400e;
  --danger: #991b1b;
  --border: #d1d5db;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.topbar h1 { margin: 0; font-size: 1.2rem; }
.topbar a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.app {
  max-width: 900px;
  margin: 1.5rem auto;
  padding: 0 1rem 2rem;
  display: grid;
  gap: 1rem;
}
.banner {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  background: #fef3c7;
  color: var(--warn);
  border: 1px solid #fcd34d;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}
.card h2 { margin-top: 0; }
.row { margin-bottom: 0.75rem; }
label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
select, textarea, button {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem;
  font: inherit;
}
textarea { min-height: 60px; resize: vertical; }
button {
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  border: none;
}
button.secondary { background: #e5e7eb; color: var(--text); }
button.warn { background: var(--warn); }
.status { font-size: 0.9rem; margin-bottom: 0.75rem; }
.status.complete { color: var(--ok); }
.status.pending { color: var(--muted); }
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.modal {
  max-width: 420px;
  width: 100%;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 1rem;
}
.modal h3 { margin-top: 0; }
.modal-actions { display: grid; gap: 0.5rem; margin-top: 1rem; }
.small { color: var(--muted); font-size: 0.85rem; }
