.dots{--frame-pad:20px;--card-pad:12px;--picture-radius:8px;--card-radius:calc(var(--picture-radius) + var(--card-pad));--lift:0 0 0 1px #0000000f, 0 1px 2px #0000000f, 0 12px 28px -10px #00000038;--ease-out:cubic-bezier(.23, 1, .32, 1)}:root.dark .dots{--lift:0 0 0 1px #ffffff14, 0 1px 2px #0006, 0 16px 32px -10px #000000b3}html:has(>body.dots){overflow-y:auto}.dots [hidden]{display:none!important}.dots-bar{border-bottom:1px solid var(--line);flex:none;align-items:center;gap:12px;height:56px;padding:0 20px;display:flex;& h1{letter-spacing:-.01em;font-size:20px;font-weight:800}& a{text-underline-offset:4px;font-size:14px;font-weight:700}}.dots-logo{border-radius:8px;width:28px;height:28px;box-shadow:0 0 0 1px #0000001a}:root.dark .dots-logo{box-shadow:0 0 0 1px #ffffff1a}.dots-slash{background:var(--line);width:1px;height:20px;rotate:18deg}.dots-by{color:var(--muted);text-decoration:none}.dots-site{text-decoration:underline;text-decoration-color:var(--underline);text-decoration-skip-ink:auto;margin-left:auto}.dots .dots-main{flex-direction:column;padding:0;display:flex}.dots-stage{background-color:var(--soft);background-image:radial-gradient(var(--line) 1px, transparent 1.5px);background-position:50%;background-size:16px 16px;flex-direction:column;display:flex;position:relative}.dots-frame{padding:var(--frame-pad);flex:1;place-items:center;display:grid}.dots-card{padding:var(--card-pad);border-radius:var(--card-radius);background:var(--bg);box-shadow:var(--lift);position:relative;& canvas{border-radius:var(--picture-radius);outline-offset:-1px;transition:opacity .2s var(--ease-out);outline:1px solid #0000001a;display:block}}:root.dark .dots-card canvas{outline-color:#ffffff1a}.dots-stage[data-waiting=true] canvas{opacity:.2}.dots-empty{inset:var(--card-pad);border-radius:var(--picture-radius);text-align:center;place-content:center;justify-items:center;gap:8px;padding:24px;display:grid;position:absolute;& h2{text-wrap:balance;font-size:20px;font-weight:800}& p{max-width:30ch;color:var(--muted);text-wrap:pretty;margin-bottom:8px}}.dots-toolbar{background:var(--bg);box-shadow:var(--lift);border-radius:999px;align-self:center;align-items:center;gap:4px;margin-bottom:20px;padding:4px;display:flex;& p{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;padding:0 12px;font-size:13px}}.play{min-height:36px;color:var(--fg);font:inherit;cursor:pointer;transition:background-color .15s var(--ease-out), scale .12s var(--ease-out);background:0 0;border:0;border-radius:999px;align-items:center;gap:8px;padding:0 14px 0 12px;font-size:14px;font-weight:700;display:inline-flex;&:active{scale:.96}}.play-icons{width:16px;height:16px;position:relative;& svg{fill:currentColor;transition:opacity .2s cubic-bezier(.2,0,0,1),scale .2s cubic-bezier(.2,0,0,1),filter .2s cubic-bezier(.2,0,0,1);position:absolute;inset:0}}.play[data-paused=false] .icon-play,.play[data-paused=true] .icon-pause{opacity:0;filter:blur(4px);scale:.25}.dots-drop{border:2px dashed var(--fg);border-radius:var(--card-radius);background:color-mix(in srgb, var(--bg) 82%, transparent);opacity:0;pointer-events:none;transition:opacity .16s var(--ease-out), scale .16s var(--ease-out);place-items:center;font-size:18px;font-weight:800;display:grid;position:absolute;inset:12px;scale:.985}.dots-stage[data-dragging=true] .dots-drop{opacity:1;scale:1}.dots-panel{flex-direction:column;min-height:0;font-size:14px;display:flex;& fieldset{flex-direction:column;gap:8px;min-width:0;padding:24px 16px 4px;display:flex;position:relative}& fieldset div:not([class]){flex-direction:column;gap:8px;display:flex}& legend{float:left;letter-spacing:-.005em;margin-bottom:4px;font-size:15px;font-weight:800}& legend+*{clear:left}& button,& select,& input[type=text],& input[type=number]{border:1px solid var(--line);background:var(--bg);min-height:36px;color:var(--fg);font:inherit;border-radius:8px}& button{cursor:pointer;transition:background-color .15s var(--ease-out), border-color .15s var(--ease-out), opacity .15s var(--ease-out), scale .12s var(--ease-out);padding:0 12px;font-weight:600}& button:active,& .chips label:active{scale:.96}& button.primary{border-color:var(--fg);background:var(--fg);color:var(--bg)}& select,& input[type=text],& input[type=number]{min-width:0;padding:0 8px}& input[type=color]{cursor:pointer;background:0 0;border:0;width:44px;height:32px;padding:0}& input[type=range],& input[type=checkbox]{accent-color:var(--fg)}}.dots :focus-visible{outline:2px solid var(--fg);outline-offset:2px}.dots-scroll{flex:1;min-height:0;padding-bottom:16px}.field{align-items:center;gap:8px;min-height:36px;display:flex;&>:first-child{color:var(--muted);flex:0 0 112px}& select,& input[type=range],& input[type=text],& input[type=number]{flex:1;width:0}& output{text-align:right;font-variant-numeric:tabular-nums;flex:0 0 34px}& button{flex:1}}.check{cursor:pointer;align-items:center;gap:8px;min-height:32px;display:flex}.chips{flex-wrap:wrap;gap:6px;display:flex;& label,& button{border:1px solid var(--line);cursor:pointer;min-height:36px;transition:background-color .15s var(--ease-out), border-color .15s var(--ease-out), scale .12s var(--ease-out);border-radius:8px;align-items:center;gap:8px;padding:0 12px;font-weight:600;display:inline-flex}& label:has(:checked){border-color:var(--fg);background:var(--soft)}& label:has(:focus-visible){outline:2px solid var(--fg);outline-offset:2px}& input{opacity:0;pointer-events:none;position:absolute}}.swatch{border-radius:4px;width:30px;height:12px;box-shadow:inset 0 0 0 1px #0000001f}:root.dark .swatch{box-shadow:inset 0 0 0 1px #ffffff29}.swatches{justify-content:space-between;display:flex}.drop{border:1px dashed var(--muted);text-align:center;overflow-wrap:anywhere;text-wrap:pretty;cursor:pointer;transition:background-color .15s var(--ease-out);border-radius:8px;padding:20px 16px;display:block;&:focus-within{outline:2px solid var(--fg);outline-offset:2px}}.dots-panel button.reset{margin:24px 16px 0}.dots-export{border-top:1px solid var(--line);background:var(--bg);flex:none;& .field>:first-child{flex-basis:56px}& select[data-image-format]{flex-grow:1.6}& .field output{flex-basis:40px}}.dots-export-bar{background:var(--soft);position:relative;& .status{max-width:calc(100% - 140px);height:48px;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;pointer-events:none;font-size:13px;line-height:48px;position:absolute;top:0;right:48px;overflow:hidden}}.dots-panel .dots-export-toggle{letter-spacing:-.005em;background:0 0;border:0;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:0 16px;font-size:15px;font-weight:800;display:flex;& svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:16px;height:16px;transition:rotate .22s var(--ease-out)}}.dots-export[data-open=true] .dots-export-toggle svg{rotate:180deg}.dots-export-body{transition:grid-template-rows .22s var(--ease-out);grid-template-rows:0fr;display:grid}.dots-export[data-open=true] .dots-export-body{grid-template-rows:1fr}.dots-export-inner{visibility:hidden;flex-direction:column;gap:8px;min-height:0;padding:0 16px;transition:visibility 0s linear .22s;display:flex;overflow:hidden}.dots-export-inner>:first-child{margin-top:16px}.dots-export-inner>:last-child{margin-bottom:16px}.dots-export[data-open=true] .dots-export-inner{visibility:visible;transition-delay:0s}@media (hover:hover) and (pointer:fine){.dots-panel button:hover,.chips label:hover,.drop:hover,.play:hover{background-color:var(--soft)}.dots-panel .dots-export-toggle:hover{background-color:#0000}.dots-panel button.primary:hover{background-color:var(--fg);opacity:.88}}@media (width>=860px){body.dots{height:100dvh;overflow:hidden}.dots .dots-main{grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr) 340px;min-height:0;display:grid}.dots-stage{min-height:0}.dots-frame{min-height:0;overflow:hidden}.dots-panel{border-left:1px solid var(--line)}.dots-scroll{overflow-y:auto}}@media (width<=859px){.dots-bar{padding-inline:16px}.dots-stage{z-index:1;box-shadow:0 1px 0 var(--line);position:sticky;top:0}.dots-frame{--frame-pad:12px;padding-bottom:8px}.dots-toolbar{margin-bottom:12px}.dots-panel{& select,& input[type=text],& input[type=number]{font-size:16px}& button,& select,& input[type=text],& input[type=number],& .chips label,& .field,& .check{min-height:44px}}.dots-export-bar{padding-bottom:env(safe-area-inset-bottom)}.dots-export-inner>:last-child{margin-bottom:calc(16px + env(safe-area-inset-bottom))}}@media (prefers-reduced-motion:reduce){.play-icons svg{transition:opacity .12s linear;filter:none!important;scale:1!important}.dots-panel button:active,.chips label:active,.play:active,.dots-drop{scale:1}.dots-export-body,.dots-export-toggle svg{transition:none}}.dots-history{gap:4px;display:flex;position:absolute;top:16px;right:16px}.dots-panel .dots-history button{place-items:center;width:32px;min-height:32px;padding:0;display:grid;& svg{fill:none;stroke:currentColor;stroke-width:1.75px;stroke-linecap:round;stroke-linejoin:round;width:16px;height:16px}&:disabled{opacity:.35;cursor:default}}@media (width<=859px){.dots-panel .dots-history button{width:44px;min-height:44px}}
