/* 공통 움직임 — 디노 · 듀티핏 같은 파일(원본은 deno/motion.css, duty-scheduler/motion.css는 복사본. 고치면 둘 다 같게).
   캔버스 67(2026-11-11 사용자 확정): 스낵바 = 아래에서 밀려 올라옴 · 토스트 = 제자리 페이드 · 팝업 = scale in · 바텀시트 = 밀려 올라옴 + 배경 페이드 · 체크 = 선 그리기 / 지우기.
   쓰는 법 둘: ① 클래스(.mo-toast · .mo-snack · .mo-pop · .mo-sheet · .mo-scrim · .mo-check)를 붙이고 닫을 때 .mo-leave
              ② 이미 있는 선택자에 animation:var(--mo-sheet-in) 처럼 값만 가져다 씀
   움직임은 translate · scale(낱개 속성)로 해서 각 앱의 transform(가운데 맞춤 · 끌어 닫기)과 겹쳐도 안 깨짐.
   움직임 줄이기는 각 앱이 정함(디노 data-calm, 듀티핏 prefers-reduced-motion). */
:root{
  --mo-ease-out:cubic-bezier(.2,.8,.2,1); --mo-ease-in:cubic-bezier(.4,0,1,1);
  --mo-toast-in:mo-fade-in .2s var(--mo-ease-out) both;     --mo-toast-out:mo-fade-out .2s var(--mo-ease-in) both;
  --mo-snack-in:mo-slide-in .25s var(--mo-ease-out) both;   --mo-snack-out:mo-slide-out .18s var(--mo-ease-in) both;
  --mo-pop-in:mo-pop-in .2s var(--mo-ease-out) both;        --mo-pop-out:mo-pop-out .15s var(--mo-ease-in) both;
  --mo-sheet-in:mo-sheet-in .3s cubic-bezier(.32,.72,0,1) both; --mo-sheet-out:mo-sheet-out .22s cubic-bezier(.3,0,.8,.15) both;
  --mo-scrim-in:mo-fade-in .3s ease-out both;               --mo-scrim-out:mo-fade-out .22s ease-in both;
}
.mo-toast{animation:var(--mo-toast-in)} .mo-toast.mo-leave{animation:var(--mo-toast-out)}
/* 스낵바: --mo-from = 화면 끝에서 스낵바까지 거리(그만큼 더 밀려 화면 밖에서 시작) · --mo-dir:-1이면 위에서 */
.mo-snack{animation:var(--mo-snack-in)} .mo-snack.mo-leave{animation:var(--mo-snack-out)}
.mo-pop{animation:var(--mo-pop-in)} :is(.mo-pop.mo-leave,.mo-leave>.mo-pop){animation:var(--mo-pop-out)}
.mo-sheet{animation:var(--mo-sheet-in)} :is(.mo-sheet.mo-leave,.mo-leave>.mo-sheet){animation:var(--mo-sheet-out)}
.mo-scrim{animation:var(--mo-scrim-in)} .mo-scrim.mo-leave{animation:var(--mo-scrim-out)}
@keyframes mo-fade-in{from{opacity:0}}
@keyframes mo-fade-out{to{opacity:0}}
@keyframes mo-slide-in{from{translate:0 calc((100% + var(--mo-from,0px)) * var(--mo-dir,1))}}
@keyframes mo-slide-out{to{translate:0 calc((100% + var(--mo-from,0px)) * var(--mo-dir,1))}}
@keyframes mo-pop-in{from{opacity:0;scale:.95}}
@keyframes mo-pop-out{to{opacity:0;scale:.95}}
@keyframes mo-sheet-in{from{translate:0 100%}}
@keyframes mo-sheet-out{to{translate:0 100%}}
/* 체크: 칸(.mo-check) 안 svg path에 pathLength="1". 켜짐 = 바로 앞 :checked 입력 · 부모 aria-pressed="true" · .mo-on
   켤 때 칸 150ms → 선 200ms 그려짐 / 끌 때 선 150ms 지워짐 → 칸 150ms. 칸 색은 각 앱이 정함 */
.mo-check{transition:background-color .15s var(--mo-ease-in) .15s,border-color .15s var(--mo-ease-in) .15s}
.mo-check path{vector-effect:none;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset .15s var(--mo-ease-in)}
:is(:checked+.mo-check,[aria-pressed="true"]>.mo-check,.mo-check.mo-on){transition:background-color .15s var(--mo-ease-out),border-color .15s var(--mo-ease-out)}
:is(:checked+.mo-check,[aria-pressed="true"]>.mo-check,.mo-check.mo-on) path{stroke-dashoffset:0;transition:stroke-dashoffset .2s var(--mo-ease-out) .1s}
