.plan-schedule-page {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  min-height: 0;
}

.plan-schedule-page__overview,
.plan-schedule-page__list-card,
.plan-schedule-page__editor-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 0;
  border-radius: 20px;
  box-shadow: none;
}

.plan-schedule-page__split {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  min-height: 0;
  align-items: stretch;
}

.plan-schedule-page__split--stacked {
  grid-template-columns: minmax(0, 1fr);
}

.plan-schedule-page__list-card .ant-card-body,
.plan-schedule-page__editor-card .ant-card-body,
.plan-schedule-page__detail-card .ant-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.plan-schedule-page__detail-actions.ant-space {
  align-items: center;
}

.plan-schedule-page__detail-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 24px;
  border-radius: 18px;
  border: 1px dashed rgba(22, 93, 255, 0.18);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96) 0%, rgba(238, 244, 255, 0.96) 100%);
}

.plan-schedule-page__intro.ant-typography {
  margin: 6px 0 0;
}

.plan-schedule-page__alert {
  border-radius: 18px;
}

.plan-schedule-page__list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
}

.plan-schedule-page__list-item {
  padding: 0;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 16px;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.plan-schedule-page__list-item:hover {
  background: #f8fbff;
  border-color: rgba(22, 93, 255, 0.12);
}

.plan-schedule-page__list-item--active {
  background: #f5f9ff;
  border-color: rgba(22, 93, 255, 0.22);
}

.plan-schedule-page__list-body {
  width: 100%;
  padding: 14px 16px;
}

.plan-schedule-page__list-note.ant-typography {
  margin: 8px 0 10px;
}

.plan-schedule-page__form {
  width: 100%;
  display: grid;
  flex: 0 0 auto;
  gap: 14px;
}

.plan-schedule-page__detail {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
}

.plan-schedule-page__form > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid rgba(22, 93, 255, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 255, 0.94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 30px rgba(23, 61, 130, 0.04);
}

.plan-schedule-page__select {
  width: 100%;
}

.plan-schedule-page__select.ant-select .ant-select-selector {
  min-height: 42px;
  border-radius: 12px;
  border-color: rgba(22, 93, 255, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.plan-schedule-page__select.ant-select .ant-select-selection-wrap {
  align-items: center;
}

.plan-schedule-page__select.ant-select.ant-select-focused .ant-select-selector,
.plan-schedule-page__select.ant-select.ant-select-open .ant-select-selector {
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.14);
}

.plan-schedule-page__select-popup.ant-select-dropdown {
  z-index: 1450;
  padding: 6px;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
}

.plan-schedule-page__select-popup.ant-select-dropdown .ant-select-item {
  min-height: 38px;
  border-radius: 10px;
}

.plan-schedule-page__notepad.ant-input {
  padding: 20px 18px;
  padding-bottom: 26px;
  line-height: 1.85;
  border-radius: 22px;
  border: 1px solid rgba(22, 93, 255, 0.1);
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.96) 0,
      rgba(255, 255, 255, 0.96) 32px,
      rgba(75, 130, 255, 0.08) 32px,
      rgba(75, 130, 255, 0.08) 33px
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 18px 40px rgba(23, 61, 130, 0.06);
  box-sizing: border-box;
  overflow-y: auto;
  scrollbar-gutter: stable;
  resize: none;
}

.plan-schedule-page__notepad.ant-input:focus,
.plan-schedule-page__notepad.ant-input-focused {
  border-color: rgba(22, 93, 255, 0.24);
  box-shadow:
    0 0 0 4px rgba(22, 93, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.plan-schedule-page__notepad-frame {
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.plan-schedule-page__notepad-frame .ant-input-textarea,
.plan-schedule-page__notepad-frame .plan-schedule-page__notepad.ant-input {
  width: 100%;
}

.plan-schedule-page__date-range-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-schedule-page__date-range-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-schedule-page__time-window-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-schedule-page__time-window-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-schedule-page__weekday-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-schedule-page__weekday-group.ant-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.plan-schedule-page__weekday-group .ant-checkbox-wrapper {
  margin-inline-start: 0;
}

.plan-schedule-page__date-range-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.plan-schedule-page__time-window-item {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.plan-schedule-page__date-range-item .ant-input {
  min-height: 42px;
  border-radius: 12px;
  border-color: rgba(22, 93, 255, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.plan-schedule-page__overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: rgba(11, 23, 57, 0.24);
  backdrop-filter: blur(10px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.plan-schedule-page__overlay-card.ant-card {
  width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  border: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.plan-schedule-page__overlay-card .ant-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px 0 0;
  overflow: hidden;
}

.plan-schedule-page__overlay-header {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(22, 93, 255, 0.08);
}

.plan-schedule-page__overlay-title.ant-typography {
  margin: 0;
}

.plan-schedule-page__overlay-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 18px calc(env(safe-area-inset-bottom, 0px) + 24px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 960px) {
  .plan-schedule-page__split {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan-schedule-page__detail-card {
    display: none;
  }
}

@media (max-width: 768px) {
  .plan-schedule-page__overlay-card.ant-card {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
  }

  .plan-schedule-page__form {
    gap: 12px;
  }

  .plan-schedule-page__form > div {
    padding: 14px;
    border-radius: 16px;
  }

  .plan-schedule-page__date-range-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan-schedule-page__time-window-item {
    align-items: stretch;
  }

  .plan-schedule-page__overlay-card .ant-card-body {
    padding: 14px 14px 18px;
  }
}
