/* stage-54-schedule-wizard-scenarios-polish */

#entryModal[data-action="schedule"] {
  --scenario-glow: color-mix(in srgb, var(--label-schedule, #5f9073) 18%, transparent);
}

#entryModal[data-action="schedule"] .schedule-picker-shell {
  display: grid;
  gap: clamp(14px, 1.8vw, 18px);
}

#entryModal[data-action="schedule"] .schedule-picker-shell .schedule-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.7vw, 18px);
}

#entryModal[data-action="schedule"] .schedule-type-card {
  min-height: clamp(112px, 13vw, 148px);
  border-color: color-mix(in srgb, var(--label-schedule, #5f9073) 15%, var(--glass-border));
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, #fff 24%, transparent), transparent 56%),
    radial-gradient(circle at 95% 12%, color-mix(in srgb, var(--primary) 8%, transparent), transparent 13rem),
    color-mix(in srgb, var(--glass-surface) 78%, transparent);
  box-shadow:
    var(--focus-shadow),
    inset 0 1px 0 color-mix(in srgb, #fff 15%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#entryModal[data-action="schedule"] .schedule-type-card:is(:hover, :focus-visible, .selected) {
  border-color: color-mix(in srgb, var(--label-schedule, #5f9073) 38%, var(--glass-border-strong));
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, #fff 30%, transparent), transparent 56%),
    radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--primary) 13%, transparent), transparent 13rem),
    color-mix(in srgb, var(--label-schedule, #5f9073) 13%, var(--glass-elevated));
  box-shadow:
    0 18px 44px var(--scenario-glow),
    var(--focus-glow),
    inset 0 1px 0 color-mix(in srgb, #fff 18%, transparent);
}

#entryModal[data-action="schedule"] .arts-school-group-grid .schedule-type-card::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--glass-border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 14%, transparent);
  content: "";
  opacity: 0.7;
}

#entryModal[data-action="schedule"] .mentor-group-picker {
  display: grid;
  gap: 14px;
  border-color: color-mix(in srgb, var(--label-schedule, #5f9073) 14%, var(--glass-border));
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, #fff 18%, transparent), transparent 58%),
    color-mix(in srgb, var(--glass-surface) 76%, transparent);
  box-shadow: var(--shadow-xs), inset 0 1px 0 color-mix(in srgb, #fff 12%, transparent);
  padding: clamp(14px, 1.8vw, 18px);
}

#entryModal[data-action="schedule"] .wizard-step-body .mentor-group-picker,
#entryModal[data-action="schedule"] .wizard-step-body .sport-day-builder,
#entryModal[data-action="schedule"] .wizard-step-body .music-choice-picker {
  border-radius: 28px !important;
}

#entryModal[data-action="schedule"] .mentor-group-picker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#entryModal[data-action="schedule"] .mentor-group-picker-row .wizard-option {
  min-width: min(148px, 31%);
  min-height: 54px;
  text-align: center;
}

#entryModal[data-action="schedule"] .mentor-group-choice {
  min-width: 46px;
  padding-inline: 14px;
}

#entryModal[data-action="schedule"] .mentor-group-choice.muted {
  opacity: 0.42;
}

#entryModal[data-action="schedule"] .mentor-group-picker-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid color-mix(in srgb, var(--label-schedule, #5f9073) 12%, var(--glass-border));
  padding-top: 14px;
}

#entryModal[data-action="schedule"] .mentor-group-picker-add span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-size: 1rem;
  font-weight: 820;
}

#entryModal[data-action="schedule"] .sport-day-builder {
  border-radius: 28px !important;
}

#entryModal[data-action="schedule"] .sport-day-list,
#entryModal[data-action="schedule"] .practice-day-list,
#entryModal[data-action="schedule"] .arts-day-subject-list {
  display: grid;
  gap: 10px;
}

#entryModal[data-action="schedule"] .sport-day-row,
#entryModal[data-action="schedule"] .practice-day-row,
#entryModal[data-action="schedule"] .arts-day-subject-row {
  display: grid;
  grid-template-columns: minmax(92px, 116px) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-width: 0;
}

#entryModal[data-action="schedule"] .sport-day-button,
#entryModal[data-action="schedule"] .practice-day-button,
#entryModal[data-action="schedule"] .arts-day-subject {
  width: 100%;
  min-height: 50px;
  justify-content: center;
}

#entryModal[data-action="schedule"] .sport-time-popover,
#entryModal[data-action="schedule"] .practice-time-popover,
#entryModal[data-action="schedule"] .arts-time-popover {
  display: grid;
  grid-template-columns: minmax(0, auto) auto;
  align-items: end;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  border-radius: 24px;
  padding: 10px;
}

#entryModal[data-action="schedule"] .time-picker {
  display: grid;
  gap: 7px;
  width: min(190px, 100%);
}

#entryModal[data-action="schedule"] .time-picker-trigger {
  min-height: 44px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--glass-border));
  border-radius: 16px;
  background: color-mix(in srgb, var(--glass-surface) 76%, transparent);
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 850;
}

#entryModal[data-action="schedule"] .time-picker-panel {
  max-width: 190px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  border-radius: 18px;
  padding: 6px;
}

#entryModal[data-action="schedule"] .time-picker-column {
  max-height: 190px;
  overflow: auto;
  display: grid;
  gap: 5px;
  scrollbar-gutter: stable;
}

#entryModal[data-action="schedule"] .time-picker-column button {
  min-height: 34px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-weight: 780;
}

#entryModal[data-action="schedule"] .time-picker-column button:is(:hover, :focus-visible, .selected) {
  background: color-mix(in srgb, var(--primary) 18%, var(--glass-elevated));
  color: color-mix(in srgb, var(--primary) 82%, var(--text));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 28%, transparent);
}

#entryModal[data-action="schedule"] .sport-day-sessions,
#entryModal[data-action="schedule"] .practice-day-sessions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

#entryModal[data-action="schedule"] .sport-day-session,
#entryModal[data-action="schedule"] .practice-day-session {
  min-width: 128px;
  max-width: 180px;
  min-height: 50px;
  border-radius: 18px;
  padding: 8px 10px;
}

#entryModal[data-action="schedule"] .sport-add-more {
  width: 50px;
  height: 50px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--glass-border));
  border-radius: 16px;
  background: color-mix(in srgb, var(--glass-surface) 78%, transparent);
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 820;
}

#entryModal[data-action="schedule"] .music-choice-picker {
  border-radius: 28px !important;
}

#entryModal[data-action="schedule"] .music-choice-picker .wizard-chip-row,
#entryModal[data-action="schedule"] .lesson-subject-picker .wizard-chip-row {
  max-height: min(28dvh, 280px);
  overflow: auto;
  padding-right: 4px;
}

#entryModal[data-action="schedule"] .selected-subjects {
  gap: 12px;
}

#entryModal[data-action="schedule"] .wizard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#entryModal[data-action="schedule"] .wizard-tag {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--label-schedule, #5f9073) 15%, var(--glass-border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--glass-surface) 80%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 12%, transparent);
  color: var(--text);
  font-weight: 780;
  padding: 0 10px 0 14px;
}

#entryModal[data-action="schedule"] .wizard-tag button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
  color: var(--muted-strong);
}

#entryModal[data-action="schedule"] .wizard-lesson-list {
  display: grid;
  gap: 9px;
}

#entryModal[data-action="schedule"] .wizard-lesson,
#entryModal[data-action="schedule"] .wizard-person-row {
  min-height: 50px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 14% 0%, color-mix(in srgb, #fff 13%, transparent), transparent 58%),
    color-mix(in srgb, var(--glass-surface) 82%, transparent);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 12%, transparent),
    0 9px 22px color-mix(in srgb, #000 4%, transparent);
}

#entryModal[data-action="schedule"] .wizard-lesson strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#entryModal[data-action="schedule"] .wizard-lesson small {
  margin-left: 5px;
}

#entryModal[data-action="schedule"] .text-link {
  width: max-content;
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--label-schedule, #5f9073) 12%, var(--glass-border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--glass-surface) 62%, transparent);
  color: color-mix(in srgb, var(--primary) 82%, var(--text));
  font-weight: 760;
  padding: 0 12px;
  text-decoration: none;
}

#entryModal[data-action="schedule"] .text-link:is(:hover, :focus-visible) {
  box-shadow: var(--focus-glow);
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  #entryModal[data-action="schedule"] .schedule-picker-shell .schedule-type-grid {
    grid-template-columns: 1fr;
  }

  #entryModal[data-action="schedule"] .schedule-type-card {
    min-height: 104px;
    border-radius: 24px;
  }

  #entryModal[data-action="schedule"] .sport-day-row,
  #entryModal[data-action="schedule"] .practice-day-row,
  #entryModal[data-action="schedule"] .arts-day-subject-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #entryModal[data-action="schedule"] .sport-time-popover,
  #entryModal[data-action="schedule"] .practice-time-popover,
  #entryModal[data-action="schedule"] .arts-time-popover {
    width: 100%;
    grid-template-columns: 1fr;
  }

  #entryModal[data-action="schedule"] .time-picker {
    width: 100%;
  }

  #entryModal[data-action="schedule"] .time-picker-panel {
    max-width: none;
  }

  #entryModal[data-action="schedule"] .mentor-group-picker-add {
    grid-template-columns: 1fr;
  }

  #entryModal[data-action="schedule"] .mentor-group-picker-row .wizard-option {
    min-width: 0;
    flex: 1 1 9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #entryModal[data-action="schedule"] .schedule-type-card,
  #entryModal[data-action="schedule"] .wizard-chip,
  #entryModal[data-action="schedule"] .wizard-option,
  #entryModal[data-action="schedule"] .text-link,
  #entryModal[data-action="schedule"] .sport-add-more {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
