.schedule-page {
  min-height: 100svh;
  max-width: 1040px;
  margin: 0 auto;
  padding: 72px 0 0;
  display: flex;
  flex-direction: column;
}
button:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

/* на iOS інколи рамка через -webkit-appearance */
button {
  -webkit-tap-highlight-color: transparent;
}
.schedule-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: env(safe-area-inset-top);
  left: 0;
  right: 0;
  z-index: 25;
  padding: 8px 16px;
  height: 64px;
  box-sizing: border-box;
}

.schedule-back,
.schedule-save {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.schedule-back {
  left: 16px;
  width: 56px;
  height: 56px;
  background: #fff;
}

.schedule-save {
  right: 16px;
  width: 56px;
  height: 56px;
  background: #1b1b1b;
}

.schedule-save:disabled {
  opacity: 0.65;
  cursor: default;
}

.schedule-save--hidden {
  display: none !important;
}

.schedule-back img,
.schedule-save img {
  width: 24px;
  height: 24px;
  display: block;
}

.schedule-title {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 600;
  color: #1b1b1b;
}

.schedule-leave-modal[hidden] {
  display: none !important;
}

.schedule-leave-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.schedule-leave-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 27, 27, 0.62);
}

.schedule-leave-modal__dialog {
  position: relative;
  width: min(100%, 360px);
  border-radius: 24px;
  background: #fff;
  padding: 22px 16px 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.schedule-leave-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #edf0f4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.schedule-leave-modal__close img {
  width: 16px;
  height: 16px;
}

.schedule-leave-modal__title {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 0 40px;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  color: #1b1b1b;
  text-align: center;
}

.schedule-leave-modal__save,
.schedule-leave-modal__exit {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  cursor: pointer;
}

.schedule-leave-modal__save {
  border: 0;
  background: #1b1b1b;
  color: #fff;
}

.schedule-leave-modal__exit {
  border: 1px solid #f0cdcd;
  background: #fff;
  color: #d51616;
}

.schedule-saved-modal[hidden] {
  display: none !important;
}

.schedule-saved-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.schedule-saved-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 27, 27, 0.62);
}

.schedule-saved-modal__dialog {
  position: relative;
  width: min(100%, 360px);
  border-radius: 24px;
  background: #fff;
  padding: 22px 16px 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.schedule-saved-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #edf0f4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.schedule-saved-modal__close img {
  width: 16px;
  height: 16px;
}

.schedule-saved-modal__title {
  margin: 14px 0 4px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 40px;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  color: #1b1b1b;
  text-align: center;
}

.schedule-saved-modal__ok,
.schedule-saved-modal__home {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  cursor: pointer;
}

.schedule-saved-modal__ok {
  border: 0;
  background: #1b1b1b;
  color: #fff;
}

.schedule-saved-modal__home {
  border: 1px solid #1b1b1b;
  background: #fff;
  color: #1b1b1b;
}

.schedule-form {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-top: 16px;
}

.schedule-card {
  flex: 1;
  min-height: 0;
  width: 100%;
  background: #fff;
  border-radius: 36px 36px 0 0;
  padding: 40px 28px calc(32px + 64px + env(safe-area-inset-bottom));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.schedule-card-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.schedule-section-title {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 24px;
  line-height: 1.08;
  font-weight: 600;
  color: #1b1b1b;
  text-align: center;
}

.schedule-section-subtitle {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  
  font-weight: 600;
  color: #1b1b1b;
  text-align: center;
}

.schedule-workdays-wrap {
  position: relative;
}

.schedule-workdays-field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  border-radius: 16px;
  border: 1px solid #d1d5db;
  padding: 14px 56px 14px 20px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.schedule-workdays-field:focus-visible {
  outline: none;
  border-color: #a5afbc;
  box-shadow: 0 0 0 2px rgba(27, 27, 27, 0.08);
}

.schedule-workdays-field::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 22px;
  height: 22px;
  background: url("../images/icons/arrow_down.svg") center/contain no-repeat;
  transform: translateY(-50%);
  opacity: 0.7;
  pointer-events: none;
}

.schedule-workdays-content {
  width: 100%;
  min-width: 0;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.schedule-workdays-caption {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size:12px;
  line-height: 1.25;
  font-weight: 500;
  color: #7b8796;
}

.schedule-workdays-input {
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  margin: 0;
  padding: 0;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.18;
  font-weight: 600;
  color: #1b1b1b;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
}

.schedule-workdays-input::placeholder {
  color: #8c97a6;
}

.schedule-workdays-options {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  border: 1px solid #e1e5eb;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  z-index: 40;
}

.schedule-workdays-options.is-active {
  display: block;
}

.schedule-workdays-option {
  width: 100%;
  border: 0;
  border-bottom: 1px dashed #e6ebf1;
  background: #fff;
  cursor: pointer;
  padding: 14px 16px;
  text-align: left;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.24;
  font-weight: 600;
  color: #1b1b1b;
}

.schedule-workdays-option:last-child {
  border-bottom: none;
}

.schedule-workdays-option.is-active {
  background: #f8fafd;
}

.schedule-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.schedule-advanced {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.schedule-advanced.is-active {
  display: flex;
  margin-top: 16px;
}

.schedule-advanced-calendar {
  background: transparent;
}

.schedule-advanced-calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 24px;
}

.schedule-advanced-calendar .booking-calendar__month {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  color: #1b1b1b;
}

.schedule-advanced-calendar .booking-calendar__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 0px solid #b9b9b9;
  border-radius: 6px;
  background: #fff;
  padding: 0;
  cursor: pointer;
}

.schedule-advanced-calendar .booking-calendar__nav img {
  width: 24px;
  height: 24px;
}

.schedule-page .schedule-advanced-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.schedule-page .schedule-advanced-calendar__weekdays > div {
  text-align: center;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  line-height: 1;
  font-weight: 400;
  color: #1b1b1b;
}

.schedule-page .schedule-advanced-calendar__weekdays > div:nth-child(6),
.schedule-page .schedule-advanced-calendar__weekdays > div:nth-child(7) {
  color: #d51616;
}

.schedule-page .schedule-advanced-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px 8px;
  font-size: 12px;
}

.schedule-page .schedule-advanced-calendar__day {
  width: 40px;
  min-width: 40px;
  height: 52px;
  justify-self: center;
  border: 1px solid #e2e7ed;
  border-radius: 10px;
  cursor: pointer;
  background: #fbfcfe;
  color: #1b1b1b;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1px;
  padding: 6px 2px 4px;
  box-sizing: border-box;
}

.schedule-page .schedule-advanced-calendar__date {
  font-size: 14px;
  line-height: 1.1;
  font-weight: 600;
  color: #1b1b1b;
  margin-bottom: 3px;
}

.schedule-page .schedule-advanced-calendar__time {
  font-size: 8px;
  line-height: 1.1;
  font-weight: 500;
  color: #8f99a6;
  white-space: nowrap;
}

.schedule-page .schedule-advanced-calendar__day.is-outside:not(.has-open):not(.has-closed) {
  color: #8f99a6;
  border-color: #edf1f5;
  background: #fff;
}

.schedule-page .schedule-advanced-calendar__day.is-selected {
  box-shadow: 0 0 0 2px #67AFF7;
  border-color: #67AFF7;
}

.schedule-page .schedule-advanced-calendar__day.has-open {
  background: #f6f8fb;
  border-color: #d6dee8;
}

.schedule-page .schedule-advanced-calendar__day.has-open .schedule-advanced-calendar__time {
  color: #8f99a6;
}

.schedule-page .schedule-advanced-calendar__day.has-open.is-selected,
.schedule-page .schedule-advanced-calendar__day.has-closed.is-selected {
  box-shadow: 0 0 0 2px #67AFF7;
  border-color: #67AFF7;
}

.schedule-page .schedule-advanced-calendar__day.has-closed {
  background: #fdf5f5;
  border-color: #f1dede;
}

.schedule-page .schedule-advanced-calendar__day.has-closed .schedule-advanced-calendar__date {
  color: #c81212;
}

@media (max-width: 360px) {
  .schedule-page .schedule-advanced-calendar__weekdays {
    grid-template-columns: repeat(7, 36px);
    gap: 4px;
    justify-content: space-between;
  }

  .schedule-page .schedule-advanced-calendar__grid {
    grid-template-columns: repeat(7, 36px);
    gap: 4px;
    justify-content: space-between;
  }

  .schedule-page .schedule-advanced-calendar__day {
    width: 36px;
    min-width: 36px;
  }

}

.schedule-advanced-panel {
  position: fixed;
  top: env(safe-area-inset-top);
  bottom: 0;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(100%, 1040px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  background: var(--app-bg, #e8edf4);
  overflow: hidden;
}

.schedule-page--advanced-editor-open .schedule-back,
.schedule-page--advanced-editor-open .schedule-save,
.schedule-page--advanced-editor-open .schedule-title {
  visibility: hidden;
}

.schedule-advanced-panel[hidden] {
  display: none !important;
}

.schedule-advanced-panel__header {
  position: relative;
  flex: 0 0 auto;
  height: 64px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: transparent;
  transition: background-color 180ms ease;
}

.schedule-advanced-panel__back {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.schedule-advanced-panel__back img {
  width: 24px;
  height: 24px;
}

.schedule-advanced-panel__title {
  margin: 0;
  text-align: center;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 600;
  color: #1b1b1b;
}

.schedule-advanced-panel__save {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #1b1b1b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.schedule-advanced-panel__save:disabled {
  opacity: 0.5;
  cursor: default;
}

.schedule-advanced-panel__save--hidden {
  display: none !important;
}

.schedule-advanced-panel__save img {
  width: 22px;
  height: 22px;
  display: block;
}

.schedule-advanced-panel__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 36px 36px 0 0;
  padding: 30px 16px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.schedule-advanced-panel__heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.schedule-advanced-panel__heading h4 {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 24px;
  line-height: 1.08;
  font-weight: 600;
  color: #1b1b1b;
}

.schedule-advanced-panel__heading p {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
  color: #1b1b1b;
 
}

.schedule-advanced-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  border-radius: 999px;
  padding: 3px;
  border: 1px solid #d1d5db;
  background: #eceff3;
   margin-top: 16px;
}

.schedule-advanced-tabs__btn {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6f7782;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  cursor: pointer;
}

.schedule-advanced-tabs__btn.is-active {
  background: #fff;
  color: #1b1b1b;
}

.schedule-advanced-tab {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.schedule-advanced-tab[hidden] {
  display: none !important;
}

.schedule-advanced-day-mode {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
  margin-bottom: 8px;
  justify-content: center;
}

.schedule-advanced-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  color: #1b1b1b;
}

.schedule-advanced-radio input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #1b1b1b;
}

.schedule-advanced-time-grid .schedule-time-field,
.schedule-advanced-pattern-grid .schedule-time-field {
  min-height: 64px;
  border-radius: 16px;
  padding: 10px 32px 10px 40px;
}

.schedule-advanced-time-grid .schedule-time-icon,
.schedule-advanced-pattern-grid .schedule-time-icon {
  left: 12px;
  width: 20px;
  height: 20px;
}

.schedule-advanced-time-grid .schedule-time-field::after,
.schedule-advanced-pattern-grid .schedule-time-field::after {
  width: 22px;
  height: 22px;
  right: 8px;
  background: url("../images/icons/arrow_down.svg") center/contain no-repeat;
}

.schedule-advanced-time-grid.is-disabled {
  opacity: 0.56;
}

.schedule-advanced-time-grid.is-disabled .schedule-time-field {
  cursor: default;
}

.schedule-advanced-time-grid.is-disabled .schedule-time-field::after {
  opacity: 0.35;
}

.schedule-advanced-time-grid .schedule-time-input:disabled {
  color: #8b95a2;
}

.schedule-advanced-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.schedule-advanced-date-field {
  position: relative;
  min-height: 64px;
  border-radius: 16px;
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 8px 32px 8px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.schedule-advanced-date-field::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  background: url("../images/icons/calendar2.svg") center/contain no-repeat;
  pointer-events: none;
}

.schedule-advanced-date-field::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  background: url("../images/icons/arrow_down.svg") center/contain no-repeat;
  opacity: 0.7;
  pointer-events: none;
}

.schedule-advanced-date-field__caption {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
  color: #8f99a6;
}

.schedule-advanced-date-field input {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  background-image: none;
  padding: 0;
  margin: 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  color: #1b1b1b;
  text-align: left;
  text-align-last: left;
  direction: ltr;
  cursor: pointer;
}

.schedule-advanced-date-field input[type="date"] {
  background-color: transparent;
  background-image: none;
  text-align: left !important;
  text-align-last: left !important;
  direction: ltr;
  -webkit-appearance: none;
  appearance: none;
}

.schedule-advanced-date-field input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.schedule-advanced-date-field input[type="date"]::-webkit-datetime-edit,
.schedule-advanced-date-field input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.schedule-advanced-date-field input[type="date"]::-webkit-date-and-time-value {
  padding: 0;
  margin: 0;
  text-align: left !important;
  text-align-last: left !important;
}

.schedule-advanced-date-field input[type="date"]::-webkit-datetime-edit-month-field,
.schedule-advanced-date-field input[type="date"]::-webkit-datetime-edit-day-field,
.schedule-advanced-date-field input[type="date"]::-webkit-datetime-edit-year-field,
.schedule-advanced-date-field input[type="date"]::-webkit-datetime-edit-text {
  text-align: left !important;
}

.schedule-advanced-date-field input[type="date"]::-webkit-clear-button,
.schedule-advanced-date-field input[type="date"]::-webkit-inner-spin-button {
  display: none;
}

.schedule-advanced-mode-wrap {
  position: relative;
}

.schedule-advanced-select-field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  border-radius: 16px;
  border: 1px solid #d1d5db;
  padding: 14px 56px 14px 20px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.schedule-advanced-select-field:focus-within {
  outline: none;
  border-color: #a5afbc;
}

.schedule-advanced-select-field::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  background: url("../images/icons/arrow_down.svg") center/contain no-repeat;
  opacity: 0.7;
  pointer-events: none;
}

.schedule-advanced-select-content {
  width: 100%;
  min-width: 0;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.schedule-advanced-select-field__caption {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 500;
  color: #7b8796;
}

.schedule-advanced-select-input {
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  padding: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.18;
  font-weight: 600;
  color: #1b1b1b;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
}

.schedule-advanced-select-native {
  display: none;
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.schedule-advanced-select-options {
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 70;
}

.schedule-advanced-select-option {
  font-size: 14px;
  line-height: 1.24;
  font-weight: 600;
}

.schedule-advanced-select-option.is-active {
  background: #f8fafd;
}

.schedule-days-list--period {
  display: grid;
  margin-bottom: 24px;
}

.schedule-advanced-pattern-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.schedule-advanced-period-mode--pattern .schedule-advanced-pattern-grid {
  margin-bottom: 24px;
}

.schedule-advanced-period-mode[hidden] {
  display: none !important;
}

.schedule-advanced-number-field {
  min-height: 64px;
  border-radius: 16px;
  border: 1px solid #d1d5db;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.schedule-advanced-number-field__caption {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
  color: #8f99a6;
}

.schedule-advanced-number-field input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  padding: 0;
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  color: #1b1b1b;
}

.schedule-advanced-period-hint {
  margin: 0;
  border: 1px solid #f0f3f5;
  border-radius: 14px;
  padding: 12px;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
  color: #6f7579;
  text-align: center;
}

@media (max-width: 480px) {
  .schedule-advanced-panel__body {
    padding: 28px 16px calc(16px + env(safe-area-inset-bottom));
  }
}

.schedule-days-list {
  display: none;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.schedule-days-list.is-active {
  display: grid;
}

/* In advanced period mode, weekday chips must always be visible */
.schedule-advanced-period-mode--weekdays .schedule-days-list--period {
  display: grid;
}

.schedule-page--days #settingsDaysList {
  order: 30;
  margin-top: 4px;
}

.schedule-page--days #settingsWorkRange {
  order: 40;
}

.schedule-page--days #settingsError {
  order: 45;
}

.schedule-page--days #settingsDaysHint {
  order: 50;
}

.schedule-day-item {
  position: relative;
  min-height: 40px;
  display: block;
  cursor: pointer;
  user-select: none;
}

.schedule-day-item__name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px #d1d5db;
  background: #fff;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  color: #1b1b1b;
}

.schedule-day-item__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.schedule-day-item__input:focus-visible + .schedule-day-item__name {
  box-shadow:
    inset 0 0 0 1px #67aff7,
    0 0 0 2px rgba(103, 175, 247, 0.2);
}

.schedule-day-item__input:checked + .schedule-day-item__name {
  background: #1b1b1b;
  color: #fff;
  box-shadow: inset 0 0 0 1px #1b1b1b;
}

.schedule-days-hint {
  display: none;
  margin-top: 2px;
  border: 1px solid #f0f3f5;
  border-radius: 16px;
  padding: 12px 10px;
  gap: 6px;
  align-items: flex-start;
}

.schedule-days-hint.is-visible {
  display: flex;
}

.schedule-days-hint__icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  opacity: 0.6;
}

.schedule-days-hint__text {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 400;
  color: #6f7579;
}

.schedule-time-field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 116px;
  border-radius: 28px;
  border: 1px solid #d1d5db;
  padding: 14px 44px 14px 56px;
  background: #fff;
  cursor: pointer;
}

.schedule-time-field::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 22px;
  height: 22px;
  background: url("../images/icons/arrow_down.svg") center/contain no-repeat;
  transform: translateY(-50%);
  opacity: 0.7;
  pointer-events: none;
}

.schedule-time-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.schedule-time-content {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.schedule-time-caption {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size:12px;
  line-height: 1.25;
  font-weight: 500;
  color: #7b8796;
}

.schedule-time-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  margin: 0;
  padding: 0;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.18;
  font-weight: 600;
  color: #1b1b1b;
  text-align: left;
  cursor: pointer;
}

.schedule-time-value {
  position: relative;
  width: 100%;
}

.schedule-time-value .schedule-time-input {
  position: relative;
  z-index: 1;
}

.schedule-time-placeholder {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.18;
  font-weight: 600;
  color: #1b1b1b;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.schedule-page.schedule-page--ios-time-placeholder .schedule-time-value .schedule-time-placeholder {
  display: block;
}

.schedule-page.schedule-page--ios-time-placeholder .schedule-time-value.has-value .schedule-time-placeholder {
  display: none;
}

.schedule-page.schedule-page--ios-time-placeholder .schedule-time-value:not(.has-value) .schedule-time-input {
  color: transparent;
  -webkit-text-fill-color: transparent;
  caret-color: transparent;
}

.schedule-page.schedule-page--ios-time-placeholder .schedule-time-value:not(.has-value) .schedule-time-input::-webkit-date-and-time-value,
.schedule-page.schedule-page--ios-time-placeholder .schedule-time-value:not(.has-value) .schedule-time-input::-webkit-datetime-edit,
.schedule-page.schedule-page--ios-time-placeholder .schedule-time-value:not(.has-value) .schedule-time-input::-webkit-datetime-edit-fields-wrapper,
.schedule-page.schedule-page--ios-time-placeholder .schedule-time-value:not(.has-value) .schedule-time-input::-webkit-datetime-edit-hour-field,
.schedule-page.schedule-page--ios-time-placeholder .schedule-time-value:not(.has-value) .schedule-time-input::-webkit-datetime-edit-minute-field,
.schedule-page.schedule-page--ios-time-placeholder .schedule-time-value:not(.has-value) .schedule-time-input::-webkit-datetime-edit-ampm-field {
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.schedule-time-input[type="time"] {
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
  text-align-last: left;
  direction: ltr;
  -webkit-text-fill-color: #1b1b1b;
}

.schedule-time-input[type="time"]::-webkit-calendar-picker-indicator,
.schedule-time-input[type="time"]::-webkit-clear-button,
.schedule-time-input[type="time"]::-webkit-inner-spin-button {
  opacity: 0;
  display: none;
}

.schedule-time-input[type="time"]::-webkit-date-and-time-value,
.schedule-time-input[type="time"]::-webkit-datetime-edit,
.schedule-time-input[type="time"]::-webkit-datetime-edit-fields-wrapper,
.schedule-time-input[type="time"]::-webkit-datetime-edit-hour-field,
.schedule-time-input[type="time"]::-webkit-datetime-edit-minute-field,
.schedule-time-input[type="time"]::-webkit-datetime-edit-ampm-field {
  margin: 0;
  padding: 0;
  text-align: left;
}

.schedule-page .profile-edit-schedule {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.schedule-page .profile-edit-schedule--active {
  display: flex;
  margin-top: 20px;
}

.schedule-page .profile-edit-schedule__row {
  container-type: inline-size;
  display: grid;
  grid-template-columns: 34px 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.schedule-page .schedule-individual-day {
  border: 1px solid #d1d5db;
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #1b1b1b;
  font-size: 12px;
  font-weight: 600;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.schedule-page .profile-edit-field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  border-radius: 20px;
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 0 34px 0 40px;
}

.schedule-page .profile-edit-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.schedule-page .profile-edit-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  margin: 0;
  padding: 0;
  height: 52px;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  color: #1b1b1b;
  text-align: center;
}

/* Isolate settings time inputs from shared .profile-edit-* rules in edit-profile.css */
.schedule-page .profile-edit-field--time .profile-edit-input[type="time"] {
  -webkit-appearance: none;
  appearance: none;
  padding-left: 0;
  padding-right: 0;
}

.schedule-page .profile-edit-field--time .profile-edit-input[type="time"]::-webkit-calendar-picker-indicator,
.schedule-page .profile-edit-field--time .profile-edit-input[type="time"]::-webkit-clear-button,
.schedule-page .profile-edit-field--time .profile-edit-input[type="time"]::-webkit-inner-spin-button {
  opacity: 0;
  display: none;
}

.schedule-page .profile-edit-field--time .profile-edit-input[type="time"]::-webkit-date-and-time-value,
.schedule-page .profile-edit-field--time .profile-edit-input[type="time"]::-webkit-datetime-edit,
.schedule-page .profile-edit-field--time .profile-edit-input[type="time"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
  margin: 0;
}

.schedule-page .profile-edit-field--time::after {
  content: "";
  display: block;
  position: absolute;
  right: 10px;
  top: 50%;
  width: 16px;
  height: 16px;
  background: url("../images/icons/arrow_down.svg") center/contain no-repeat;
  transform: translateY(-50%);
  opacity: 0.7;
  pointer-events: none;
}

.schedule-page .profile-edit-mid {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  color: #1b1b1b;
}

.schedule-page .profile-edit-schedule__closed {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.schedule-page .profile-edit-schedule__closed input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.schedule-page .profile-edit-schedule__check {
  width: 16px;
  height: 16px;
  display: inline-block;
  background: url("/images/icons/tick-square.svg") no-repeat center/contain;
}

.schedule-page .profile-edit-schedule__closed input:checked + .profile-edit-schedule__check {
  background-image: url("/images/icons/tick-square_act.svg");
}

.schedule-page .profile-edit-schedule__closed-text {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  color: #1b1b1b;
}

.schedule-page .schedule-individual-off {
  display: none;
}

.schedule-page .profile-edit-schedule--advanced .schedule-individual-day {
  background: #eef2f7;
  border: none;
  pointer-events: none;
  cursor: default;
}

.schedule-page .profile-edit-schedule--individual .profile-edit-schedule__row {
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.schedule-page .profile-edit-schedule--individual .schedule-individual-day {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  font-size: 24px;
  font-weight: 600;
}

.schedule-page .profile-edit-schedule--individual .schedule-individual-day.is-active {
  background: #1b1b1b;
  border-color: #1b1b1b;
  color: #fff;
}

.schedule-page .profile-edit-schedule--individual .profile-edit-mid,
.schedule-page .profile-edit-schedule--individual .profile-edit-schedule__closed {
  display: none;
}

.schedule-page .profile-edit-schedule--individual .profile-edit-field {
  min-height: 64px;
  border-radius: 16px;
  padding: 8px 34px 8px 40px;
}

.schedule-page .profile-edit-schedule--individual .profile-edit-icon {
  left: 12px;
  width: 24px;
  height: 24px;
}

.schedule-page .profile-edit-field--to .profile-edit-icon {
  display: none;
}

.schedule-page .profile-edit-field--from .profile-edit-icon {
  display: none;
}

.schedule-page .profile-edit-schedule--individual .profile-edit-field--from::before,
.schedule-page .profile-edit-schedule--individual .profile-edit-field--to::before {
  position: absolute;
  left: 40px;
  top: 10px;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
  color: #8f99a6;
}

.schedule-page .profile-edit-schedule--individual .profile-edit-field--from::before {
  content: "Початок";
}

.schedule-page .profile-edit-schedule--individual .profile-edit-field--to::before {
  content: "Кінець";
}

.schedule-page .profile-edit-schedule--individual .profile-edit-input {
  height: 24px;
  margin-top: 20px;
  text-align: left;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
}

.schedule-page .profile-edit-schedule--individual .profile-edit-input[type="time"] {
  text-align: left;
  text-align-last: left;
  direction: ltr;
}

.schedule-page .profile-edit-schedule--individual .profile-edit-input[type="time"]::-webkit-datetime-edit,
.schedule-page .profile-edit-schedule--individual .profile-edit-input[type="time"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
  margin: 0;
  text-align: left;
}

.schedule-page .profile-edit-schedule--individual .profile-edit-field--time::after {
  width: 22px;
  height: 22px;
  right: 8px;
}

.schedule-page .profile-edit-schedule--individual .profile-edit-schedule__row.is-closed .profile-edit-field {
  display: none;
}

.schedule-page .profile-edit-schedule--individual .profile-edit-schedule__row.is-closed .schedule-individual-off {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  border-radius: 16px;
  border: 1px solid #d1d5db;
  background: #fff;
  grid-column: 2 / 4;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  color: #1b1b1b;
}

.schedule-error {
  display: none;
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
  color: #e53935;
}

.schedule-error:not(:empty) {
  display: block;
}

.schedule-card--loading {
  pointer-events: none;
}

.schedule-card--loading .schedule-section-title,
.schedule-card--loading .schedule-section-subtitle,
.schedule-card--loading .schedule-workdays-field,
.schedule-card--loading .schedule-time-field,
.schedule-card--loading .schedule-day-item,
.schedule-card--loading .schedule-days-hint,
.schedule-card--loading .profile-edit-field,
.schedule-card--loading .schedule-individual-day,
.schedule-card--loading .schedule-individual-off,
.schedule-card--loading .profile-edit-mid {
  background: linear-gradient(90deg, #e5eaf1 25%, #f3f6fb 50%, #e5eaf1 75%);
  background-size: 200% 100%;
  animation: schedule-skeleton 1.2s ease-in-out infinite;
}

.schedule-card--loading .schedule-section-title,
.schedule-card--loading .schedule-section-subtitle,
.schedule-card--loading .schedule-workdays-input,
.schedule-card--loading .schedule-time-input,
.schedule-card--loading .profile-edit-input,
.schedule-card--loading .schedule-workdays-caption,
.schedule-card--loading .schedule-time-caption,
.schedule-card--loading .schedule-day-item__name,
.schedule-card--loading .schedule-days-hint__text,
.schedule-card--loading .profile-edit-schedule__closed-text {
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.schedule-card--loading .schedule-workdays-field::after,
.schedule-card--loading .schedule-time-field::after,
.schedule-card--loading .profile-edit-field::after {
  opacity: 0;
}

.schedule-card--loading .schedule-time-icon,
.schedule-card--loading .schedule-days-hint__icon,
.schedule-card--loading .profile-edit-icon,
.schedule-card--loading .profile-edit-schedule__check {
  visibility: hidden;
}

@keyframes schedule-skeleton {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@container (max-width: 360px) {
  .schedule-page .profile-edit-schedule:not(.profile-edit-schedule--individual) .profile-edit-schedule__row {
    grid-template-columns: 30px 1fr auto 1fr auto;
    gap: 8px;
  }

  .schedule-page .profile-edit-field {
    padding-right: 10px;
  }

  .schedule-page .profile-edit-schedule:not(.profile-edit-schedule--individual) .profile-edit-field--time::after {
    display: none;
  }
}

@media (max-width: 320px) {
  .schedule-page .profile-edit-schedule--individual .profile-edit-field--time::after {
    display: none;
  }
}



  .schedule-page {
    padding-top: 64px;
  }


  .schedule-back,
  .schedule-save {
    width: 44px;
    height: 44px;
  }

  .schedule-card {
    border-radius: 32px 32px 0 0;
    padding: 28px 16px calc(24px + 64px + env(safe-area-inset-bottom));
    gap: 16px;
  }

  .schedule-form {
    padding-top: 0px;
  }

  .schedule-workdays-field,
  .schedule-advanced-select-field {
    min-height: 64px;
    border-radius: 16px;
    padding: 12px 32px 12px 16px;
  }

  .schedule-time-grid {
    gap: 16px;

  }

  .schedule-time-field {
    min-height: 64px;
    border-radius: 16px;
    padding: 12px 32px 12px 48px;
  }

  .schedule-day-item {
    min-height: 40px;
  }

  .schedule-day-item__name {
    font-size: 14px;
    min-height: 40px;
  }

  .schedule-days-hint {
    border-radius: 14px;
    padding: 10px 10px;
  }

  .schedule-time-icon {
    left: 14px;
    width: 22px;
    height: 22px;
  }

  .schedule-page .profile-edit-schedule__closed-text {
    display: none;
  }

  .schedule-page .profile-edit-schedule--individual .profile-edit-schedule__row {
    grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
  }

  .schedule-page .profile-edit-schedule--individual .schedule-individual-day {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    font-size: 14px;
  }

  .schedule-page .profile-edit-schedule--individual .profile-edit-field {
    min-height: 64px;
    border-radius: 16px;
    padding: 6px 32px 6px 16px;
  }

  .schedule-page .profile-edit-schedule--individual .profile-edit-icon {
    left: 8px;
    width: 20px;
    height: 20px;
  }

  .schedule-page .profile-edit-schedule--individual .profile-edit-field--from::before,
  .schedule-page .profile-edit-schedule--individual .profile-edit-field--to::before {
    left: 16px;
    top: 10px;
    font-size: 12px;
  }

  .schedule-page .profile-edit-schedule--individual .profile-edit-input {
    margin-top: 14px;
    font-size: 14px;
  }

  .schedule-page .profile-edit-schedule--individual .profile-edit-schedule__row.is-closed .schedule-individual-off {
    min-height: 64px;
    border-radius: 16px;
    font-size: 14px;
  }


@media (max-width: 360px) {
  .schedule-day-item {
    min-height: 36px;
    display: flex;
    justify-content: center;
  }

  .schedule-day-item__name {
    width: 36px;
    height: 36px;
    min-height: 36px;
    min-width: 36px;
    border-radius: 12px;
  }
}
