.customer-name {
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, sans-serif !important;
  font-weight: 750;
}

.program-note {
  background: var(--mint);
  border-color: #c7dbd1;
  margin-bottom: 12px;
}

.note-box + .note-box {
  margin-top: 12px;
}

.calendar-panel {
  padding: 0;
  overflow: hidden;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 16px;
  padding: 22px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.calendar-toolbar h2 {
  margin: 0 0 5px;
  font-size: 22px;
}

.calendar-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.calendar-nav {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
  text-decoration: none;
  font-size: 28px;
  line-height: 1;
}

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

.calendar-weekdays span {
  padding: 11px 8px;
  text-align: center;
  color: var(--muted);
  background: #fafbf9;
  border-right: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
}

.calendar-weekdays span:last-child,
.calendar-day:last-child {
  border-right: 0;
}

.calendar-weekdays .sunday,
.calendar-day:first-child .day-number > span {
  color: #b44b4b;
}

.calendar-weekdays .saturday,
.calendar-day:last-child .day-number > span {
  color: #3970a8;
}

.calendar-day {
  min-height: 155px;
  padding: 10px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}

.calendar-day.outside {
  background: #f8f8f5;
  color: #b6bdb9;
}

.calendar-day.today {
  box-shadow: inset 0 0 0 2px var(--gold);
  background: #fffdf8;
}

.day-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
  font-weight: 800;
}

.day-number small {
  padding: 3px 6px;
  border-radius: 99px;
  color: #fff;
  background: var(--gold);
  font-size: 10px;
}

.day-group {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding: 7px;
  border-radius: 9px;
  font-size: 11px;
}

.day-group strong {
  font-size: 11px;
}

.day-group a {
  display: block;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-group small {
  color: var(--muted);
}

.care-events {
  color: var(--green);
  background: var(--mint);
}

.payment-events {
  color: #75571f;
  background: #f6ead1;
}

.day-empty {
  display: block;
  margin-top: 12px;
  color: #b4bcb8;
  font-size: 11px;
}

.recent-members {
  margin-top: 18px;
}

.mobile-month-list {
  display: none;
}

@media (max-width: 900px) {
  .month-calendar {
    min-width: 0;
  }

  .calendar-panel {
    overflow: hidden;
  }

  .calendar-toolbar {
    min-width: 0;
  }

  .calendar-weekdays span {
    padding: 8px 2px;
    font-size: 11px;
  }

  .calendar-day {
    min-height: 68px;
    padding: 4px;
  }

  .day-number {
    justify-content: center;
    min-height: 20px;
    font-size: 12px;
  }

  .day-number small,
  .day-empty,
  .day-group a,
  .day-group small {
    display: none;
  }

  .day-group {
    gap: 0;
    margin-top: 3px;
    padding: 3px 1px;
    text-align: center;
    border-radius: 5px;
  }

  .day-group strong {
    font-size: 9px;
    white-space: nowrap;
  }

  .mobile-month-list {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid var(--line);
    background: #fafbf9;
  }

  .mobile-day-card {
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
  }

  .mobile-day-card h3 {
    margin: 0 0 7px;
    font-size: 14px;
  }

  .mobile-day-card a {
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    color: var(--ink);
    text-decoration: none;
    font-size: 12px;
  }

  .mobile-event-type {
    padding: 3px 5px;
    border-radius: 6px;
    text-align: center;
    font-size: 10px;
    font-weight: 800;
  }

  .mobile-event-type.care {
    color: var(--green);
    background: var(--mint);
  }

  .mobile-event-type.payment {
    color: #75571f;
    background: #f6ead1;
  }
}

@media (max-width: 520px) {
  .calendar-toolbar {
    grid-template-columns: 40px 1fr 40px;
    padding: 16px 12px;
  }

  .calendar-nav {
    width: 38px;
    height: 38px;
  }
}
.page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 520px) {
  .page-heading {
    display: grid;
  }

  .page-actions {
    width: 100%;
    justify-content: stretch;
  }

  .page-actions .button {
    flex: 1;
    white-space: nowrap;
  }
}
