/* 토스트 - 동작은 toast.js, 규칙은 claude_common/ui/toast.md
   밝은 면 카드 + 왼쪽 뜻 색 표시 + 문구. 초록·빨강 통바탕은 쓰지 않는다(2026-09-26). 모든 화면 부품보다 위 */
.site-toast-wrap { position: fixed; inset: auto 0 0 0; z-index: 2147483000; pointer-events: none; }
.site-toast {
  position: absolute; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: max-content; max-width: min(380px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 4px; /* 표시 그림~문구 4px(그림~글자 규칙, 2026-10-23) */
  padding: 10px 8px 10px 14px; border-radius: var(--uk-r-md);
  background: var(--uk-surface); color: var(--uk-fg); box-shadow: var(--uk-up-lg);
  font-size: 14px; line-height: 1.5; pointer-events: auto;
  animation: site-toast-in .2s ease;
}
.site-toast[hidden] { display: none; } /* 위 display:flex가 hidden을 덮어 ×·2.5초 뒤에도 안 닫히던 것(2026-10-14) */
.site-toast-mark { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: var(--uk-on-strong); background: var(--uk-ok); }
.site-toast-mark > svg { display: block; width: 14px; height: 14px; } /* 표시는 SVG 그림 14(글자 ✓·! 아님, 2026-10-23) */
.site-toast.is-error .site-toast-mark { background: var(--uk-danger); }
.site-toast-text { min-width: 0; word-break: keep-all; overflow-wrap: anywhere; white-space: pre-line; } /* 문구 안 \n = 줄바꿈(긴 안내, 2026-10-23) */
.site-toast-text strong { white-space: nowrap; } /* 머리말은 두 줄로 쪼개지지 않는다 */
/* 닫기 X = 작은 떠 있는 칸 닫기와 같은 28 원 · SVG 그림 16(modal.md 닫기 X 크기 표 .side-panel-close.is-small, 2026-10-23 글자 × → SVG) */
.site-toast-x { flex: none; margin-left: 6px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: none; color: var(--uk-muted); opacity: .7; border-radius: 50%; cursor: pointer; }
.site-toast-x > svg { display: block; width: 16px; height: 16px; }
.site-toast-x:hover { opacity: 1; background: var(--uk-head); }
@keyframes site-toast-in { from { opacity: 0; transform: translateY(8px); } }

/* 실행취소 토스트 - 화면 아래 가운데 알약. hidden 대신 투명도·누르기 막기로 여닫는다 */
.undo-toast {
  position: absolute; left: 50%; bottom: calc(20px + var(--uk-bottom-bar, 0px) + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px);
  padding: 8px 8px 8px 18px; border-radius: var(--uk-r-pill);
  background: var(--uk-surface); color: var(--uk-fg); box-shadow: var(--uk-up-lg); font-size: 14px;
  transition: opacity .18s ease, transform .18s ease;
}
.undo-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.undo-toast-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.undo-toast-btn { flex: none; border: 0; background: none; color: var(--uk-brand-dark); font: inherit; font-weight: 700; padding: 6px 12px; border-radius: var(--uk-r-pill); cursor: pointer; }
.undo-toast-btn:hover { background: var(--uk-brand-light); }
@media (prefers-reduced-motion: reduce) { .site-toast { animation: none; } .undo-toast { transition: none; } }
