/* Motion belongs to the controls and their contents, never to the device. */
.embedded-preview .sheet-host.is-managed .sheet,
.embedded-preview .sheet-host.is-managed .sheet-backdrop {
  animation: none;
}
.embedded-preview .sheet-host.is-closing { pointer-events: none; }
.embedded-preview .sheet.is-replacing { overflow: hidden; }
.embedded-preview .sheet-backdrop:active { transform: none; }
.embedded-preview .sheet-header .icon-button,
.embedded-preview .choice-row {
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
}
.embedded-preview .context-button svg {
  transition: transform 300ms cubic-bezier(.22,1,.36,1);
}
.embedded-preview .context-button[aria-expanded=true] svg { transform: rotate(180deg); }

/* Keep the full month mounted so both expansion and collapse can settle smoothly. */
.embedded-preview .calendar-month-reveal {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
  transition: grid-template-rows 340ms cubic-bezier(.22,1,.36,1), opacity 220ms ease;
}
.embedded-preview .calendar-month-clip { min-height: 0; overflow: hidden; }
.embedded-preview .calendar-panel.month-open .calendar-month-reveal {
  grid-template-rows: 1fr;
  opacity: 1;
  pointer-events: auto;
}

.embedded-preview .screen-enter { animation: sunday-content-in 260ms ease-out both; }
.embedded-preview .phone[data-current-screen=today] .screen-content { animation: none; }
.embedded-preview .phone[data-current-screen=today] .screen-enter .today-body>* {
  animation: sunday-content-in 220ms ease-out both;
}
.embedded-preview .nav-selection { transition: transform 380ms cubic-bezier(.22,1,.36,1); }
@keyframes sunday-content-in { from { opacity: .2; } to { opacity: 1; } }

.embedded-preview.reduce-motion .calendar-month-reveal,
.embedded-preview.reduce-motion .context-button svg,
.embedded-preview.reduce-motion .nav-selection { transition: none; }
.embedded-preview.reduce-motion .screen-enter,
.embedded-preview.reduce-motion .screen-enter .today-body>* { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .embedded-preview .calendar-month-reveal,
  .embedded-preview .context-button svg,
  .embedded-preview .nav-selection { transition: none; }
  .embedded-preview .screen-enter,
  .embedded-preview .screen-enter .today-body>* { animation: none; }
}
