@media (prefers-reduced-motion: no-preference) {
  .chip-enter {
    animation: chip-enter 0.22s ease-out both;
    animation-delay: var(--shift, 0ms);
  }
  .rooms-enter {
    animation: rooms-enter 0.26s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: var(--shift, 0ms);
  }
  .switch { transition: background 0.15s; }
  .week-pill { transition: transform 0.36s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s; }
  .week-enter { animation: week-enter 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .week-leave { animation: week-leave 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .switch::after { transition: transform 0.15s; }
  .screen.enter-forward > :not(.bottom-bar) {
    animation: enter-forward 0.26s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: var(--shift, 0ms);
  }
  .screen.enter-back > :not(.bottom-bar) {
    animation: enter-back 0.26s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: var(--shift, 0ms);
  }
  .screen.enter-fade > *,
  .screen.enter-forward > .bottom-bar,
  .screen.enter-back > .bottom-bar {
    animation: fade-in 0.22s ease-out both;
    animation-delay: var(--shift, 0ms);
  }
  .screen.enter-fade .tab.on::after,
  .screen.enter-forward .tab.on::after {
    animation: underline 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: var(--shift, 0ms);
  }
  .screen.tab-right > .content,
  .screen.content-forward > .content {
    animation: enter-forward 0.26s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: var(--shift, 0ms);
  }
  .screen.tab-left > .content,
  .screen.content-back > .content {
    animation: enter-back 0.26s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: var(--shift, 0ms);
  }
  .screen.tab-right > .bottom-bar,
  .screen.tab-left > .bottom-bar,
  .screen.content-forward > .bottom-bar,
  .screen.content-back > .bottom-bar {
    animation: fade-in 0.22s ease-out both;
    animation-delay: var(--shift, 0ms);
  }
  .screen.tab-right .tab.on::after {
    animation: underline-from-left 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: var(--shift, 0ms);
  }
  .screen.tab-left .tab.on::after {
    animation: underline-from-right 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: var(--shift, 0ms);
  }
  .days.appear > * {
    animation: rise 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: calc(var(--i, 0) * 45ms + var(--shift, 0ms));
  }
  .days.appear > :nth-child(2) { --i: 1; }
  .days.appear > :nth-child(3) { --i: 2; }
  .days.appear > :nth-child(4) { --i: 3; }
  .days.appear > :nth-child(5) { --i: 4; }
  .days.appear > :nth-child(6) { --i: 5; }
  .days.appear > :nth-child(n+7) { --i: 6; }
  .icon.pop,
  .pin-star.pop {
    animation: pop 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: var(--shift, 0ms);
  }
  .now-label::before {
    animation: pulse 2.4s cubic-bezier(0.37, 0, 0.63, 1) infinite;
    animation-delay: var(--pulse-shift, 0ms);
    will-change: opacity;
  }
  .snackbar { animation: snack-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .snackbar.hide { animation: snack-out 0.18s ease-in both; }
  .overlay { animation: fade-in 0.16s ease-out both; }
  .overlay.closing { animation: fade-out 0.14s ease-in both; }
  .dialog { animation: dialog-in 0.24s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .action, .text-button, .icon-button, .primary-button, .link-button, .segment, .pin-star, .tile,
  .list-row, .role-row, .pin-open, .tab, .text-link {
    transition: background-color 0.15s, opacity 0.15s, transform 0.12s;
  }
  .action:active, .text-button:active, .icon-button:active, .primary-button:active,
  .link-button:active, .segment:active, .pin-star:active, .tile:active {
    transform: scale(0.96);
  }
}
@keyframes enter-forward {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes enter-back {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes underline {
  from { transform: scaleX(0); }
  to { transform: none; }
}
@keyframes underline-from-left {
  from { transform: translateX(-100%); }
  to { transform: none; }
}
@keyframes underline-from-right {
  from { transform: translateX(100%); }
  to { transform: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes pop {
  0% { opacity: 0; transform: scale(0.5); }
  60% { opacity: 1; transform: scale(1.18); }
  100% { opacity: 1; transform: none; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes snack-in {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes snack-out {
  from { opacity: 1; transform: translate(-50%, 0); }
  to { opacity: 0; transform: translate(-50%, 16px); }
}
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to { opacity: 1; transform: none; }
}
.notfound {
  max-width: 420px;
  margin: 0 auto;
  padding: calc(64px + env(safe-area-inset-top)) 24px 32px;
  text-align: center;
}
.notfound img { display: block; margin: 0 auto 16px; border-radius: 16px; }
.notfound h1 { font-size: 24px; font-weight: 700; }
.notfound p { margin-top: 8px; color: var(--muted); }
.notfound .primary-button:hover { text-decoration: none; }
.share-qr { display: block; margin: 0 auto 8px; width: 200px; height: 200px; border-radius: 8px; image-rendering: pixelated; }
@keyframes rooms-enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes chip-enter {
  from { background: transparent; border-color: var(--button-border); color: var(--fg); }
}
@keyframes week-enter {
  from { transform: translateX(calc(var(--dir, 1) * 100%)); }
}
@keyframes week-leave {
  to { transform: translateX(calc(var(--dir, 1) * -100%)); }
}
