.instrument-root{display:contents}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}:root{--paper:#faf9f7;--ink:#1a1916;--muted:#8a877e;--hair:#cfcabd;--raised:#fffefb;--record:#d85a30;--mono:ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace}html,body{height:100%;margin:0}body{background:var(--paper);color:var(--ink);font-family:var(--mono);min-height:100dvh;padding:max(14px, env(safe-area-inset-top)) 16px max(10px, env(safe-area-inset-bottom));flex-direction:column;align-items:center;font-size:15px;display:flex;position:relative;overflow:hidden}body:before{content:"";pointer-events:none;z-index:0;opacity:.9;background-image:radial-gradient(#6b5e480f .6px,#0000 .9px),radial-gradient(#ffffff80 .5px,#0000 .8px);background-position:0 0,3px 5px;background-size:7px 9px,11px 13px;position:fixed;inset:0}body.sky{background-color:#0000;background-image:radial-gradient(closest-side,#fffffff2,#fff0 100%),radial-gradient(closest-side,#ffffffbf,#fff0 100%),radial-gradient(closest-side,#ffffffd9,#fff0 100%),radial-gradient(closest-side,#ffffff8c,#fff0 100%),linear-gradient(#93b6df,#a4c0e3 55%,#b9cde8);background-position:82% 8%,0 42%,22% 86%,72% 98%,0 0;background-repeat:no-repeat,no-repeat,no-repeat,no-repeat,repeat;background-size:520px 360px,360px 260px,480px 320px,420px 280px,auto;background-attachment:fixed;background-origin:padding-box,padding-box,padding-box,padding-box,padding-box;background-clip:border-box,border-box,border-box,border-box,border-box}body.sky .canvas-wrap,body.photo .canvas-wrap{background:0 0;border-color:#ffffff8c}body.sky .btn,body.photo .btn{background:#fff9;border-color:#ffffffbf}body.sky .btn.on,body.photo .btn.on{background:var(--ink);border-color:var(--ink)}body.photo{background-image:var(--photo);background-position:50%;background-repeat:no-repeat;background-size:cover}body.photo.fit-contain{background-size:contain}body.photo.fit-stretch{background-size:100% 100%}body.photo .foot .more,body.photo .credit,body.photo .title{text-shadow:0 0 6px #ffffffe6}.app{z-index:1;flex-direction:column;flex:1;align-items:center;gap:12px;width:100%;max-width:560px;min-height:0;display:flex;position:relative}.titlebar{justify-content:center;align-items:center;width:100%;display:flex;position:relative}.title{color:var(--ink);margin:0;font-size:15px;font-weight:400;text-decoration:none}.switch{border:1.5px solid var(--ink);background:var(--raised);cursor:pointer;border-radius:13px;flex:none;width:46px;height:26px;padding:0;position:relative}.switch .knob{background:var(--ink);border-radius:50%;width:19px;height:19px;transition:left .2s,background .2s;position:absolute;top:2px;left:2px}.switch.on{background:var(--ink)}.switch.on .knob{background:var(--paper);left:22px}.codecard{z-index:40;background:#1a191647;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.codecard[hidden]{display:none}.procardbox{background:var(--raised);border:1px solid var(--hair);border-radius:16px;flex-direction:column;gap:9px;width:100%;max-width:320px;padding:24px 20px 18px;display:flex;position:relative;box-shadow:0 18px 50px #0000002e}.prox{width:32px;height:32px;color:var(--muted);cursor:pointer;background:0 0;border:none;padding:0;font-size:18px;position:absolute;top:6px;right:6px}.proname{margin-bottom:2px;font-size:15px}.profeat{color:var(--muted);font-size:12.5px;line-height:1.5}.prolock{color:var(--ink);display:inline-flex}.prolock svg{width:16px;height:16px}.prolock[hidden]{display:none}.coderow{gap:6px;margin-top:2px;display:flex}.coderow input{flex:auto;width:auto}.probuy{background:var(--ink);height:40px;color:var(--paper);white-space:nowrap;border-radius:999px;justify-content:center;align-items:center;margin-top:6px;padding:0 14px;font-size:13px;text-decoration:none;display:flex}.probuy[hidden],.codecard[hidden]{display:none}.codecard input{border:1px solid var(--hair);background:var(--paper);width:156px;height:36px;color:var(--ink);font-family:var(--mono);letter-spacing:2px;text-align:center;text-transform:uppercase;border-radius:10px;outline:none;font-size:15px}.codecard input:focus{border-color:var(--ink)}.codecard.wrong input{border-color:var(--record)}.canvas-wrap{aspect-ratio:3/4;border:1px solid var(--hair);background:var(--raised);border-radius:10px;flex:none;width:min(100%,75dvh - 210px);max-height:calc(100dvh - 294px);position:relative;overflow:hidden}@media (width<=759px){body.pro-open .canvas-wrap{max-height:calc(100dvh - 510px)}.prorow{gap:8px 12px}.prorow .btn.word{padding:0 10px}}body.can-record .canvas-wrap{max-height:calc(100dvh - 384px)}@media (width<=759px){body.pro-open.can-record .canvas-wrap{max-height:calc(100dvh - 600px)}}canvas#c{touch-action:none;cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='6' fill='none' stroke='white' stroke-width='3.5' opacity='.8'/%3E%3Ccircle cx='9' cy='9' r='6' fill='none' stroke='%231a1916' stroke-width='1.5'/%3E%3C/svg%3E") 9 9,crosshair;width:100%;height:100%;display:block}.canvas-wrap.erasing canvas#c{cursor:none}.canvas-wrap.stage-on canvas#c{visibility:hidden}.eraser-ring{pointer-events:none;z-index:3;background:#ffffff59;border:1.5px solid #1a19168c;border-radius:50%;width:44px;height:44px;margin:-22px 0 0 -22px;display:none;position:absolute}.canvas-wrap.erasing .eraser-ring{display:block}.notetag{z-index:4;pointer-events:none;font-family:var(--mono);background:var(--ink);color:var(--paper);white-space:nowrap;border-radius:7px;padding:4px 7px;font-size:11px;line-height:1;position:absolute;transform:translate(12px,-30px)}.notetag[hidden]{display:none}.stage{background:var(--raised);grid-template-rows:repeat(3,1fr);grid-template-columns:repeat(3,1fr);gap:2px;display:none;position:absolute;inset:0}.canvas-wrap.stage-on .stage{display:grid}.stage .cell{cursor:pointer;position:relative;overflow:hidden}.stage .cell img{object-fit:cover;opacity:0;width:100%;height:100%;transition:opacity .12s ease-out;position:absolute;inset:0}.stage .cell.show img{opacity:1}.stage .hint{text-align:center;color:#fff;text-shadow:0 0 4px #000000bf;opacity:0;pointer-events:none;justify-content:center;align-items:center;padding:0 8px;font-size:10px;font-weight:500;line-height:1.35;transition:opacity .12s;display:flex;position:absolute;inset:0}.stage .cell.show .hint{opacity:1}.stage .hint[hidden]{display:none}.rail,.bar{flex-direction:column;gap:12px;width:100%;display:flex}.row{align-items:center;gap:8px;width:100%;display:flex}.group{align-items:center;gap:8px;display:flex}.btn{appearance:none;background:var(--raised);border:1px solid var(--hair);color:var(--ink);cursor:pointer;width:36px;height:36px;font-family:var(--mono);border-radius:50%;flex:none;justify-content:center;align-items:center;padding:0;font-size:14px;transition:transform .1s;display:inline-flex}.btn:active{transform:scale(.94)}.btn.on{background:var(--ink);color:var(--paper);border-color:var(--ink)}.btn svg{fill:currentColor;width:14px;height:14px}.btn.beat{letter-spacing:1px;font-size:11px;font-weight:700}input[type=range]{width:96px;accent-color:var(--ink)}.palette{justify-content:space-between;width:100%;display:flex}.swatch{cursor:pointer;outline-offset:3px;border:none;border-radius:50%;outline:2px solid #0000;flex:0 0 32px;width:32px;height:32px;padding:0;transition:outline-color .12s;box-shadow:inset 0 0 0 1px #00000014}.swatch.on{outline-color:var(--ink)}.bar{flex-flow:wrap;justify-content:space-between;align-items:center}.cloudwrap{position:relative}.bgcard{background:var(--raised);border:1px solid var(--hair);z-index:5;border-radius:12px;flex-wrap:wrap;gap:8px;padding:8px;display:flex;position:absolute;bottom:44px;right:0;box-shadow:0 6px 18px #00000014}.fitrow{justify-content:center;gap:6px;width:100%;display:flex}.fitrow[hidden]{display:none}.fitopt{border:1px solid var(--hair);background:var(--raised);width:32px;height:32px;color:var(--ink);cursor:pointer;border-radius:8px;justify-content:center;align-items:center;padding:0;display:inline-flex}.fitopt.on{background:var(--ink);color:var(--paper);border-color:var(--ink)}.fitopt svg{width:15px;height:15px}.bgcard[hidden]{display:none}.tile{border:1px solid var(--hair);background-color:var(--paper);cursor:pointer;width:48px;height:48px;font-family:var(--mono);color:var(--ink);background-position:50%;background-size:cover;border-radius:8px;padding:0;font-size:18px}.tile.on{outline:2px solid var(--ink);outline-offset:-2px}.skytile{background:radial-gradient(closest-side,#fffffff2,#fff0) 68% 28%/70% 55% no-repeat,radial-gradient(closest-side,#ffffffb3,#fff0) 25% 75%/60% 45% no-repeat,linear-gradient(#93b6df,#b9cde8)}.prorow{flex-wrap:wrap;align-items:center;gap:8px;width:100%;display:flex}.prorow[hidden]{display:none}.prorow.locked{opacity:.38}@media (width<=759px){body:not(.pro-open) .prorow{display:none}}.bpmin{border:1px solid var(--hair);background:var(--raised);width:58px;height:40px;color:var(--ink);font-family:var(--mono);text-align:center;border-radius:20px;outline:none;font-size:13px}.bpmin:focus{border-color:var(--ink)}.bpmin.locked{opacity:.38}.bpmin::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.bpmin::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.palette.recolor .swatch{outline:2px dashed var(--muted);outline-offset:3px}.switch:focus{outline:none}.pickcard{z-index:8;background:var(--raised);border:1px solid var(--hair);border-radius:12px;grid-template-columns:repeat(7,26px);gap:8px;padding:12px;display:grid;position:fixed;overflow:visible;box-shadow:0 8px 24px #0000001a}.pickcard[hidden]{display:none}.pick{cursor:pointer;border:none;border-radius:50%;width:26px;height:26px;padding:0;box-shadow:inset 0 0 0 1px #00000014}.pick:hover{outline:2px solid var(--ink);outline-offset:2px}.pickplus{background:var(--raised);border:1px dashed var(--muted);color:var(--ink);font-family:var(--mono);box-shadow:none;font-size:15px;line-height:1}.pickreset{border:1px solid var(--hair);background:var(--paper);height:30px;color:var(--ink);cursor:pointer;border-radius:8px;grid-column:1/-1;justify-content:center;align-items:center;padding:0;display:flex}.pickreset svg{width:14px;height:14px}.pickcustom{flex-direction:column;grid-column:1/-1;gap:12px;width:218px;display:none}#pcfield{cursor:crosshair;touch-action:none;border-radius:10px;width:218px;height:140px;box-shadow:inset 0 0 0 1px #00000014}.pickcard.custom .pick,.pickcard.custom .pickreset{display:none}.pickcard.custom .pickcustom{display:flex}.pcrow{justify-content:space-between;align-items:center;display:flex}.pcdot{border-radius:50%;width:28px;height:28px;box-shadow:inset 0 0 0 1px #00000014}.pcback{width:30px;height:30px;font-size:14px}.pickcustom input[type=range]{appearance:none;border-radius:6px;outline:none;height:12px}#pchue{background:linear-gradient(90deg,red,#ff0,#0f0,#0ff,#00f,#f0f,red)}.pickcustom input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background:var(--raised);border:1.5px solid var(--ink);border-radius:50%;width:18px;height:18px}.pickcustom input[type=range]::-moz-range-thumb{background:var(--raised);border:1.5px solid var(--ink);border-radius:50%;width:18px;height:18px}.prohome{flex-wrap:wrap;align-items:center;gap:10px;width:100%;display:flex;position:relative}.prodeck{flex-direction:column;gap:10px;width:100%;display:flex}.prorow{align-items:flex-end;gap:10px 16px}.field{flex-direction:column;gap:4px;display:flex}.fieldrow{gap:6px;display:flex}.lbl{color:var(--muted);letter-spacing:.02em;font-size:11px}.sel{appearance:none;border:1px solid var(--hair);background:var(--raised) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%231a1916' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 11px center / 10px 6px;height:36px;color:var(--ink);font-family:var(--mono);cursor:pointer;border-radius:18px;outline:none;padding:0 30px 0 12px;font-size:13px}.sel:focus{border-color:var(--ink)}body.sky .sel,body.photo .sel{background-color:#fff9;border-color:#ffffffbf}.switchlbl{color:var(--ink);font-size:12px}.paperrow{gap:8px;width:100%;display:flex}.paperrow.locked{opacity:.38}@media (width<=759px){.paperrow{display:none}}@media (width>=760px){.field.phone{display:none}}.octval{text-align:center;min-width:28px;font-size:13px;line-height:36px}.bpmin.tune{width:62px;height:36px}@media (width>=760px){.bpmin.tune{height:40px}}.tapbtn.locked{opacity:.38}@media (width<=759px){.field.adv,.tapbtn,.prorow #octave{display:none}}@media (width>=760px){.octval{line-height:40px}}.prorow #octave{cursor:pointer;flex:none;width:154px;max-width:none;height:36px}@media (width>=760px){.prorow #octave{height:40px}}.tip{z-index:70;background:var(--ink);color:var(--paper);font-family:var(--mono);white-space:nowrap;pointer-events:none;opacity:0;border-radius:7px;padding:5px 9px;font-size:11.5px;line-height:1.3;transition:opacity .12s;position:fixed}.tip.show{opacity:1}#octave{background:var(--raised);touch-action:none;border:1px solid #cfcabd80;border-radius:10px;flex:auto;width:100%;max-width:224px;height:34px}.glyphs .btn svg{width:14px;height:14px}.piano{flex-direction:column;gap:8px;width:100%;display:flex}.piano[hidden]{display:none}.pianobar{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.btn.word{border-radius:20px;width:auto;padding:0 14px;font-size:12px}.slot{color:var(--ink);font-size:13px}.pianobar .glyphs{margin-left:6px}.pianohint{color:var(--muted);text-align:center;flex:1;font-size:11px}#keys{touch-action:none;border-radius:12px;width:100%;height:150px;display:block}.helpbtn{width:30px;height:30px;color:var(--muted);font-size:14px;position:absolute;top:50%;left:0;transform:translateY(-50%)}.getpill{background:var(--record);color:#fff;height:40px;font-family:var(--mono);white-space:nowrap;border-radius:22px;align-items:center;padding:0 20px;font-size:15px;text-decoration:none;display:inline-flex;box-shadow:0 2px 10px #d85a3047}.getpill:active{transform:scale(.97)}@media (display-mode:standalone){.getpill{display:none}}.railmeta{display:none}.byline{color:var(--muted);font-size:12px;line-height:1.6;display:none}.byline a{color:var(--ink)}@media (width>=760px){.byline{max-width:150px;margin-top:8px;display:block}.helpbtn{width:30px;height:30px;font-size:13px}}.helpbtn.on{color:var(--paper)}@keyframes helpglow{0%{box-shadow:0 0 0 2px #d85a3026}to{box-shadow:0 0 0 5px #d85a3073}}body.help .btn:not(.helpbtn),body.help .swatch,body.help .recpill,body.help input[type=range]{animation:1.2s ease-in-out infinite alternate helpglow}.hintbubble{z-index:60;background:var(--raised);border:1px solid var(--hair);max-width:min(340px,100vw - 32px);color:var(--ink);border-radius:12px;padding:10px 14px;font-size:13px;line-height:1.5;display:none;position:fixed;top:56px;left:50%;transform:translate(-50%);box-shadow:0 8px 24px #0000001a}body.help .hintbubble.show{display:block}@media (width>=760px){.helpbtn{align-self:flex-start;position:static;transform:none}}.foot{flex-direction:column;align-items:center;gap:8px;margin-top:auto;padding-top:6px;display:flex}.pubcard{z-index:50;background:var(--raised);border:1px solid var(--hair);border-radius:14px;flex-direction:column;gap:8px;width:min(320px,100vw - 40px);padding:12px;display:flex;position:fixed;top:40%;left:50%;transform:translate(-50%,-50%);box-shadow:0 10px 30px #0000001f}.pubcard[hidden]{display:none}.pubcard input{border:1px solid var(--hair);background:var(--paper);height:38px;color:var(--ink);font-family:var(--mono);border-radius:10px;outline:none;padding:0 12px;font-size:14px}@media (width<=759px){.codecard input,.pubcard input,.bpmin,.sel{font-size:16px}}.pubcard input:focus{border-color:var(--ink)}.pubrow{justify-content:flex-end;gap:8px;display:flex}.pubscrim{z-index:49;background:#00000005;position:fixed;inset:0}.pubscrim[hidden]{display:none}.pillrow{gap:10px;display:none}body.can-record .pillrow{display:flex}.recpill{border:1px solid var(--hair);background:var(--raised);height:38px;color:var(--ink);font-family:var(--mono);cursor:pointer;border-radius:22px;align-items:center;gap:7px;padding:0 16px;font-size:15px;display:inline-flex}.recpill[hidden]{display:none}.recpill:active{transform:scale(.97)}.recpill .dot{background:var(--record);border-radius:50%;width:9px;height:9px}.recpill .stopsq{background:var(--record);border-radius:2px;width:11px;height:11px}.recpill.busy{opacity:.55;pointer-events:none}body.sky .recpill,body.photo .recpill{background:#fff9;border-color:#ffffffbf}.foot .more{color:var(--ink);text-align:center;margin:0;font-size:13px;line-height:1.5}.foot .more a{color:var(--ink)}@media (display-mode:standalone){.foot .more{display:none}}.foot .credit{color:var(--muted);text-align:center;padding:0 14px;font-size:12px;line-height:1.6}.foot .credit a{color:var(--ink)}@media (height<=640px){.foot .credit{display:none}}@media (width>=760px){body{padding:16px 20px 14px}.app{grid-template:"title canvas""rail canvas"1fr"rail deck""rail bar""piano piano"/162px 1fr;align-items:start;gap:14px 22px;width:100%;max-width:none;height:100%;display:grid}.prodeck{grid-area:deck;gap:12px}.prodeck .prorow{grid-template-columns:repeat(5,max-content);justify-content:start;align-items:end;gap:12px 24px;display:grid}.paperrow{gap:15px;width:auto}.sel{height:40px}.titlebar{flex-direction:column;grid-area:title;align-items:flex-start;gap:10px}.title{font-size:14px;line-height:20px}.switch{position:relative;top:auto;right:auto;transform:none}.canvas-wrap{aspect-ratio:auto;grid-area:canvas;align-self:stretch;width:100%;height:100%;min-height:0;max-height:none}.rail{grid-area:rail;align-self:stretch;gap:18px;width:162px;padding:0 6px;overflow-y:auto}.railmeta{flex-direction:column;align-items:flex-start;gap:14px;margin-top:auto;display:flex}.row.tools{grid-template-columns:repeat(3,40px);gap:15px;width:auto;display:grid}.palette{grid-template-columns:repeat(3,40px);justify-content:start;gap:15px;width:auto;display:grid}#p3{display:none}.swatch{flex:none;width:40px;height:40px}.btn{width:40px;height:40px}.bar{flex-flow:wrap;grid-area:bar;justify-content:flex-start;align-items:center;gap:14px 22px;padding-top:2px}.bar .transport input[type=range]{width:130px}.pianobar{gap:12px}.pianohint{text-align:right;font-size:12px}.bgcard{bottom:48px;left:0;right:auto}.getpill{height:36px;padding:0 16px;font-size:13px}.piano{grid-area:piano}#keys{height:170px}.foot{display:contents}.foot .pillrow,.foot .credit{display:none}}
