html.calendar-focus-mode,
html.calendar-focus-mode body {
  overflow: hidden;
}

#calendar-dashboard.calendar-focus-active {
  position: fixed;
  inset: 0;
  z-index: 10000;
  min-height: 0;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #101715;
  isolation: isolate;
  padding-top: max(24px, env(safe-area-inset-top)) !important;
  padding-right: max(24px, env(safe-area-inset-right)) !important;
  padding-bottom: max(24px, env(safe-area-inset-bottom)) !important;
  padding-left: max(24px, env(safe-area-inset-left)) !important;
}

/* 焼き付き軽減の微小移動でも、背後のナビバーが端から見えないようにする。 */
#calendar-dashboard.calendar-focus-active::before {
  content: "";
  position: fixed;
  inset: -16px;
  z-index: -1;
  background: #101715;
  pointer-events: none;
}

#calendar-dashboard.calendar-focus-active .calendar-fullscreen-enter {
  display: none;
}

#calendar-dashboard .calendar-fullscreen-hint {
  display: none;
}

#calendar-dashboard.calendar-focus-active .calendar-fullscreen-hint {
  display: block;
  position: fixed;
  bottom: max(8px, env(safe-area-inset-bottom));
  right: max(12px, env(safe-area-inset-right));
  padding: 4px 8px;
  border-radius: 6px;
  background: #101715;
  color: #9aad9e;
  font-size: 0.7rem;
  pointer-events: none;
}
