/* notifications, confirm window and sparkles — Emerald Warm Minimal theme */
html.lock{overflow:hidden}
.toasts{position:fixed;top:16px;right:16px;z-index:1500;display:grid;gap:10px;width:min(380px,calc(100vw - 32px));pointer-events:none}
.toast{pointer-events:auto;display:flex;align-items:flex-start;gap:10px;padding:12px 12px 12px 14px;background:#ffffff;color:#374151;border:1px solid #E2E8F0;border-left:4px solid #0F766E;border-radius:10px;box-shadow:0 12px 32px rgba(17,24,39,.12);font-size:14.5px;animation:toast-in 180ms ease-out}
.toast.error{border-left-color:#B42318}.toast.success{border-left-color:#0F766E}
.toast-ic{flex:none;display:grid;margin-top:1px;color:#0F766E}
.toast.error .toast-ic{color:#B42318}.toast.success .toast-ic{color:#059669}
.toast-text{flex:1;line-height:1.45}
.toast-act{flex:none;align-self:center;padding:6px 10px;border:1px solid #0F766E;border-radius:var(--radius,8px);background:#ECFDF5;color:#0F766E;font:600 13px var(--font);text-decoration:none;cursor:pointer}
.toast-act:hover{background:#D1FAE5}
.toast-x{flex:none;width:28px;height:28px;display:grid;place-items:center;border:0;background:none;color:#64748B;border-radius:6px;cursor:pointer}
.toast-x:hover{background:#F1F5F9}
@keyframes toast-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
@media (max-width:900px){.toasts{top:68px;right:8px;left:8px;width:auto}}

.cf{position:fixed;inset:0;z-index:1600;display:grid;place-items:center;padding:20px}
.cf-back{position:absolute;inset:0;background:rgba(15,23,42,.45)}
.cf-box{position:relative;width:min(440px,100%);padding:24px;background:#ffffff;color:#374151;border:1px solid #E2E8F0;border-radius:14px;box-shadow:0 24px 64px rgba(17,24,39,.20);outline:none}
.cf-box h2{font-size:20px;color:#111827}
.cf-box p{margin-top:8px;color:#64748B;font-size:15.5px}
.cf-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
.btn-danger{background:#B42318;color:#fff}.btn-danger:hover{background:#912018}
@media (max-width:480px){.cf-actions{flex-direction:column-reverse}.cf-actions .btn{width:100%;height:48px}}

.sparkles{position:fixed;inset:0;z-index:140;pointer-events:none;overflow:hidden}
.spark{position:absolute;bottom:-40px;width:var(--s);height:var(--s);color:var(--c);opacity:0;animation:spark-rise var(--d) ease-out var(--delay) forwards}
.spark svg{display:block;width:100%;height:100%}
@keyframes spark-rise{0%{transform:translate(0,0) rotate(0) scale(.5);opacity:0}12%{opacity:1}100%{transform:translate(var(--x),-108vh) rotate(200deg) scale(1.1);opacity:0}}
@media (prefers-reduced-motion:reduce){.sparkles{display:none}.toast{animation:none}}
