.stroke-entry{margin:1rem 0}.stroke-open{white-space:normal}
.stroke-listen-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:1rem 0}.stroke-listen-row .btn{margin:0}
dialog.stroke-dialog{box-sizing:border-box;width:min(440px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:24px;border:1px solid #ccdfdf;border-radius:22px;background:#fff;color:#20394b;overflow:auto;overscroll-behavior:contain}
.stroke-dialog::backdrop{background:rgba(23,47,58,.4)}
.stroke-dialog .stroke-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.stroke-dialog h2{font-size:1.5rem;line-height:1.25;margin:0;min-width:0}
.stroke-dialog .btn{min-height:44px;margin:0;white-space:normal}
.stroke-dialog .stroke-heading .btn{flex-shrink:0;padding:8px 14px}
.stroke-dialog .stroke-characters{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-bottom:18px}
.stroke-dialog .stroke-characters button{display:inline-flex;align-items:center;justify-content:center;width:44px;min-height:44px;padding:6px;border:1px solid #bed8d5;border-radius:10px;background:#fff;color:#20394b;font-size:22px;line-height:1}
.stroke-dialog .stroke-characters button[aria-pressed=true]{background:#e3f2ef;border:2px solid #16736b;color:#12665e}
.stroke-dialog .stroke-canvas{width:min(280px,100%);aspect-ratio:1;margin:0 auto;box-sizing:border-box;border:1px solid #d9e5e3;border-radius:8px;background:linear-gradient(90deg,transparent calc(50% - .5px),#e7eeed calc(50% - .5px),#e7eeed calc(50% + .5px),transparent calc(50% + .5px)),linear-gradient(transparent calc(50% - .5px),#e7eeed calc(50% - .5px),#e7eeed calc(50% + .5px),transparent calc(50% + .5px)),#fafcfb;overflow:hidden}
.stroke-dialog .stroke-canvas svg{display:block;width:100%;height:100%}
.stroke-dialog .stroke-status{margin:16px 0;min-height:2.8em;line-height:1.5;text-align:center;font-size:.95rem;color:#526d7b;overflow-wrap:anywhere}
.stroke-dialog .stroke-controls{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
.stroke-dialog .stroke-controls .btn{flex:1;min-width:100px}
.stroke-dialog .stroke-controls .btn[hidden]{display:none}
.stroke-dialog button:focus-visible{outline:3px solid #c98d19;outline-offset:3px}
@media(max-width:480px){dialog.stroke-dialog{padding:18px}.stroke-dialog h2{font-size:1.3rem}.stroke-dialog .stroke-canvas{width:min(260px,100%)}}
