/* 빈 화면·실패 화면 공통 부품(empty-state.js). 2026-10-06 모바일H. 색만으로 구분하지 않는다(모양 + 글자 + 문장). */
.es-empty .es-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 var(--ui-s3, 10px); border: 1px solid var(--ui-line-strong); border-radius: var(--r-pill); font-size: 12px; font-weight: 500; line-height: 1.4; color: var(--ui-text-2); background: var(--ui-surface); } /* 폰은 예전 값 */ @media (max-width: 640px) { .es-empty .es-tag { border-radius: 999px; font-weight: 700; } }
.es-empty .es-tag-missing { border-style: dashed; }
.es-empty .ui-empty-text { line-height: 1.4; overflow-wrap: break-word; word-break: keep-all; }
.es-empty .es-why { font-size: var(--ui-fs-sm); line-height: 1.5; color: var(--ui-text-2); max-width: 52ch; word-break: keep-all; }
.es-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.es-btn { text-decoration: none; }
.es-btn:disabled { opacity: .55; cursor: not-allowed; }
.es-fail .es-actions { flex: 0 0 auto; justify-content: flex-start; margin-top: 0; align-self: center; }
.es-fail .es-t, .es-fail .es-cause, .es-fail .es-next { display: block; word-break: keep-all; }
.es-fail .es-t { font-weight: 500; } /* 폰은 예전 값 */ @media (max-width: 640px) { .es-fail .es-t { font-weight: 700; } }
.es-fail .es-cause, .es-fail .es-next { font-weight: 400; margin-top: 2px; line-height: 1.5; }
@media (max-width: 640px) {
  .es-empty .es-why { font-size: 14px; }
  .es-fail .es-cause, .es-fail .es-next { font-size: 14px; }
  .es-actions .es-btn, .ui.ps-page .es-actions .es-btn { min-height: 48px; padding: 0 16px; font-size: 14px; }
  .es-actions { width: 100%; }
  .es-empty .es-actions .es-btn { flex: 1 1 140px; max-width: 260px; }
  .es-fail .es-actions { flex: 1 1 100%; }
  .es-fail .es-actions .es-btn { flex: 1 1 140px; }
}

/* 저장 실패 알림(위에 떠 있고 자리를 안 차지한다) */
.es-toast { position: fixed; right: 16px; bottom: 16px; z-index: 900; width: min(440px, calc(100vw - 32px)); box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--ui-bad-fg); border-left-width: 6px; border-radius: var(--ui-r, 6px); background: var(--ui-bad-bg); color: var(--ui-bad-fg); box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.es-toast-t b, .es-toast-t .es-cause, .es-toast-t .es-next { display: block; word-break: keep-all; line-height: 1.5; }
.es-toast-t .es-cause, .es-toast-t .es-next { font-size: 14px; }
.es-toast .es-actions { justify-content: flex-start; }
@media (max-width: 640px) {
  .es-toast { left: 12px; right: 12px; width: auto; bottom: calc(72px + env(safe-area-inset-bottom)); }
  .es-toast .es-actions .es-btn { min-height: 48px; flex: 1 1 120px; }
}
