.calendar-panel { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 1rem; padding: 1rem; margin: 1.5rem 0; }
.availability { grid-template-columns: minmax(0,1fr); align-items: start; gap: .5rem; }
.availability-intro { align-self: start; }
.calendar-panel .fc { font-size: .9rem; }
.fc .fc-toolbar { flex-wrap: wrap; gap: .6rem; }
.fc .fc-toolbar-title { font-family: inherit; font-size: 1.25rem; }
.fc .fc-button { min-height: 44px; padding: .5rem .65rem; }
.fc .fc-daygrid-day-frame { min-height: 85px; }
.fc .fc-daygrid-day-number { padding: .4rem; }
.fc .fc-event { white-space: normal; cursor: pointer; }
.fc .fc-event-main { color: inherit; }
.fc .fc-daygrid-event { white-space: normal; overflow-wrap: anywhere; }
.fc .fc-daygrid-dot-event { display: block; }
.fc .fc-event-title { white-space: normal; }
.fc .blocked-event { background: #f9dbd7; border-color: #ad302e; color: #6e1918; }
.fc .occupied-event { background: #d6e6f4; border-color: #275d84; color: #123f61; }
.fc .pending-event { background: #fff1c2; border-color: #997315; color: #604400; }
.fc .fc-daygrid-event-dot { display: none; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .9rem; }
.calendar-legend span { padding: .3rem .6rem; border: 1px solid var(--line); border-radius: .4rem; }
.range-fields { display: grid; gap: .6rem; }
.range-fields input { min-height: 44px; width: 100%; min-width: 0; font: inherit; padding: .6rem; border: 1px solid #80918a; border-radius: .4rem; }
.range-fields .checkbox { display: flex; align-items: center; gap: .6rem; min-height: 44px; }
.range-fields input[type=checkbox] { width: 22px; height: 22px; min-height: 22px; }
.calendar-help { color: var(--muted); font-size: .9rem; }
#block-editor { scroll-margin-top: 1rem; }
#calendar-error { color: #8f251c; }
@media (max-width: 600px) {
  .calendar-panel { padding: .4rem; }
  .fc .fc-toolbar { display: grid; justify-content: stretch; }
  .fc .fc-toolbar-chunk:nth-child(2) { grid-row: 1; }
  .fc .fc-toolbar-title { font-size: 1.15rem; }
  .fc .fc-daygrid-day-frame { min-height: 74px; }
  .fc .fc-col-header-cell { font-size: .75rem; }
  .fc .fc-event { font-size: .7rem; line-height: 1.25; }
  .fc .fc-timegrid-axis { width: 35px; }
  .fc .fc-timegrid-slot-label { font-size: .7rem; }
}
