body {
  font-family: system-ui, sans-serif;
  margin: 2rem;
  color: #1f2933;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

input[type="search"] {
  padding: 0.5rem;
  font-size: 1rem;
  min-width: 16rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e4e7eb;
}

.thumbnail {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.error {
  background: #fdecea;
  border: 1px solid #f5c2c0;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.error button {
  margin-top: 0.5rem;
}

.back-link {
  display: inline-block;
}

.detail-image {
  display: block;
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.audio-clip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.audio-clip-label {
  min-width: 4rem;
  font-weight: 600;
}

/* Neutral, not an error state: 39 of 49 birds have no audio today, so this
   is the majority case and must never read as broken. */
.no-audio {
  color: #616e7c;
  background: #f5f7fa;
  border: 1px solid #e4e7eb;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  display: inline-block;
}

/* Login gate (#216): names the gate itself, not the one admin feature it
   happens to guard today, so the heading needs no rewrite when the admin
   surface grows beyond the birds pages. */
.login-gate {
  max-width: 20rem;
  margin: 4rem auto;
}

.login-gate form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.login-gate label {
  font-weight: 600;
}

.login-gate input {
  padding: 0.5rem;
  font-size: 1rem;
}

.login-gate button {
  margin-top: 0.5rem;
  padding: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
}
