/* One short compositor animation per transition, independent of scroll position. */
:root #locketPhoneCard .phone-screen { transform:none; animation:none; will-change:auto; transition:opacity .18s ease,visibility .18s; }
:root #locketPhoneCard .phone-screen.active { animation:locket-screen-arrive .22s cubic-bezier(.2,.7,.25,1); }
:root #locketPhoneCard .phone-screen.active[data-enter-direction="none"] { animation:none; }
:root #locketPhoneCard .history-view-layer { transform:none; transition:opacity .16s ease,visibility .16s; }
@keyframes locket-screen-arrive { from { opacity:0; translate:0 8px; } to { opacity:1; translate:0 0; } }
:root .history-feed-scroll { scroll-behavior:auto; overscroll-behavior-y:contain; touch-action:pan-y; overflow-anchor:none; }
#locketPhoneCard[data-overlay-open="true"] :is(#nativeDock,#feedBottomChrome) { visibility:hidden; pointer-events:none; }
.moment-feed-slide { content-visibility:auto; contain-intrinsic-size:auto 100dvh; }
.moment-feed-slide.is-current { content-visibility:visible; }
.moment-feed-slide:not(.is-current) .ios-ov-pill,.moment-feed-slide:not(.is-current) .ios-ov-pill::before,.moment-feed-slide:not(.is-current) .ios-ov-pill::after,.moment-feed-slide:not(.is-current) .ios-ov-pill * { animation-play-state:paused!important; }
:root :is(.feed-caption-pill,.md-caption-pill).ios-ov-pill { box-sizing:border-box; display:flex; align-items:center; gap:7px; width:max-content; max-width:calc(100% - 32px); min-width:0; min-height:34px; padding:6px 12px; line-height:1.35; backdrop-filter:none; -webkit-backdrop-filter:none; box-shadow:0 2px 8px #0002; }
.ios-ov-pill > .ios-ov-text { flex:0 1 auto; display:block; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.ios-ov-pill > :is(.ov-ios-badge,.ov-ios-music-disc) { flex:0 0 22px; width:22px; height:22px; margin:0; overflow:hidden; box-shadow:none; animation:none; }
.ios-ov-pill > .ov-ios-badge svg { width:17px; height:17px; }
.ios-ov-review > .ios-ov-text,.ios-ov-palette > .ios-ov-text { font-variant-numeric:tabular-nums; }
.ios-ov-pill > .ov-ios-palette-color svg { width:22px; height:22px; }
.ios-ov-pill > .ov-ios-music-disc img { width:100%; height:100%; object-fit:cover; }
.ios-ov-pill > :is(.ov-ios-eq,.ov-ios-snow-dots) { flex:none; }

/* Reviews use compact system type; keep custom caption colors and the editor value. */
:root .ios-ov-pill.ios-ov-review,
:root #liveOverlayPill[data-overlay-kind="review"],
:root #drawerCaptionPreview[data-overlay-kind="review"] {
  --review-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,system-ui,sans-serif;
  box-sizing:border-box;
  min-height:32px;
  gap:6px;
  padding:6px 12px;
  border:0;
  border-radius:999px;
  background:rgba(28,28,30,.86);
  color:#fff;
  font:500 15px/20px var(--review-font);
  letter-spacing:-.15px;
  text-shadow:none;
  box-shadow:0 2px 8px #0002;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
:root .ios-ov-review .ios-ov-text,
:root .ios-ov-review .ios-ov-text > span,
:root #liveOverlayPill[data-overlay-kind="review"] input,
:root #drawerCaptionPreview[data-overlay-kind="review"] span {
  font-family:var(--review-font);
  line-height:inherit;
  letter-spacing:inherit;
}
:root .ios-ov-review > .ios-ov-text,
:root #drawerCaptionPreview[data-overlay-kind="review"] #drawerCaptionText {
  display:flex;
  align-items:baseline;
  gap:6px;
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
  overflow-wrap:normal;
  font-variant-numeric:tabular-nums;
}
.ios-review-score { flex:none; font-weight:600; }
.ios-review-comment { min-width:0; overflow:hidden; text-overflow:ellipsis; font-weight:500; }
:root .ios-ov-review .ov-ios-stars,
:root #liveOverlayPill[data-overlay-kind="review"] .ov-ios-stars,
:root #drawerCaptionPreview[data-overlay-kind="review"] .ov-ios-stars {
  display:flex;
  align-items:center;
  flex:0 0 16px;
  width:16px;
  height:20px;
  margin:0;
}
:root .ios-ov-review .ov-ios-stars svg,
:root #liveOverlayPill[data-overlay-kind="review"] .ov-ios-stars svg,
:root #drawerCaptionPreview[data-overlay-kind="review"] .ov-ios-stars svg { width:16px; height:16px; }
:root #liveOverlayPill[data-overlay-kind="review"] #captionInput { min-width:0; font-size:15px; font-weight:500; }

:root .history-cell { animation:none; }
:is(#nativeShareDownload,#mdDownloadBtn)[aria-busy="true"] :is(.native-icon,i) { animation:download-working .7s ease-in-out infinite alternate; }
@keyframes download-working { to { opacity:.45; translate:0 2px; } }
@media (prefers-reduced-motion:reduce) {
  :is(#nativeShareDownload,#mdDownloadBtn)[aria-busy="true"] :is(.native-icon,i) { animation:none; }
  :root #locketPhoneCard .phone-screen.active { animation:none; }
  :root #locketPhoneCard :is(.phone-screen,.history-view-layer) { transition:none; }
  .ios-ov-pill,.ios-ov-pill::before,.ios-ov-pill::after,.ios-ov-pill * { animation:none!important; }
}
