:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --border: #d9e0ea;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-soft: #e8f0ff;
  --success: #177245;
  --success-soft: #e9f8ef;
  --danger: #b42318;
  --danger-soft: #fdecec;
  --warning: #8a5b00;
  --warning-soft: #fff4d6;
  --today: #f59e0b;
  --today-soft: #fff3db;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-strong: 0 16px 40px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

body {
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  padding: 10px 14px;
  cursor: pointer;
}

button:hover:not(:disabled) {
  border-color: var(--primary);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.shell {
  width: 100%;
  max-width: 1120px;
  margin: 14px auto 22px;
  padding: 0 12px;
  display: grid;
  gap: 8px;
}

.card {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 10px;
}

.layout > * {
  min-width: 0;
}

.daily-card,
.calendar-card {
  padding: 18px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 8px;
}

.daily-card {
  padding-bottom: 4px;
}

.daily-toolbar {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.day-actions,
.toolbar-side {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.subtle-btn {
  background: var(--primary-soft);
  border-color: transparent;
  color: var(--primary);
  font-weight: 700;
}

.day-actions button,
.page-bottom-btn {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 0.88rem;
}

.calendar-bottom-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2px;
}

.page-bottom-btn {
  min-width: min(280px, 100%);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-width: 72px;
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-class {
  background: var(--success-soft);
  color: var(--success);
}

.status-holiday,
.status-adjustment,
.status-event {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-weekend,
.status-empty {
  background: var(--warning-soft);
  color: var(--warning);
}

.message {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--warning-soft);
  color: var(--warning);
}

.hidden {
  display: none;
}

.week-nav {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.week-tab {
  border-radius: 14px;
  background: #fff;
  padding: 10px 8px;
  display: grid;
  gap: 2px;
  text-align: center;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.week-tab:hover {
  transform: translateY(-1px);
}

.week-tab .week-tab-weekday {
  font-size: 0.82rem;
  color: var(--muted);
}

.week-tab .week-tab-day {
  font-size: 1rem;
  font-weight: 800;
}

.week-tab.status-class {
  background: #fff;
}

.week-tab.status-holiday,
.week-tab.status-event,
.week-tab.status-adjustment {
  background: var(--danger-soft);
  border-color: rgba(180, 35, 24, 0.18);
}

.week-tab.status-holiday .week-tab-weekday,
.week-tab.status-holiday .week-tab-sub,
.week-tab.status-event .week-tab-weekday,
.week-tab.status-event .week-tab-sub,
.week-tab.status-adjustment .week-tab-weekday,
.week-tab.status-adjustment .week-tab-sub {
  color: var(--danger);
}

.week-tab.status-weekend,
.week-tab.status-empty {
  background: #faf8f2;
  border-color: rgba(138, 91, 0, 0.16);
}

.week-tab.status-weekend .week-tab-weekday,
.week-tab.status-weekend .week-tab-sub,
.week-tab.status-empty .week-tab-weekday,
.week-tab.status-empty .week-tab-sub {
  color: var(--warning);
}

.week-tab.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
}

.week-tab.is-selected.status-class {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.06), #fff);
}

.week-tab.is-today {
  box-shadow: inset 0 0 0 2px rgba(245, 158, 11, 0.4);
}

.week-tab.is-selected.is-today {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14), inset 0 0 0 2px rgba(245, 158, 11, 0.4);
}

.week-tab-sub {
  font-size: 0.74rem;
  color: var(--muted);
  min-height: 1.1em;
}

.week-track {
  margin-top: 12px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  grid-auto-rows: minmax(0, 1fr);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0;
  height: 100%;
  align-items: stretch;
  scrollbar-width: none;
}

.week-track::-webkit-scrollbar {
  display: none;
}

.week-slide {
  scroll-snap-align: start;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 360px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.week-slide.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
}

.week-slide.is-today {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, #ffffff 100%);
}

.slide-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.slide-date {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.slide-subdate {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.slide-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}

.slide-badges .status-pill {
  min-width: 0;
  padding: 6px 10px;
  font-size: 0.82rem;
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.slide-badge.today {
  background: var(--today-soft);
  color: #b45309;
}

.slide-badge.status {
  background: #eef2ff;
  color: var(--primary);
}

.slide-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slide-blocks {
  display: grid;
  gap: 10px;
  align-content: stretch;
  grid-auto-rows: minmax(150px, auto);
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.day-section {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  min-height: 150px;
}

.day-section.with-divider {
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.day-section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #f4f7fb;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 6px 0;
}

.day-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  min-height: 150px;
  align-content: stretch;
}

.day-section-grid > .block,
.day-section-grid > .placeholder-card {
  min-height: 100%;
}

.block {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px 11px 11px;
  display: grid;
  align-content: start;
  gap: 6px;
  background: #fff;
  min-height: 0;
}

.block-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.block-time {
  font-size: 0.74rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--muted);
}

.block-period,
.block-teacher,
.day-note-copy,
.placeholder-copy {
  color: var(--muted);
}

.block-period {
  font-size: 0.72rem;
  line-height: 1.15;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.block-course {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  word-break: break-word;
}

.block-course.tone-red {
  color: red;
}

.block-teacher {
  font-size: 0.84rem;
  line-height: 1.25;
}

.block-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.placeholder-card {
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 16px;
  color: var(--muted);
  background: #f8fafc;
}

.placeholder-card.wide {
  grid-column: 1 / -1;
}

.calendar-topline {
  position: relative;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.calendar-nav-btn {
  min-width: 63px;
  width: 63px;
  height: 42px;
  padding: 0;
}

.month-switcher {
  position: relative;
  min-width: 0;
}

.calendar-month-trigger {
  width: 100%;
  max-width: 100%;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--primary-soft);
  border-color: transparent;
  color: var(--primary);
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.month-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  z-index: 20;
}

.month-option {
  width: 100%;
  border: none;
  border-radius: 12px;
  text-align: left;
  padding: 10px 12px;
}

.month-option.is-active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  margin: 0 0 8px;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

.calendar-weekdays span {
  padding: 6px 0;
}

.calendar-track {
  --month-gap: clamp(24px, calc((100% - 48px) / 7), 120px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  grid-auto-rows: minmax(0, 1fr);
  gap: var(--month-gap);
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 2px;
  align-items: stretch;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  touch-action: pan-x pinch-zoom;
  scrollbar-width: none;
}

.calendar-track::-webkit-scrollbar {
  display: none;
}

.calendar-slide {
  scroll-snap-align: start;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
}

.calendar-grid {
  gap: 8px;
  min-width: 0;
  min-height: 0;
  height: 100%;
  grid-auto-rows: minmax(0, 1fr);
}

.calendar-cell {
  position: relative;
  min-height: 100px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.calendar-cell:hover {
  transform: translateY(-1px);
}

.calendar-cell.empty-pad {
  border-style: dashed;
}

.calendar-cell.empty-pad .day-number,
.calendar-cell.empty-pad .day-note-copy {
  opacity: 0.72;
}

.calendar-cell button:disabled {
  cursor: default;
}

.calendar-cell button {
  width: 100%;
  height: 100%;
  padding: 10px;
  border: none;
  background: transparent;
  text-align: left;
  display: grid;
  gap: 8px;
  align-content: start;
}

.day-row {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
}

.day-number {
  font-weight: 900;
  font-size: 1rem;
}


.day-note-copy {
  font-size: 0.5rem;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 1.2em;
  white-space: pre-wrap;
  word-break: break-word;
}

.calendar-cell.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.16);
}

.calendar-cell.is-today {
  border-color: var(--today);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.calendar-cell.is-today::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(245, 158, 11, 0.42);
  border-radius: 12px;
  pointer-events: none;
}

.calendar-cell.is-today .day-number {
  color: #b45309;
}

.calendar-cell.is-today:not(.is-selected) {
  background-image: linear-gradient(180deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0));
}

.calendar-cell.is-selected.is-today {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.16), 0 0 0 5px rgba(245, 158, 11, 0.16);
}

.calendar-cell.status-class {
  background: #fff;
}

.calendar-cell.status-holiday,
.calendar-cell.status-event,
.calendar-cell.status-adjustment {
  background: var(--danger-soft);
}

.calendar-cell.status-weekend,
.calendar-cell.status-empty {
  background: #faf8f2;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
}

.modal-panel {
  position: relative;
  width: min(1080px, calc(100vw - 24px));
  height: min(92vh, 900px);
  margin: 4vh auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-strong);
  padding: 14px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
}

.schedule-header {
  display: grid;
  grid-template-columns: minmax(72px, 84px) minmax(0, 1fr) minmax(72px, 84px);
  grid-template-areas:
    'prev month next'
    'close close close';
  align-items: center;
  gap: 10px;
}

.schedule-footer {
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.schedule-month-switcher {
  grid-area: month;
  position: relative;
  min-width: 0;
}

.schedule-month-menu {
  top: auto;
  bottom: calc(100% + 8px);
}

.schedule-month-trigger {
  width: 100%;
  min-height: 44px;
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
}

.schedule-header > #modalPrevMonthBtn {
  grid-area: prev;
}

.schedule-header > #modalNextMonthBtn {
  grid-area: next;
}

.modal-close,
.modal-nav-btn {
  min-width: 72px;
  width: 72px;
  height: 42px;
  padding: 0;
}

.modal-close-text {
  grid-area: close;
  justify-self: center;
  min-width: 96px;
  width: auto;
  height: 38px;
  padding: 0 18px;
  color: var(--danger);
  background: var(--danger-soft);
  border-color: transparent;
  border-radius: 999px;
  font-weight: 800;
}

.modal-close-text:hover:not(:disabled) {
  border-color: transparent;
  filter: brightness(0.98);
}

.schedule-image-shell {
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f8fafc;
  padding: clamp(10px, 1.8vw, 18px);
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-overflow-scrolling: touch;
  cursor: ew-resize;
  position: relative;
}

.schedule-image {
  cursor: ew-resize;
  display: block;
  width: min(100%, 920px);
  max-height: 100%;
  height: auto;
  margin: auto;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}

@media (max-width: 940px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .shell {
    height: 100dvh;
    margin: 0;
    padding: 6px;
    gap: 4px;
    grid-template-rows: minmax(0, 1fr);
  }

  .layout {
    height: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 4px;
  }

  .daily-card,
  .calendar-card {
    height: 100%;
    min-height: 0;
    padding: 8px;
    display: grid;
    overflow: hidden;
  }

  .daily-card {
    padding-bottom: 2px;
  }

  .daily-card {
    grid-template-rows: auto auto auto minmax(0, 1fr);
  }

  .calendar-card {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 6px;
  }

  .daily-toolbar {
    align-items: stretch;
    gap: 8px;
  }

  .day-actions {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  .day-actions button,
  .page-bottom-btn {
    min-height: 32px;
    padding: 6px 8px;
    font-size: 0.82rem;
  }

  .calendar-bottom-actions {
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .page-bottom-btn {
    width: 100%;
    min-width: 0;
  }

  .status-pill {
    min-width: 0;
  }

  .message {
    margin-top: 10px;
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  .week-nav {
    margin-top: 10px;
    grid-auto-flow: column;
    grid-template-columns: unset;
    grid-auto-columns: minmax(60px, 1fr);
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .week-nav::-webkit-scrollbar {
    display: none;
  }

  .week-tab {
    min-width: 60px;
    padding: 7px 4px;
    border-radius: 12px;
  }

  .week-tab .week-tab-weekday {
    font-size: 0.75rem;
  }

  .week-tab .week-tab-day {
    font-size: 0.9rem;
  }

  .week-tab-sub {
    font-size: 0.66rem;
  }

  .week-track {
    margin-top: 6px;
    gap: 6px;
    min-height: 0;
    height: 100%;
    grid-auto-rows: auto;
    align-items: start;
    padding-bottom: 0;
  }

  .week-slide {
    min-height: 0;
    height: auto;
    max-height: 100%;
    padding: 9px;
    gap: 7px;
    border-radius: 14px;
  }

  .slide-head {
    gap: 6px;
  }

  .slide-date {
    font-size: 0.96rem;
  }

  .slide-subdate {
    margin-top: 3px;
    font-size: 0.76rem;
  }

  .slide-badge {
    min-height: 24px;
    padding: 0 8px;
    font-size: 0.74rem;
  }

  .slide-badges .status-pill {
    padding: 5px 9px;
    font-size: 0.74rem;
  }

  .slide-blocks {
    gap: 7px;
    grid-auto-rows: auto;
    align-content: start;
    overflow: visible;
    padding-right: 0;
  }

  .day-section {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 7px;
    min-height: 0;
    align-items: start;
  }

  .day-section.with-divider {
    padding-top: 8px;
  }

  .day-section-label {
    border-radius: 11px;
    font-size: 0.72rem;
    padding: 4px 0;
  }

  .day-section-grid {
    gap: 6px;
    min-height: 0;
    align-content: start;
  }

  .day-section-grid > .block,
  .day-section-grid > .placeholder-card {
    min-height: 0;
  }

  .block {
    padding: 8px 8px 9px;
    border-radius: 13px;
    gap: 4px;
  }

  .block-top {
    gap: 4px;
  }

  .block-time {
    font-size: 0.64rem;
  }

  .block-period {
    font-size: 0.62rem;
  }

  .block-teacher {
    font-size: 0.72rem;
  }

  .block-course {
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .placeholder-card {
    padding: 12px;
    font-size: 0.84rem;
  }

  .calendar-topline {
    margin-bottom: 5px;
    gap: 4px;
  }

  .calendar-nav-btn {
    min-width: 48px;
    width: 48px;
    height: 32px;
    border-radius: 11px;
  }

  .calendar-month-trigger {
    padding: 7px 8px;
    border-radius: 11px;
    font-size: 0.82rem;
  }

  .month-menu {
    max-height: 220px;
  }

  .month-option {
    padding: 9px 10px;
    font-size: 0.88rem;
  }

  .calendar-weekdays {
    margin-bottom: 4px;
    font-size: 0.7rem;
  }

  .calendar-weekdays span {
    padding: 2px 0;
  }

  .calendar-track {
    --month-gap: clamp(18px, calc((100% - 18px) / 7), 56px);
    height: 100%;
    gap: var(--month-gap);
  }

  .calendar-grid {
    height: 100%;
    gap: 3px;
    grid-auto-rows: minmax(0, 1fr);
  }

  .calendar-cell {
    min-height: 0;
    border-radius: 10px;
  }

  .calendar-cell button {
    padding: 4px 5px;
    gap: 2px;
  }

  .day-row {
    gap: 2px;
  }

  .day-number {
    font-size: 0.8rem;
    line-height: 1;
  }
  .day-note-copy {
    font-size: 0.5rem;
    line-height: 1.18;
    -webkit-line-clamp: 3;
    min-height: calc(1.18em * 3);
    letter-spacing: -0.01em;
  }

  .calendar-cell.is-today::after {
    inset: 2px;
    border-radius: 8px;
  }

  .modal-panel {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0));
    border-radius: 0;
    gap: 8px;
  }

  .schedule-header {
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    grid-template-areas:
      'prev month next'
      'close close close';
    gap: 8px;
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: linear-gradient(to top, #ffffff 82%, rgba(255,255,255,0.92));
    padding-top: 8px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0));
  }

  .schedule-month-trigger {
    padding: 8px 10px;
    font-size: 0.84rem;
    border-radius: 12px;
  }

  .modal-close,
  .modal-nav-btn {
    min-width: 56px;
    width: 56px;
    height: 38px;
  }

  .modal-close-text {
    min-width: 84px;
    padding: 0 14px;
    font-size: 0.84rem;
    height: 36px;
  }

  .schedule-image-shell {
    border-radius: 14px;
    padding: 8px 0 10px;
    background: #fff;
    border: none;
  }

  .schedule-image {
  cursor: ew-resize;
    width: 100%;
    max-width: 100%;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
  }
}

img {
  max-width: 100%;
}

body {
  overflow-x: hidden;
}
