.admin-body {
  padding: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

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

.admin-header nav {
  display: flex;
  gap: 1rem;
}

.admin-header nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
}

.admin-header nav a:hover {
  color: var(--accent);
}

.admin-logo {
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--text);
}

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

.page-header h1 {
  margin: 0;
}

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}

.login-card {
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.login-card h1 {
  margin-top: 0;
}

.login-card form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.login-card label {
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.create-song .inline-form {
  display: flex;
  gap: 0.75rem;
}

.create-song .neu-input {
  flex: 1;
}

.song-table {
  width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
}

.song-table thead,
.song-table tbody {
  display: table;
  width: 100%;
}

.song-table th,
.song-table td {
  padding: 0.75rem;
  text-align: left;
  vertical-align: middle;
}

.song-table th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.song-table tr + tr td {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.share-cell {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  min-width: 200px;
}

.share-input {
  font-size: 0.8rem;
  flex: 1;
  min-width: 120px;
}

.actions {
  white-space: nowrap;
}

.actions .inline-form {
  display: inline-flex;
}

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

.hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0;
}

.share-section {
  margin-bottom: 1.25rem;
}

.form-row {
  margin-bottom: 0.75rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.stem-form .form-row {
  max-width: 480px;
}

.color-input {
  width: 48px;
  height: 36px;
  padding: 2px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow:
    inset 2px 2px 4px var(--shadow-dark),
    inset -2px -2px 4px var(--shadow-light);
}

.stem-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stem-item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stem-item:last-child {
  border-bottom: none;
}

.stem-item-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.stem-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.file-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: auto;
}

.stem-edit-form .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.stem-edit-form .neu-input[type='text'] {
  flex: 1;
  min-width: 140px;
}

.stem-actions {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
