/* Notifications (toast) and confirmation dialogs, on every page. */
.toasts { position: fixed; z-index: 2000; top: 16px; right: 16px; left: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; max-width: 420px; padding: 13px 14px 13px 16px; border-radius: 12px; background: var(--color-primary-dark, #126441); color: #fff; font: 500 15px/1.35 Inter, "SF Pro", Roboto, -apple-system, system-ui, sans-serif; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); pointer-events: auto; animation: toastIn .28s ease-out; }
.toast svg { flex: none; }
.toast span { flex: 1; }
.toast.isOut { opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s; }
.toast.isError { background: var(--color-error, #b3261e); }
.toastClose { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; cursor: pointer; }
.toastClose:hover { background: rgba(255, 255, 255, .32); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } }
@media (max-width: 899px) { .toasts { top: calc(env(safe-area-inset-top, 0px) + 12px); align-items: stretch; } .toast { max-width: none; } }

.cfOverlay { position: fixed; z-index: 2100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(16, 33, 26, .5); animation: cfFade .18s ease-out; }
.cfBox, .cfBox button { font-family: Inter, "SF Pro", Roboto, -apple-system, system-ui, sans-serif; }
.cfBox { width: 100%; max-width: 400px; padding: 24px; border-radius: 16px; background: #fff; color: var(--color-ink, #1b2a24); box-shadow: 0 20px 50px rgba(0, 0, 0, .3); text-align: center; animation: cfPop .2s ease-out; }
.cfTitle { margin: 0 0 8px; font-size: 19px; font-weight: 700; color: var(--color-title, #10211a); }
.cfMessage { margin: 0 0 20px; font-size: 15px; line-height: 1.45; color: var(--color-ink-soft, #55655e); }
.cfActions { display: flex; gap: 10px; }
.cfBtn { flex: 1; min-height: 44px; padding: 8px 14px; border: 1px solid var(--color-line, #d9e1dd); border-radius: 999px; background: #fff; color: var(--color-ink, #1b2a24); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.cfBtn:hover { background: var(--color-line-soft, #f1f4f2); }
.cfOk { border-color: var(--color-secondary, #1d6fb8); background: var(--color-secondary, #1d6fb8); color: #fff; }
.cfOk:hover { background: var(--color-secondary-dark, #165a97); }
.cfOk.isDanger { border-color: var(--color-error, #b3261e); background: var(--color-error, #b3261e); }
@keyframes cfFade { from { opacity: 0; } }
@keyframes cfPop { from { opacity: 0; transform: scale(.94); } }
