:root {
  color-scheme: light;
  --bg: #f5f4f0;
  --card: #ffffff;
  --ink: #1c1c1c;
  --muted: #5c5c5c;
  --accent: #0d6b4e;
  --accent-soft: #d6f2e7;
  --shadow: 0 20px 40px rgba(10, 12, 15, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #ffffff 0%, #eef4f1 55%, #e3e7e6 100%);
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(28px, 3vw, 40px);
  margin: 0 0 12px;
}

.subhead {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
}

.badge {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin-top: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

label {
  font-weight: 500;
}

input,
select,
button {
  font-family: inherit;
  font-size: 15px;
}

input,
select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #dadde0;
  background: #fbfbfb;
}

input:focus,
select:focus {
  outline: 2px solid rgba(13, 107, 78, 0.2);
  border-color: var(--accent);
}

.actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

button {
  border: none;
  background: var(--accent);
  color: white;
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(13, 107, 78, 0.2);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.status {
  color: var(--muted);
  font-size: 14px;
}

.hidden {
  display: none;
}

.contributors-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hint {
  color: var(--muted);
  font-size: 13px;
}

.contributors-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.contributor-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f7f8f7;
}

.contributor-row img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #e0e0e0;
}

.contributor-name {
  font-weight: 600;
}

.badge-category {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-blue {
  background: #d9ecff;
  color: #1a5fa8;
}

.badge-green {
  background: #d7f4d0;
  color: #1c7b3e;
}

.badge-black {
  background: #e6e6e6;
  color: #3c3c3c;
}

.badge-unknown {
  background: #f3e7ff;
  color: #6b2fb3;
}

.timestamp {
  color: var(--muted);
  font-size: 13px;
}

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .hero {
    flex-direction: column;
  }

  .contributors-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .contributor-row {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .contributor-row .timestamp {
    grid-column: 2 / 3;
  }
}
