/* toasts.js: toasts, match-found, disconnect modal */
.cu-toasts{position:fixed;left:50%;bottom:24px;translate:-50% 0;display:flex;flex-direction:column;gap:8px;z-index:60;max-width:calc(100% - 32px)}
.cu-toast{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:10px 16px;font-size:14px;color:var(--ui-ink,#231a2e);
  background:var(--ui-parchment,#fff3cd);border:2px solid var(--ui-ink,#231a2e);box-shadow:3px 3px 0 var(--ui-ink,#231a2e)}
.cu-toast.error{border-left:8px solid var(--cu-seal,#c8343f)}
.cu-toast.error::before{content:"!";font-weight:700;font-size:16px}
.cu-toast.match{font-size:16px}.cu-toast-h{font-size:16px}
.cu-toasts .cu-btn,.cu-dc .cu-btn{min-height:44px;min-width:44px;font-size:14px}
.cu-dc{position:fixed;inset:0;z-index:70;display:grid;place-items:center;background:#07050fcc;padding:16px}
.cu-dc-box{max-width:420px;padding:20px;display:flex;flex-direction:column;gap:10px;background:var(--ui-panel-solid,#1d2a4b);color:var(--ui-parchment,#fff3cd);border:3px solid var(--ui-ink,#231a2e)}
.cu-dc-h{margin:0;font-size:20px}.cu-dc-p,.cu-dc-st{margin:0;font-size:14px}
.cu-toasts button:focus-visible,.cu-dc button:focus-visible{outline:none;box-shadow:var(--cu-focus-ring,0 0 0 2px #231a2e,0 0 0 5px #ffe2a3)}
@media (prefers-reduced-motion:no-preference){.cu-toast{animation:cu-toast-in .25s ease-out}}
@keyframes cu-toast-in{from{opacity:0;translate:0 8px}}
/* BACKLOG-3 N12-12: info toasts carry an "i" mark (shape, not colour alone), like the error "!" */
.cu-toast.info::before{content:"i";display:inline-grid;place-items:center;width:20px;height:20px;font-weight:700;font-size:14px;color:var(--ui-parchment,#fff3cd);background:var(--ui-ink,#231a2e)}
/* N12-15/16: dialogs get the toast pixel shadow and a gold top rule; at phone width their buttons stack full width */
.cu-dc-box{box-shadow:4px 4px 0 var(--ui-ink,#231a2e);border-top:6px solid var(--ui-gold,#f4c67b)}
@media (max-width:480px){.cu-dc-box{width:100%;box-sizing:border-box}.cu-dc-box .cu-btn{width:100%}}
/* N13-14: the match-found count keeps its width as it counts. N13-17: dialog titles wrap in balanced lines. */
.cu-toast-n{font-variant-numeric:tabular-nums}
.cu-dc-h{text-wrap:balance}
/* N14-16: toast stack fills the phone width with 16 px gutters. N14-17: dialog body text wraps evenly. */
@media (max-width:480px){.cu-toasts{left:16px;right:16px;translate:none;max-width:none}.cu-toast{box-sizing:border-box;max-width:100%}}
.cu-dc-box p{text-wrap:pretty}
