* { box-sizing: border-box; }
body { margin: 0; background: #e6ecdf; color: #193e36; font: 16px system-ui,sans-serif; }
main { width: min(100%, 460px); height: 100vh; height: 100dvh; margin: auto; background: #f7f5ed; }
canvas { display: block; width: 100%; height: 100%; touch-action: none; }
dialog { width: min(340px,90vw); color: inherit; border: 0; border-radius: 20px; padding: 24px; }
dialog::backdrop { background: #182f29a0; }
form,label,input { display: block; width: 100%; }
input { margin: 14px 0 18px; padding: 10px; border: 1px solid #a7b8a8; border-radius: 8px; font: inherit; }
footer { display: flex; justify-content: flex-end; gap: 8px; }
button { font: inherit; border: 0; border-radius: 9px; padding: 9px 18px; color: #193e36; background: #e7ede2; }
button[value=ok] { background: #176c55; color: white; }
#toast { position: fixed; z-index: 2; left: 50%; bottom: 24px; max-width: 90vw; transform: translateX(-50%); padding: 8px 16px; border-radius: 10px; background: #173e33; color: white; }
