dialog.app-error-dialog { box-sizing:border-box; position:fixed; inset:0; margin:auto; width:min(26rem,calc(100% - 2rem)); height:fit-content; max-height:85vh; overflow:auto; padding:1.25rem; border:1px solid var(--line,#50677d); border-top:4px solid #e46e67; border-radius:14px; background:var(--surface,#172839); color:var(--text,#f4f7fb); box-shadow:0 12px 42px #0006; }
.app-error-dialog::backdrop { background:#050b15aa; }
.app-error-dialog h2 { margin:0; font-size:1.25rem; }
.app-error-dialog p { white-space:pre-line; overflow-wrap:anywhere; margin:1rem 0; }
.dialog-titlebar{display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem;width:100%;margin-bottom:.4rem}
dialog .dialog-titlebar .dialog-close{display:grid;place-items:center;flex:0 0 44px;height:44px;min-height:44px;width:44px;padding:0;margin:0;font-size:1.5rem;line-height:1}
.points-pad .pad-actions>button:only-child{grid-column:1/-1}
.app-toast:is(#notice,#status):not(:empty){position:fixed;inset:max(.6rem,env(safe-area-inset-top)) auto auto 50%;transform:translateX(-50%);z-index:1000;box-sizing:border-box;width:max-content;max-width:calc(100% - 2rem);margin:0;padding:.65rem 1rem;border-radius:.75rem;border:1px solid var(--accent,#82dfcb);background:var(--raised,#20374b);color:var(--text,#f4f7fb);box-shadow:0 .25rem 1rem #0004;font-weight:650;text-align:center;line-height:1.45;overflow-wrap:anywhere;pointer-events:none;animation:toast-in .18s ease-out}
.app-toast.toast-out:is(#notice,#status):not(:empty){animation:toast-out .18s ease-in forwards}
@keyframes toast-in{from{transform:translate(-50%,-120%);opacity:0}}
@keyframes toast-out{to{transform:translate(-50%,-120%);opacity:0}}
@media(prefers-reduced-motion:reduce){.app-toast:is(#notice,#status):not(:empty){animation:none}}
