:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #10b981;
  --border: #e5e7eb;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.header {
  margin-bottom: 24px;
}

.header h1 {
  font-size: 28px;
  margin: 0 0 8px;
}

.header p {
  margin: 0;
  color: var(--muted);
}

.list {
  display: grid;
  gap: 12px;
}

.card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-info strong {
  font-weight: 600;
}

.card-info span {
  color: var(--muted);
  font-size: 14px;
}

.card-actions {
  display: flex;
  gap: 10px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  color: #ffffff;
  background: var(--accent);
  text-decoration: none;
  font-weight: 600;
  min-width: 140px;
}

.cta.secondary {
  background: transparent;
  color: var(--accent);
}

.cta[aria-disabled="true"] {
  background: #d1d5db;
  border-color: #d1d5db;
  color: #6b7280;
  pointer-events: none;
}

.loading,
.empty,
.error {
  text-align: center;
  color: var(--muted);
  padding: 30px 10px;
}

@media (max-width: 640px) {
  .card {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-actions {
    width: 100%;
    flex-direction: column;
  }

  .cta {
    width: 100%;
  }
}
