/* 원팡 공통 토스트 — 원팡 토큰(--op-*)이 있으면 쓰고, 관리자 화면처럼 없으면 같은 값의 기본색을 쓴다. */
.op-toast-stack {
  position: fixed; left: 50%; bottom: 28px; z-index: 2147483000;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: min(460px, calc(100vw - 32px)); transform: translateX(-50%);
  pointer-events: none;
}
.op-toast {
  position: relative; display: flex; align-items: center; gap: 12px;
  width: 100%; box-sizing: border-box; padding: 12px 44px 14px 12px; overflow: hidden;
  border-radius: 16px; background: var(--op-text, #1E1B24); color: var(--op-bg, #FFFDF6);
  box-shadow: 0 24px 60px -20px rgba(30, 27, 36, .45), 0 2px 8px rgba(30, 27, 36, .18);
  font: 600 14px/1.55 "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  word-break: keep-all; overflow-wrap: anywhere;
  pointer-events: auto; animation: op-toast-in .28s cubic-bezier(.2, .8, .2, 1);
}
.op-toast.is-leaving { animation: op-toast-out .2s ease forwards; }
.op-toast.is-shake { animation: op-toast-shake .35s ease; }
.op-toast__icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: #FD4C97; color: #fff; }
.op-toast__icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.op-toast.is-ok .op-toast__icon { background: #12A57F; }
.op-toast.is-warn .op-toast__icon { background: #F59E0B; }
.op-toast.is-info .op-toast__icon { background: #FD4C97; }
.op-toast__text { margin: 0; white-space: pre-line; }
.op-toast__close {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
  border: 0; border-radius: 10px; background: transparent; color: inherit; opacity: .6; cursor: pointer;
  font-size: 18px; line-height: 1;
}
.op-toast__close:hover { opacity: 1; background: rgba(255, 255, 255, .1); }
.op-toast__bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: #FD4C97; transform-origin: left; animation: op-toast-bar linear forwards; }
.op-toast.is-paused .op-toast__bar { animation-play-state: paused; }
:root[data-theme="dark"] .op-toast { background: #F4F1F7; color: #1E1B24; }
:root[data-theme="dark"] .op-toast__close:hover { background: rgba(30, 27, 36, .08); }
@keyframes op-toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes op-toast-out { to { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes op-toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes op-toast-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@media (max-width: 760px) { .op-toast-stack { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .op-toast, .op-toast__bar { animation-duration: .01ms !important; } }
