:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --brand: #1d4ed8;
  --brand-2: #2563eb;
  --ok: #166534;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.container {
  max-width: 760px;
  margin: 24px auto;
  padding: 0 14px;
}

.hero {
  text-align: center;
  margin-bottom: 14px;
}
.hero h1 { margin: 0; font-size: 2rem; }
.subtitle { margin: 4px 0 0; color: var(--muted); }

.card {
  background: var(--card);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

h2, h3 { margin-top: 0; }

button {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}
button:hover { background: var(--brand-2); }
button.ghost {
  background: #e5e7eb;
  color: #111827;
}

textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px;
  font: inherit;
}

.row {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.progress {
  margin-top: 8px;
  width: 100%;
  height: 12px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

#progressFill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  transition: width .25s ease;
}

.done {
  color: var(--ok);
  font-weight: 600;
}
