.round-setup-board {
  display: grid;
  gap: 0.9rem;
}

.round-setup-card {
  background: #ffffff;
  border: 1px solid #d8e6dd;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(16, 59, 44, 0.08);
  display: grid;
  gap: 0.85rem;
  padding: 0.85rem;
}

.round-setup-card-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.round-setup-card-head strong {
  color: #0f3d2b;
  font-size: 1.02rem;
}

.round-setup-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr 1fr;
}

.round-format-picker {
  display: grid;
  gap: 0.55rem;
}

.round-format-row {
  align-items: center;
  background: #f7faf8;
  border: 1px solid #dce8e0;
  border-radius: 8px;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.55rem;
}

.round-format-row label {
  align-items: center;
  color: #153d2f;
  display: flex;
  font-size: 0.86rem;
  font-weight: 850;
  gap: 0.45rem;
  min-width: 0;
}

.round-format-row input[type="checkbox"] {
  height: 18px;
  width: 18px;
}

.round-format-row .admin-action {
  min-height: 2rem;
  padding: 0.28rem 0.58rem;
}

.round-save-row {
  align-items: center;
  display: flex;
  gap: 0.55rem;
  justify-content: flex-start;
}

.round-save-row span {
  color: #52645b;
  font-size: 0.78rem;
  font-weight: 750;
}

.round-format-modal {
  align-items: stretch;
  background: rgba(6, 28, 20, 0.62);
  bottom: 0;
  display: grid;
  left: 0;
  padding: 1rem;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10000;
}

.round-format-modal[hidden] {
  display: none;
}

.round-format-sheet {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  margin: auto;
  max-height: min(92vh, 980px);
  max-width: 980px;
  overflow: hidden;
  width: min(100%, 980px);
}

.round-format-modal-head {
  align-items: center;
  background: #0f5f3c;
  color: #ffffff;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.9rem;
}

.round-format-modal-head strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.15;
}

.round-format-modal-head span {
  color: rgba(255, 255, 255, 0.82);
  display: block;
  font-size: 0.78rem;
  font-weight: 750;
  margin-top: 0.16rem;
}

.round-format-body {
  display: grid;
  gap: 0.85rem;
  overflow: auto;
  padding: 0.9rem;
}

.round-format-panel {
  border: 1px solid #d8e6dd;
  border-radius: 8px;
  display: grid;
  gap: 0.7rem;
  padding: 0.75rem;
}

.round-format-panel > header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.round-format-panel > header strong {
  color: #103b2c;
  font-size: 0.95rem;
}

.division-choice-grid,
.tee-assignment-grid {
  display: grid;
  gap: 0.5rem;
}

.division-choice-grid label {
  align-items: center;
  background: #f7faf8;
  border: 1px solid #dce8e0;
  border-radius: 7px;
  display: flex;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 0.45rem;
  padding: 0.45rem 0.55rem;
}

.round-drag-layout {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.round-drag-list,
.round-drop-list {
  display: grid;
  gap: 0.5rem;
}

.round-drag-item,
.round-drop-box {
  background: #f7faf8;
  border: 1px solid #dce8e0;
  border-radius: 8px;
  color: #143d2d;
  font-size: 0.82rem;
  font-weight: 850;
  min-height: 2.35rem;
  padding: 0.55rem;
}

.round-drag-item {
  cursor: grab;
}

.round-drop-box {
  align-content: start;
  display: grid;
  gap: 0.4rem;
}

.round-drop-box.drag-over {
  border-color: #0f7a4a;
  box-shadow: 0 0 0 2px rgba(15, 122, 74, 0.16);
}

.round-pill {
  align-items: center;
  background: #e7f3ec;
  border: 1px solid #bdd9c8;
  border-radius: 999px;
  display: inline-flex;
  gap: 0.35rem;
  justify-content: space-between;
  padding: 0.28rem 0.42rem 0.28rem 0.55rem;
}

.round-pill button {
  appearance: none;
  background: transparent;
  border: 0;
  color: #17633f;
  cursor: pointer;
  font-weight: 950;
  padding: 0 0.1rem;
}

.tee-assignment-row {
  align-items: center;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.8fr);
}

.tee-assignment-row span {
  color: #263b32;
  font-size: 0.8rem;
  font-weight: 850;
}

.team-builder-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.team-card-grid {
  display: grid;
  gap: 0.55rem;
}

.team-card {
  background: #f7faf8;
  border: 1px solid #dce8e0;
  border-radius: 8px;
  display: grid;
  gap: 0.45rem;
  min-height: 4.2rem;
  padding: 0.55rem;
}

.round-format-footer {
  align-items: center;
  border-top: 1px solid #d8e6dd;
  display: flex;
  gap: 0.6rem;
  justify-content: flex-start;
  padding: 0.85rem 0.9rem;
}

@media (max-width: 720px) {
  .round-setup-grid,
  .round-drag-layout,
  .team-builder-grid {
    grid-template-columns: 1fr;
  }

  .round-format-modal {
    padding: 0;
  }

  .round-format-sheet {
    border-radius: 0;
    height: 100vh;
    max-height: none;
    width: 100%;
  }
}
