.admin-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

.admin-main > h1 {
  margin: 0 0 12px;
}

.admin-main > p {
  max-width: 650px;
  color: var(--muted);
}

.admin-section {
  margin-top: 48px;
  padding: 32px;
  background: var(--dark-2);
  border: 1px solid var(--line);
}

.admin-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.admin-section-heading .section-label {
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.form-grid input,
.editor-row input,
.editor-row select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--dark);
  color: var(--cream);
  font: inherit;
}

.form-grid input:focus,
.editor-row input:focus,
.editor-row select:focus {
  outline: none;
  border-color: var(--orange);
}

.editor-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.editor-row input,
.editor-row select {
  min-width: 0;
}

.editor-row button {
  white-space: nowrap;
}

.button {
  border: 0;
  padding: 12px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.button:hover {
  opacity: 0.85;
}

.button:active {
  transform: translateY(1px);
}

.button.primary {
  margin-top: 20px;
  background: var(--orange);
  color: var(--dark);
}

.button.secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cream);
}

#schedule-editor .editor-row {
  grid-template-columns: 80px 2fr 1fr 120px 120px auto;
}

#standings-editor .editor-row {
  grid-template-columns: 80px 2fr 120px 120px auto;
}

@media (max-width: 700px) {
  .admin-main {
    padding: 48px 16px;
  }

  .admin-section {
    padding: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .editor-row {
    grid-template-columns: 1fr 1fr;
  }

  #schedule-editor .editor-row,
  #standings-editor .editor-row {
    grid-template-columns: 1fr 1fr;
  }

  .editor-row button {
    grid-column: 1 / -1;
  }
}
