.schedule-workspace:has(.appointment-form)>.topbar{display:flex}
/* Only the schedule owns the viewport. Other pages retain document scrolling. */
@media (min-height: 640px) {
 body.schedule-workspace.schedule-viewport-ready:not(.schedule-short) {
  height:100vh;height:100dvh;min-height:0;overflow:hidden;
  display:grid;grid-template-rows:auto minmax(0,1fr) auto;
  padding-top:env(safe-area-inset-top);
 }
 .schedule-workspace.schedule-viewport-ready:not(.schedule-short)>.topbar {
  position:relative;flex:none;width:100%;margin:0 auto;
 }
 /* An inline appointment form must not trigger the full-page form header rule. */
 .schedule-workspace.schedule-viewport-ready:not(.schedule-short):has(.appointment-form)>.topbar {display:flex}
 .schedule-workspace.schedule-viewport-ready:not(.schedule-short)>main.shell {
  width:100%;min-height:0;height:100%;overflow:hidden;
  padding-bottom:8px;display:flex;flex-direction:column;
 }
 .schedule-workspace.schedule-viewport-ready:not(.schedule-short)>main>.notice {flex:none}
 .schedule-workspace.schedule-viewport-ready:not(.schedule-short) .schedule-page {
  width:100%;min-height:0;flex:1;display:flex;flex-direction:column;overflow:hidden;
 }
 .schedule-workspace.schedule-viewport-ready:not(.schedule-short) .schedule-fixed-controls {flex:none;min-width:0}
 .schedule-workspace.schedule-viewport-ready:not(.schedule-short) .schedule-appointments-scroll {
  flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;
  scrollbar-gutter:stable;scroll-padding-block:10px;
  padding:3px 3px 20px;
 }
 .schedule-appointments-scroll:focus-visible {outline:2px solid var(--teal);outline-offset:-2px}
 .schedule-workspace.schedule-viewport-ready:not(.schedule-short)>.bottom-nav {
  position:relative;inset:auto;transform:none;width:100%;margin:0;
  padding-bottom:calc(5px + env(safe-area-inset-bottom));z-index:20;
 }
 .schedule-workspace.schedule-viewport-ready:not(.schedule-short)>.footer {display:none}
 .schedule-workspace.schedule-viewport-ready:not(.schedule-short) .schedule-week-grid .schedule-column-heading {
  position:sticky;top:0;z-index:8;background:var(--paper,#fff);padding-block:8px;
 }
 /* Single-day calendars use the remaining area, with sticky employee headers. */
 .schedule-workspace.schedule-viewport-ready:not(.schedule-short) .schedule-appointments-scroll>.daily-timeline.timeline-ready {
  height:100%;min-height:0;margin-top:0;flex-direction:column;
 }
 .schedule-workspace.schedule-viewport-ready:not(.schedule-short) .schedule-appointments-scroll>.daily-timeline>.timeline-scroll {
  flex:1;min-height:0;max-height:none;
 }
 .schedule-workspace.schedule-viewport-ready:not(.schedule-short) .calendar-week-day .timeline-scroll {max-height:55dvh}
}
@media (min-height:640px) and (min-width:901px) {
 .schedule-workspace.schedule-viewport-ready:not(.schedule-short) .schedule-appointments-scroll>.daily-timeline.timeline-ready {display:flex}
}
@media (min-height:640px) and (max-width:900px) {
 .schedule-workspace.schedule-viewport-ready:not(.schedule-short) .schedule-appointments-scroll>.compact-timeline.timeline-ready {display:flex}
}
/* Short/zoomed/keyboard-constrained screens must not trap controls or the last row. */
.schedule-workspace.schedule-short .schedule-appointments-scroll {overflow:visible;padding-bottom:20px}
@media(max-height:639px) {.schedule-appointments-scroll{overflow:visible;padding-bottom:20px}}