.roster-event-dialog_dialog__XMsyj {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: calc(100% - 2rem);
  max-width: 1280px;
  max-height: calc(100dvh - 2rem);
  overflow: hidden;
  padding: 16px 24px;
}

.roster-event-dialog_dialog__XMsyj > .ui-popup-navigation,
.roster-event-dialog_dialog__XMsyj > h2,
.roster-event-dialog_dialog__XMsyj > p {
  flex-shrink: 0;
}

.roster-event-dialog_form__ihR8Q {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.roster-event-dialog_body__NFSmG {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 4px 16px 0;
}

.roster-event-dialog_body__NFSmG fieldset,
.roster-event-dialog_body__NFSmG .roster-input,
.roster-event-dialog_body__NFSmG label {
  min-width: 0;
}

.roster-event-dialog_body__NFSmG .roster-input {
  max-width: 100%;
}

.roster-event-dialog_body__NFSmG select.roster-input {
  overflow: hidden;
  text-overflow: ellipsis;
}

.roster-event-dialog_column__y6vdc {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.roster-event-dialog_timeFields__3CB6L {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.roster-event-dialog_timeFields__3CB6L > :last-child {
  grid-column: 1 / -1;
}

.roster-event-dialog_footer__49Cxj {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border-soft);
  padding-top: 12px;
}

.roster-event-dialog_footer__49Cxj > button {
  flex-shrink: 0;
}

@media (min-width: 960px) {
  .roster-event-dialog_body__NFSmG {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    align-items: start;
  }

  .roster-event-dialog_timeFields__3CB6L {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .roster-event-dialog_timeFields__3CB6L > :last-child {
    grid-column: auto;
  }
}

@media (max-width: 639px) {
  .roster-event-dialog_dialog__XMsyj {
    width: calc(100% - 1rem);
    max-height: calc(100dvh - 1rem);
    padding: 12px;
  }

  .roster-event-dialog_footer__49Cxj {
    flex-wrap: wrap;
    gap: 8px;
  }

  .roster-event-dialog_footer__49Cxj > button {
    width: 100%;
  }
}