.admin-hero {
  padding: 40px 0 30px;
}

.admin-content {
  padding: 0 0 80px;
}

.admin-root {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 10px;
}

.admin-card {
  padding: 22px;
  border: 1px solid rgba(11, 31, 51, 0.1);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-card-title {
  margin: 0 0 16px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 30px);
}

.admin-card-header .admin-card-title {
  margin-bottom: 0;
}

.admin-hint {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
}

.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.team-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfbf9;
}

.team-card.blue {
  border-color: rgba(33, 95, 166, 0.35);
}

.team-card.gold {
  border-color: rgba(201, 154, 56, 0.4);
}

.team-card-title {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.players-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.player-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-row input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}

.player-row input.handicap-input {
  flex: 0 0 64px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
}

.icon-btn.small {
  width: 26px;
  height: 26px;
}

.icon-btn.danger,
.small-btn.danger {
  border-color: rgba(178, 47, 47, 0.35);
  color: #b22f2f;
}

.icon-btn.danger:hover,
.small-btn.danger:hover {
  background: rgba(178, 47, 47, 0.08);
}

.add-btn {
  border-color: rgba(33, 95, 166, 0.35) !important;
  color: var(--blue) !important;
}

.round-card {
  padding: 16px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfbf9;
}

.round-card:first-of-type {
  margin-top: 0;
}

.round-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.round-card-title {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
}

.pars-editor,
.matches-editor {
  margin-top: 16px;
}

.pars-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 10px;
}

.hole-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hole-wrap input {
  width: 52px;
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  text-align: center;
}

.match-row {
  display: grid;
  grid-template-columns: 90px 1fr 1fr auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.match-index {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.match-row input {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}

.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.export-actions .small-btn {
  border-color: rgba(11, 31, 51, 0.2);
  color: var(--navy);
}

.primary-btn {
  background: var(--navy) !important;
  color: var(--white) !important;
}

.export-status {
  min-height: 18px;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.config-preview {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7f7f4;
  color: var(--ink);
  font-family: "Courier New", monospace;
  font-size: 12px;
  resize: vertical;
}

@media (max-width: 640px) {
  .match-row {
    grid-template-columns: 1fr;
  }
}
