:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --border: #e2e2e6;
  --text: #1c1c1f;
  --text-muted: #6b6b73;
  --accent: #2563eb;
  --accent-text: #ffffff;
  --danger: #dc2626;
  --success: #16a34a;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
}

header h1 {
  font-size: 1.1rem;
  margin: 0;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1rem;
  font-size: 0.9rem;
}

nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.card-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.card-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.card-body {
  white-space: pre-wrap;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

button {
  font: inherit;
  border: none;
  border-radius: var(--radius);
  padding: 0.55rem 1rem;
  cursor: pointer;
}

button.primary {
  background: var(--accent);
  color: var(--accent-text);
}

button.secondary {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.empty-state {
  color: var(--text-muted);
  text-align: center;
  padding: 3rem 1rem;
}

.status-pill {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

@media (max-width: 480px) {
  main {
    padding: 0.75rem;
  }

  .actions button {
    flex: 1;
  }
}
