.draws-body {
  background: var(--bg, #f1f5f9);
  min-height: 100vh;
}

.draws-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 2.25rem;
}

.draws-card {
  background: #fff;
  border-radius: var(--radius, 12px);
  box-shadow: var(--shadow, 0 4px 20px rgba(0,0,0,0.06));
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.draws-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  margin: 0;
}

.draws-card-content {
  padding: 1.25rem 1.5rem;
}

.draws-error {
  color: var(--live-red, #dc2626);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  min-height: 1.2em;
}

.draws-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 1.65rem;
  margin-bottom: 1rem;
}

.draws-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.draws-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

/* Text & date inputs */
.draws-main .draws-field input[type="text"],
.draws-main .draws-field input[type="date"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.72rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.4;
  color: #111827;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.draws-main .draws-field input[type="text"]::placeholder,
.draws-main .draws-field input[type="date"]::placeholder {
  color: #9ca3af;
}

.draws-main .draws-field input[type="text"]:hover,
.draws-main .draws-field input[type="date"]:hover {
  border-color: #94a3b8;
}

.draws-main .draws-field input[type="text"]:focus,
.draws-main .draws-field input[type="date"]:focus {
  outline: none;
  border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Native selects: no double arrows, room for chevron */
.draws-main .draws-field select,
.draws-main .draws-subsection > select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  min-height: 3.0625rem;
  padding: 0.72rem 2.75rem 0.72rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.4;
  color: #111827;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.72rem center;
  background-size: 1.125rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.draws-main .draws-field select::-ms-expand,
.draws-main .draws-subsection > select::-ms-expand {
  display: none;
}

/* One consistent border for selects (draw type, RR+KO pools, etc.): no hover/focus color shift on mouse */
.draws-main .draws-field select:hover,
.draws-main .draws-subsection > select:hover {
  border-color: #cbd5e1;
  box-shadow: none;
}

.draws-main .draws-field select:focus,
.draws-main .draws-subsection > select:focus {
  outline: none;
  border-color: #cbd5e1;
  box-shadow: none;
}

.draws-main .draws-field select:focus-visible,
.draws-main .draws-subsection > select:focus-visible {
  border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.draws-main .draws-field select option {
  color: #111827;
  background-color: #fff;
  font-weight: 500;
}

.draws-field-error {
  font-size: 0.8rem;
  color: var(--live-red, #dc2626);
}

.draws-field .required {
  color: var(--live-red, #dc2626);
  font-weight: 700;
}

.draws-section {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.draws-section-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
}

.draws-subsection {
  margin-top: 1rem;
}

.draws-subsection > label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.45rem;
}

.draws-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  margin-top: 0.5rem;
}

.draws-main .draws-two-cols > div > label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.4rem;
}

@media (max-width: 600px) {
  .draws-two-cols {
    grid-template-columns: 1fr;
  }
}

.draws-radio-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  min-height: 3.0625rem;
  padding: 0 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Same static border as selects (Round-Robin section has no focus ring on controls) */
.draws-radio-row:focus-within {
  border-color: #cbd5e1;
  box-shadow: none;
}

.draws-radio,
.draws-checkbox {
  font-weight: 500;
  font-size: 0.9375rem;
  color: #1e293b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.draws-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted, #5c6b7c);
  margin-top: 0.25rem;
}

.draws-players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem 1.25rem;
  margin-top: 0.5rem;
}

.draws-player-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.draws-player-row .draws-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  background: #e0e7ff;
  color: #3730a3;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
  letter-spacing: 0.02em;
}

.draws-main .draws-player-row input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.98rem;
  font-family: inherit;
  line-height: 1.4;
  color: #111827;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.draws-main .draws-player-row input[type="text"]::placeholder {
  color: #9ca3af;
}

.draws-main .draws-player-row input[type="text"]:hover {
  border-color: #94a3b8;
}

.draws-main .draws-player-row input[type="text"]:focus {
  outline: none;
  border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.draws-player-row .draws-input-stacked {
  margin-top: 0.15rem;
}

@media (max-width: 768px) {
  .draws-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .draws-main {
    padding: 1rem 0.75rem 1.75rem;
  }

  .draws-card-title {
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
  }

  .draws-card-content {
    padding: 1rem 1rem 1.15rem;
  }

  .draws-actions .dash-btn {
    width: 100%;
    justify-content: center;
  }
}

.draws-pool-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.1rem 1.15rem;
  margin-bottom: 1rem;
  background: #fafbfc;
}

.draws-pool-card h4 {
  margin: 0 0 0.65rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
}

.draws-actions {
  margin-top: 1.65rem;
  padding-top: 1.15rem;
  border-top: 1px solid #e2e8f0;
}

.draws-actions .dash-btn {
  min-height: 2.75rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.95rem;
}

.draws-preview-card .draws-preview-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.draws-preview-content {
  padding: 1.25rem 1.5rem;
}

.draws-preview-hint {
  font-size: 0.85rem;
  color: var(--text-muted, #5c6b7c);
  margin-bottom: 0.75rem;
}

.draws-preview-iframe {
  width: 100%;
  height: 80vh;
  min-height: 400px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm, 8px);
}

/* Knockout config grid matches Round-Robin + KO grid */
.draws-knockout-opts {
  align-items: stretch;
}

/* Seeding block: same full-width select as RR pool dropdowns */
.draws-main #drawsSeedingSection > label:first-of-type {
  margin-bottom: 0.45rem;
}

.draws-main #drawsSeedingSection > select {
  width: 100%;
  max-width: none;
  margin-bottom: 0.75rem;
}

/* Match RR: checkboxes full-width below the main option row(s) */
.draws-knockout-opts .draws-field:has(.draws-checkbox) {
  grid-column: 1 / -1;
}

.draws-main .draws-checkbox input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--primary, #2563eb);
  cursor: pointer;
}
