.yap-draw-dialog{border:0;padding:0;border-radius:18px;background:var(--panel,#fff);color:var(--fg,#222);width:min(96vw,920px);max-width:920px;max-height:92dvh;box-shadow:0 25px 90px #0007;overflow:auto}.yap-draw-dialog::backdrop{background:#07111bc0;backdrop-filter:blur(3px)}.yap-draw-shell{display:flex;flex-direction:column;gap:12px;padding:18px}.yap-draw-shell header,.yap-draw-shell footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.yap-draw-shell header strong{display:block;font-size:20px}.yap-draw-shell header small{display:block;color:var(--muted,#888);font-size:12px;margin-top:2px}.yap-draw-shell header button{font-size:26px;line-height:1;padding:4px 12px}.yap-draw-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.yap-draw-toolbar button,.yap-draw-shell footer button{padding:8px 12px;font-size:13px}.yap-draw-toolbar button[aria-pressed=true]{outline:2px solid #a3dc34;outline-offset:1px}.yap-draw-toolbar label{display:flex;align-items:center;gap:6px;font-size:13px}.yap-draw-toolbar input[type=color]{width:33px;height:30px;border:0;padding:0;background:transparent}.yap-draw-toolbar input[type=range]{width:90px}.yap-draw-surface{background:#f1f3f1;border:1px solid var(--border,#ccc);border-radius:12px;padding:8px;min-height:0}.yap-draw-surface canvas{display:block;width:100%;height:auto;aspect-ratio:8/5;max-height:55dvh;background:white;border-radius:7px;touch-action:none;cursor:crosshair}.yap-draw-shell footer{flex-wrap:wrap}.yap-draw-note{font-size:12px;color:var(--muted,#888)}.yap-draw-shell footer>div{display:flex;gap:8px}.yap-draw-shell .yap-draw-attach{background:#ddfb6c;color:#17200f;border-color:transparent;font-weight:700}@media(max-width:600px){.yap-draw-dialog{width:calc(100vw - 14px);max-height:94dvh}.yap-draw-shell{padding:11px;gap:9px}.yap-draw-toolbar{gap:6px}.yap-draw-toolbar button{padding:8px}.yap-draw-surface{padding:4px}.yap-draw-shell footer>div{width:100%;justify-content:flex-end}.yap-draw-surface canvas{max-height:48dvh}}