.sheet-handle{display:none}
@media(max-width:720px){body dialog.modal:not(.wide):not(.cabinet-modal):not(:has(.members-list,.week-grid,.homework-list,.holiday-list))>.sheet-handle{display:flex;align-items:center;justify-content:center;flex:0 0 28px;width:100%;height:28px;min-height:28px;padding:0;border:0;background:transparent!important;touch-action:none;cursor:grab;user-select:none}body dialog.modal:not(.wide):not(.cabinet-modal):not(:has(.members-list,.week-grid,.homework-list,.holiday-list))>.sheet-handle>span{width:36px;height:4px;border-radius:999px;background:#8d9bb0!important;pointer-events:none}body.light-theme dialog.modal:not(.wide):not(.cabinet-modal):not(:has(.members-list,.week-grid,.homework-list,.holiday-list))>.sheet-handle>span{background:#7b899c!important}body dialog.modal:not(.wide):not(.cabinet-modal):not(:has(.members-list,.week-grid,.homework-list,.holiday-list)):not(.editing-with-keyboard){--sheet-max-height:calc(100dvh - max(24px, env(safe-area-inset-top) + 12px));height:var(--sheet-height,min(var(--sheet-max-height),var(--sheet-content-height,var(--sheet-max-height))))!important;max-height:var(--sheet-max-height)!important;min-height:0!important}body dialog.modal:not(.wide):not(.cabinet-modal):not(:has(.members-list,.week-grid,.homework-list,.holiday-list)).sheet-interactive.sheet-dragging{transition:none!important;animation:none!important}body dialog.modal:not(.wide):not(.cabinet-modal):not(:has(.members-list,.week-grid,.homework-list,.holiday-list)).sheet-interactive.is-closing{animation:none!important;overflow:hidden!important}body dialog.modal:not(.wide):not(.cabinet-modal):not(:has(.members-list,.week-grid,.homework-list,.holiday-list))>.modal-heading{padding-top:4px!important}}
@media(prefers-reduced-motion:reduce){body dialog.modal{transition:none!important}}
@media(max-width:720px){body dialog.modal.sheet-interactive{animation:none!important}}

@keyframes bottom-sheet-enter {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (max-width: 720px) and (prefers-reduced-motion: no-preference) {
  html:not(.modal-returning) body dialog.modal[open]:not(.wide,.cabinet-modal,.is-closing,.editing-with-keyboard,.sheet-interactive):not(:has(.members-list,.week-grid,.homework-list,.holiday-list)) {
    animation: bottom-sheet-enter .36s cubic-bezier(.2,.75,.25,1) both !important;
  }

  body dialog.modal.sheet-interactive:not(.sheet-dragging,.editing-with-keyboard) {
    transition: height .26s cubic-bezier(.2,.8,.2,1) !important;
  }
}
