:root{--keys:clamp(72px, 13vh, 112px);--bg:#fbfaf7;--surface:#fff;--text:#1d1c1a;--muted:#6b675f;--line:#e4e0d8;--accent:#2f5d8a;--selected:#2f5d8a24;--playing:#d6962847;--error:#a3302a;--t-hard:#c83c3229;--t-changed:#2f6ebe29;--t-basic:#c8961e38;--t-adaptation:#8246b42e;--t-conflict:#c83c3238;--t-pending:#78787829;--t-suspect:#de781438;--t-selected:#2f5d8a;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root{--bg:#1b1a18;--surface:#24231f;--text:#ece9e2;--muted:#a39e94;--line:#3a3833;--accent:#8db7e0;--selected:#8db7e033;--playing:#e6aa3c4d;--error:#f08a80;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0;font:15px/1.4 system-ui,-apple-system,Segoe UI,sans-serif;overflow:hidden}#app{flex-direction:column;width:100vw;height:100dvh;display:flex}#app>main{flex:auto;min-height:0;overflow:hidden auto}html[data-turn] #app{transform-origin:0 0;width:100dvh;height:100vw;position:fixed;top:0;left:0}html[data-turn="90"] #app{transform:translate(100vw)rotate(90deg)}html[data-turn="270"] #app{transform:translateY(100vh)rotate(-90deg)}@supports (height:100dvh){html[data-turn="270"] #app{transform:translateY(100dvh)rotate(-90deg)}}.turn{margin-left:auto;padding:4px 10px;font-size:18px;line-height:1}h1,h2{margin:0}h1{font-size:18px}h2{margin:16px 0 8px;font-size:15px;font-weight:600}a{color:var(--accent);text-decoration:none}button{font:inherit;border:1px solid var(--line);background:var(--surface);color:var(--text);cursor:pointer;border-radius:6px;padding:7px 12px}button.primary{background:var(--accent);border-color:var(--accent);color:var(--bg)}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.top{background:var(--bg);border-bottom:1px solid var(--line);align-items:center;gap:12px;padding:10px 16px;display:flex}.top .title{flex-direction:column;min-width:0;display:flex}.top .title strong,.top .title .meta{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.back{white-space:nowrap}.meta,.composer,.status{color:var(--muted);font-size:13px}.error{color:var(--error)}.library{max-width:900px;margin:0 auto;padding:0 16px 32px}.pieces{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:8px;display:grid}.pieces[hidden]{display:none}.piece{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:8px;flex-direction:column;gap:6px;padding:10px;display:flex}@media (hover:hover) and (pointer:fine){.piece:hover{border-color:var(--accent)}}.piece-text{flex-direction:column;min-width:0;display:flex}.thumb{background:#fff;border-radius:4px;min-height:60px;max-height:120px;overflow:hidden}.thumb svg{width:100%;height:auto;display:block}.thumb.empty{background:var(--line)}.upload p{color:var(--muted);margin:0 0 8px;font-size:13px}.pieces.own:not(:empty){margin-bottom:12px}.piece{position:relative}.piece .delete,.piece .rename{z-index:1;background:var(--surface);opacity:.85;padding:0 8px;font-size:18px;line-height:26px;position:absolute;top:6px;right:6px}.piece .rename{font-size:15px;right:44px}.piece-actions{flex-wrap:wrap;align-items:center;gap:6px;margin-top:4px;display:flex}.piece-actions .scan-score{margin-top:0}.scan-score.clickable{cursor:pointer}.piece-action{border-radius:6px;padding:3px 9px;font-size:12px}.transport{min-width:38px}.icon{vertical-align:-.14em;fill:none;stroke:currentColor;stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round;width:1em;height:1em;margin-right:.4em}.icon-only .icon{margin-right:0}.icon-quarter,.icon-eighth,.icon-sixteenth{fill:currentColor}button.icon-only{justify-content:center;align-items:center;display:inline-flex}.back{align-items:center;display:inline-flex}html.offline .top:after{content:"Offline";background:var(--t-basic);color:var(--text);white-space:nowrap;border-radius:999px;margin-left:8px;padding:1px 8px;font-size:12px}.sticky{z-index:2;flex:none;position:relative}.controls{background:var(--bg);border-bottom:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:8px;padding:8px 16px;display:flex}.tempo{max-width:100%;color:var(--muted);flex-wrap:nowrap;align-items:center;gap:6px;font-size:13px;display:inline-flex}.tempo input{width:96px;accent-color:var(--accent);flex:0 0 96px}.tempo-mark{color:var(--text);white-space:nowrap;font-variant-numeric:tabular-nums;font-size:14px}.tempo-reset{flex:none;padding:2px 8px;font-size:14px}.tempo-reset[hidden]{display:none}.downloads{color:var(--muted);font-size:13px}.scan-note{max-width:900px;color:var(--error);flex-wrap:wrap;align-items:center;gap:4px;margin:8px auto 0;padding:6px 16px;font-size:13px;display:flex}.scan-note button{padding:4px 10px;font-size:13px}.scan-note[hidden]{display:none}.photo{flex-wrap:wrap;align-items:center;gap:8px;display:inline-flex}.import-preview{border:1px solid var(--line);background:var(--surface);border-radius:8px;flex-direction:column;flex-basis:100%;gap:10px;width:100%;margin-top:6px;padding:12px;display:flex}.import-preview[hidden]{display:none}.import-cards{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;display:grid}.page-card{border:1px solid var(--line);background:var(--bg);border-radius:6px;flex-direction:column;gap:6px;margin:0;padding:8px;display:flex}.page-card-head{justify-content:space-between;align-items:center;font-size:13px;display:flex}.page-card-actions{align-items:center;gap:4px;display:flex}.page-card-actions button{padding:3px 7px;font-size:13px}.page-preview-wrap{aspect-ratio:4/3;border:1px solid var(--line);background:#fff;border-radius:4px;place-items:center;width:100%;height:180px;display:grid;position:relative;overflow:hidden}.page-preview-wrap img{object-fit:contain;width:100%;height:100%;display:block}.page-preview-wrap .pdf{text-align:center;word-break:break-all;color:#333;padding:8px;font-size:12px}.crop-box{border:2px dashed var(--accent);pointer-events:none;position:absolute;box-shadow:0 0 0 999px #00000047}.crop-box[hidden]{display:none}.crop-controls{border:1px solid var(--line);background:var(--surface);border-radius:6px;grid-template-columns:1fr 1fr;gap:6px 10px;padding:6px 8px;display:grid}.crop-controls[hidden]{display:none}.crop-edge{color:var(--muted);justify-content:space-between;align-items:center;gap:6px;font-size:12px;display:flex}.crop-edge input{width:84px;accent-color:var(--accent)}.page-hints{flex-wrap:wrap;gap:4px;display:flex}.page-hints:empty{display:none}.page-hint{background:var(--t-basic);color:var(--text);border-radius:999px;padding:1px 6px;font-size:11px}.import-footer{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.login{gap:10px;max-width:320px;margin:40px auto;display:grid}.login h2,.login p{margin:0}.login .code{font:inherit;letter-spacing:.08em;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:6px;padding:10px;font-size:20px}.keyboard{height:var(--keys);box-sizing:border-box;-webkit-user-select:none;user-select:none;scrollbar-width:none;background:#000;flex:none;overflow:auto hidden}.keyboard::-webkit-scrollbar{display:none}.keyboard .keys{width:100%;max-width:1248px;height:100%;margin:0 auto;position:relative}.keyboard[hidden]{display:none}.keyboard .whites{height:100%;display:flex}.keyboard .white{background:linear-gradient(#f4f1e9 0,#fffffd 38%,#f7f4ec 86%,#ded9cd 94%,#b4ae9f 100%);border-right:1px solid #16161a;border-radius:0 0 5px 5px;flex:1;position:relative;box-shadow:inset 0 1px #fffffff2,inset -1px 0 #ffffffd9,inset 1px 0 #0000000f,0 3px 4px #0000008c}.keyboard .middle-c:after{content:"";background:#b9b2a4;border-radius:50%;width:6px;height:6px;margin-left:-3px;position:absolute;bottom:6px;left:50%}.keyboard .black{z-index:1;background:linear-gradient(#55555e 0,#2a2a31 14%,#17171c 62%,#0b0b0f 88%,#2e2e36 96%,#000 100%);border-radius:0 0 4px 4px;height:64%;position:absolute;top:0;box-shadow:inset 1px 0 #ffffff29,inset -1px 0 #000c,0 4px 6px #000000bf}.keyboard .white.right{background:linear-gradient(#b6d8fb 0%,#6ba8ea 28%,#4f8fd6 74%,#3872b5 92%,#244f82 100%);box-shadow:inset 0 1px #ffffffc7,inset 0 -2px #1026428c,0 0 14px #4f8fd6c7,0 2px 3px #0000008c}.keyboard .white.left{background:linear-gradient(#fbe0bc 0%,#ebac60 28%,#d99242 74%,#b57126 92%,#824d14 100%);box-shadow:inset 0 1px #ffffffc7,inset 0 -2px #4024088c,0 0 14px #d99242c7,0 2px 3px #0000008c}.keyboard .black.right{background:linear-gradient(#8ec2f8 0%,#4f8fd6 44%,#3168a6 84%,#1e436e 95%,#122944 100%);box-shadow:inset 1px 1px #ffffff85,inset -1px -1px #0a182abf,0 0 12px #4f8fd6c7,0 3px 5px #000000a6}.keyboard .black.left{background:linear-gradient(#f4be7e 0%,#d99242 44%,#ad6b22 84%,#784712 95%,#4a2b09 100%);box-shadow:inset 1px 1px #ffffff85,inset -1px -1px #2a1806bf,0 0 12px #d99242c7,0 3px 5px #000000a6}.keyboard .white.wrong{background:linear-gradient(#f8cbc6 0%,#e47d73 32%,#c9534a 82%,#9e3931 94%,#70241e 100%);box-shadow:inset 0 1px #ffffffb3,0 0 14px #c9534acc,0 2px 3px #0000008c}.keyboard .black.wrong{background:linear-gradient(#e07c72 0%,#c9534a 48%,#96352e 88%,#5e1e19 100%);box-shadow:inset 1px 1px #ffffff73,0 0 12px #c9534abf,0 3px 5px #000000a6}.keyboard .white.own{background:linear-gradient(#c2dffb 0%,#7cb2ea 32%,#5c98d9 82%,#3f76b3 94%,#295280 100%);box-shadow:inset 0 1px #ffffffbf,0 0 12px #5c98d9b3,0 2px 3px #0000008c}.keyboard .black.own{background:linear-gradient(#8ec2f5 0%,#5894d4 48%,#386ca6 88%,#1f4168 100%);box-shadow:inset 1px 1px #ffffff7a,0 0 11px #5c98d9a6,0 3px 5px #000000a6}.keyboard .key[data-finger]:before{content:attr(data-finger);text-align:center;pointer-events:none;font-weight:700;line-height:1;position:absolute;left:0;right:0}.keyboard .white[data-finger]:before{color:#5b5750;font-size:12px;bottom:14px}.keyboard .white.right[data-finger]:before,.keyboard .white.left[data-finger]:before,.keyboard .white.own[data-finger]:before,.keyboard .white.gradient[data-finger]:before,.keyboard .white.wrong[data-finger]:before{color:#fff;text-shadow:0 1px 2px #0000008c;font-size:13px}.keyboard .middle-c.right:after,.keyboard .middle-c.left:after,.keyboard .middle-c.own:after,.keyboard .middle-c.gradient:after{background:#ffffffd9}.keyboard .black[data-finger]:before{color:#ffffffe0;font-size:10px;bottom:5px}.keyboard.playable{touch-action:none}.keys-toggle[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}.practice{background:var(--bg);border-bottom:1px solid var(--line);flex-wrap:wrap;gap:6px;padding:6px 16px;display:flex}.practice[hidden]{display:none}button.toggle{padding:5px 12px;font-size:14px}button.toggle[aria-pressed=true]{border-color:var(--accent);color:var(--accent);background:var(--selected)}.practice-toggle[aria-pressed=true],.practice-toggle.active{border-color:var(--accent);color:var(--accent)}.tempo-tap{touch-action:manipulation;-webkit-user-select:none;user-select:none;flex:none;padding:4px 12px;font-size:13px}line.playhead{stroke:#d2501e;stroke-width:2.5px;vector-effect:non-scaling-stroke;pointer-events:none}.piece-view{min-height:120px;padding:4px 0 24px}.piece-view[hidden]{display:none!important}.stage.full-stage{flex-direction:column;flex:auto;min-height:0;display:flex;position:relative}.stage.full-stage .lane{flex:auto;height:auto;min-height:140px;max-height:none}.score{width:100%;max-width:1200px;margin:0 auto}.score>svg{background:#fff;max-width:100%;height:auto;margin:0 auto;display:block}rect.bar-hit{fill:#0000;cursor:pointer;pointer-events:all;stroke:none!important}.score rect.bar-hit.selected{fill:var(--selected)}rect.bar-hit.hard{fill:var(--t-hard)}rect.bar-hit.changed{fill:var(--t-changed)}rect.bar-hit.basic{fill:var(--t-basic)}rect.bar-hit.adaptation{fill:var(--t-adaptation)}rect.bar-hit.conflict{fill:var(--t-conflict)}rect.bar-hit.pending{fill:var(--t-pending)}.rows rect.bar-hit.selected{stroke-width:2px;vector-effect:non-scaling-stroke;stroke:var(--t-selected)!important}rect.bar-hit.suspect{fill:var(--t-suspect)}rect.bar-hit.error-bar{fill:var(--t-conflict)}rect.bar-hit.playing{fill:var(--playing)}rect.bar-hit.flow-hesitate{fill:#da982229}rect.bar-hit.flow-slip{fill:#d44e4229}rect.bar-hit.selected.flow-hesitate{fill:#da982240}rect.bar-hit.selected.flow-slip{fill:#d44e4240}.check-view{padding:8px 12px 24px}.check-view>*{max-width:1280px;margin-left:auto;margin-right:auto}.check-toolbar{background:var(--bg);border-bottom:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:6px 10px;padding:6px 16px;display:flex}.check-toolbar-right{flex-wrap:wrap;align-items:center;gap:6px;margin-left:auto;display:flex}.issue-strip{background:var(--bg);border-bottom:1px solid var(--line);scrollbar-width:thin;align-items:center;gap:6px;padding:6px 16px;display:flex;overflow-x:auto}.issue-strip[hidden]{display:none}.issue-strip>button{white-space:nowrap;flex-shrink:0}.scan-score{color:#1d1c1a;font-variant-numeric:tabular-nums;border-radius:999px;padding:2px 10px;font-size:14px;font-weight:600}.scan-score.good{background:#9fd3a4}.scan-score.fair{background:#f0c979}.scan-score.poor{background:#eba49c}.piece .scan-score{align-self:flex-start;margin-top:4px;padding:1px 8px;font-size:12px}.page-chip{font-variant-numeric:tabular-nums;border-radius:999px;padding:2px 9px;font-size:12px}.bar-chip{background:var(--t-suspect);font-variant-numeric:tabular-nums;border-color:#0000;border-radius:999px;padding:2px 10px;font-size:12px}.bar-chip.error{background:var(--t-conflict);border-color:var(--error);font-weight:600}.bar-chip.warning{background:var(--t-suspect)}a.button{white-space:nowrap;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:6px;flex-shrink:0;align-items:center;padding:6px 10px;font-size:14px;display:inline-flex}a.button.primary{background:var(--accent);border-color:var(--accent);color:var(--bg)}.check-lines{flex-direction:column;gap:12px;display:flex}.check-line{border-bottom:1px solid var(--line);gap:6px;padding-bottom:12px;display:grid}.compare-col{flex-direction:column;gap:3px;min-width:0;display:flex}.check-lines.hide-line-scans .original-col{display:none}@media (width>=860px){.check-lines:not(.hide-line-scans) .check-line.has-photo{grid-template-columns:1fr 1fr;align-items:start;gap:8px 14px}.check-lines:not(.hide-line-scans) .check-line.has-photo .whys{grid-column:1/-1}}.page-crop{width:100%;box-shadow:inset 4px 0 0 var(--muted);background-color:#fff;background-repeat:no-repeat;border-radius:4px;position:relative;overflow:hidden}.cap{margin-top:2px;font-size:12px;font-weight:600;line-height:16px}.cap.original{color:var(--muted)}.cap.read{color:var(--accent)}.cap.read+.cell{box-shadow:inset 4px 0 0 var(--accent)}.page-crop .bar-hit{cursor:pointer;border-right:1px dashed #2f5d8a40;position:absolute;top:0;bottom:0}.page-crop .bar-hit.suspect{background:var(--t-suspect)}.page-crop .bar-hit.error-bar{background:var(--t-conflict)}.page-crop .bar-hit.playing{background:var(--playing)}.page-crop .bar-hit.selected,.check-line rect.bar-hit.selected{box-shadow:inset 0 0 0 2px var(--t-selected)}.check-line rect.bar-hit.selected{stroke-width:2px;vector-effect:non-scaling-stroke;stroke:var(--t-selected)!important}.whys{flex-wrap:wrap;gap:4px;display:flex}.whys:empty{display:none}.panel.editor{gap:6px;max-height:74%;padding:8px 12px 12px}.editor-head-left{flex-wrap:wrap;align-items:center;gap:6px;min-width:0;display:flex}.editor-bar-nav{white-space:nowrap;flex:none;align-items:center;gap:6px;display:inline-flex}.editor-compare{grid-template-columns:1fr;gap:6px;display:grid}@media (width<=600px){.panel.editor .editor-scan-slot{display:none}.editor-toolbar button,.editor-drawer button{min-width:38px;min-height:40px;padding:6px 9px}.tool-group.drawers{width:100%;margin-left:0}}@media (width>=860px){.editor-compare:has(.editor-scan-slot:not([hidden])){grid-template-columns:minmax(220px,38%) 1fr;align-items:center;gap:12px}}.editor-scan-slot{flex-direction:column;gap:2px;min-width:0;display:flex}.editor-scan-slot[hidden]{display:none}.editor-scan-slot .page-crop{max-height:92px}.edit-bar{min-height:100px}.edit-bar>svg{max-width:100%;height:auto;display:block}.edit-bar g.note{cursor:pointer}.edit-bar path.tie-on{stroke:#000;stroke-linecap:round;fill:none!important}.edit-bar g.note.picked path.tie-on{stroke:#1f6fd1}.edit-bar rect.note-hit{pointer-events:all;fill:#0000!important;stroke:none!important}.edit-bar g.note.picked,.edit-bar g.rest.picked,.edit-bar g.mRest.picked{fill:#1f6fd1!important;color:#1f6fd1!important}.edit-bar g.note.picked rect.note-hit,.edit-bar g.rest.picked rect.note-hit,.edit-bar g.mRest.picked rect.note-hit{stroke-width:2px;vector-effect:non-scaling-stroke;fill:#1f6fd138!important;stroke:#1f6fd1!important}.picked-row{align-items:center;gap:6px;display:flex}.readout{color:var(--accent);border:none;border-bottom:1px dashed var(--accent);text-align:left;background:0 0;border-radius:0;padding:2px 0;font-size:15px;font-weight:600}.readout[hidden],.note-entry[hidden]{display:none}.note-entry{min-width:0;font:inherit;border:1px solid var(--accent);background:var(--bg);color:var(--text);border-radius:6px;flex:1;padding:5px 8px;font-size:16px}.fixes,.note-tools{flex-wrap:wrap;gap:5px;display:flex}.fixes[hidden]{display:none}.fixes button{padding:4px 9px;font-size:13px}.editor-toolbar{flex-wrap:wrap;align-items:center;gap:6px 10px;display:flex}.tool-group{flex-wrap:wrap;align-items:center;gap:4px;display:inline-flex}.tool-group.drawers{margin-left:auto}.editor-toolbar button,.editor-drawer button{min-width:34px;padding:5px 9px;font-size:14px}.editor-toolbar button[aria-pressed=true],.editor-drawer button[aria-pressed=true]{border-color:var(--accent);color:var(--accent);background:var(--selected)}.editor-toolbar .icon{width:1.15em;height:1.15em}.editor-drawer{border:1px solid var(--line);background:var(--bg);border-radius:6px;flex-wrap:wrap;align-items:center;gap:6px;padding:6px 8px;display:flex}.editor-drawer[hidden]{display:none}.editor-drawer.keys-drawer{background:#000;padding:4px}.editor .keyboard{flex:none;width:100%;height:52px}.head-tools{flex-wrap:wrap;align-items:center;gap:4px;display:flex}.help-toggle{border-radius:50%;width:28px;height:28px;padding:0;font-size:15px;font-weight:700;line-height:1}.help-toggle[aria-pressed=true]{border-color:var(--accent);color:var(--accent);background:var(--selected)}.editor-help{border:1px solid var(--line);background:var(--surface);border-radius:8px;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px 18px;padding:10px 12px;font-size:13px;display:grid}.editor-help[hidden]{display:none}.editor-help h3{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin:0 0 4px;font-size:13px}.editor-help dl{margin:0}.editor-help dt{margin-top:6px;font-weight:600}.editor-help dt:first-child{margin-top:0}.editor-help dd{color:var(--muted);margin:1px 0 0}kbd{text-align:center;border:1px solid var(--line);background:var(--bg);min-width:1.4em;color:var(--text);border-bottom-width:2px;border-radius:4px;padding:0 5px;font:600 12px/18px ui-monospace,monospace;display:inline-block}.why{border-color:var(--t-suspect);background:var(--surface);text-align:left;padding:2px 8px;font-size:13px}.why.error{border-color:var(--error);background:var(--t-conflict)}.why.warning{border-color:var(--t-suspect)}.why.ok{border-color:var(--line);color:var(--muted);background:var(--surface)}.bar-chip.ok{border-color:var(--line);color:var(--muted);background:0 0}.fine{color:var(--muted);font-size:13px}.describe{border:1px solid var(--line);background:var(--surface);border-radius:8px;max-width:900px;margin:8px auto 12px;padding:12px 16px}.describe h2{margin-top:0}.describe textarea{width:100%;font:inherit;border:1px solid var(--line);background:var(--bg);color:var(--text);resize:vertical;border-radius:6px;padding:8px;font-size:16px}.limits{border:none;border-top:1px solid var(--line);grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:4px 16px;margin:10px 0;padding:8px 0 0;display:grid}.limits legend{color:var(--muted);padding:0 6px 0 0;font-size:13px}.grade-row{color:var(--muted);align-items:center;gap:8px;margin-top:10px;font-size:13px;display:flex}.grade,.meter select,.see select{font:inherit;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:6px;padding:5px 8px;font-size:16px}.meter{color:var(--muted);align-items:center;gap:6px;font-size:13px;display:flex}.limit{align-items:center;gap:6px;font-size:14px;display:flex}.limit input{width:16px;height:16px;accent-color:var(--accent)}.actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.session-view{padding:8px 12px 16px}.session-view>*{max-width:1400px;margin-left:auto;margin-right:auto}.rows{flex-direction:column;gap:6px;display:flex}.row{grid-template-columns:1fr;gap:4px;display:grid}.rows.side .row{grid-template-columns:1fr 1fr;gap:12px}.cell{background:#fff;border-radius:4px;position:relative;overflow:hidden}.cell>svg{max-width:100%;height:auto;display:block}.cols-2 .cell:before{content:attr(data-label);z-index:1;color:#8a857c;pointer-events:none;font-size:11px;position:absolute;top:2px;right:6px}.cols-2 .cell.proposal{box-shadow:inset 3px 0 0 var(--accent)}.rows:not(.side).cols-2 .row{border-bottom:1px solid var(--line);padding-bottom:6px}.conflicts{flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:10px;display:flex}.conflicts[hidden]{display:none}.decide{border-color:var(--error);border-radius:999px;padding:3px 10px;font-size:13px}.conflict-card{border:1px solid var(--error);background:var(--surface);border-radius:8px;flex-direction:column;gap:6px;padding:10px 12px;display:flex}.conflict-card p{margin:0}.conflict-card.decided{border-color:var(--line);opacity:.8}.panel{z-index:3;background:var(--surface);border-top:1px solid var(--line);flex-direction:column;flex:none;gap:8px;max-height:45%;padding:10px 16px 14px;display:flex;overflow-y:auto;box-shadow:0 -4px 16px #0000001f}.panel>*{flex-shrink:0}.panel[hidden]{display:none}.panel p{margin:0}.panel-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px;display:flex}.panel .close{background:0 0;border:none;padding:0 6px;font-size:20px}.panel .reason{font-size:16px}.note{color:var(--muted);font-size:13px}.note.warn{color:var(--error)}.repeats{color:var(--muted);font-size:13px}.phrase{border:1px dashed var(--line);border-radius:6px;gap:6px;padding:8px;display:grid}.badge{background:var(--line);color:var(--text);border-radius:999px;margin-right:6px;padding:1px 8px;font-size:12px;display:inline-block}.badge.changed{background:var(--t-changed)}.badge.basic{background:var(--t-basic)}.badge.adaptation{background:var(--t-adaptation)}.badge.conflict,.badge.warn{background:var(--t-conflict)}.badge.pending{background:var(--t-pending)}.stage{flex:none;position:sticky;bottom:0}.lane[hidden]{display:none}.lane{z-index:1;-webkit-user-select:none;user-select:none;touch-action:none;background:#05070d;width:100%;height:34vh;min-height:120px;max-height:320px;position:relative}.lane canvas{pointer-events:none;width:100%;height:100%;display:block;position:absolute;top:0;left:0}.stage:has(.keyboard:not([hidden])) .lane canvas{height:calc(100% + var(--keys))}.keyboard.pressing .key.right,.keyboard.pressing .key.left,.keyboard.pressing .key.gradient{transform:translateY(var(--key-dip,3px));filter:brightness(var(--vel-bright,1))}.keyboard.pressing .white.right,.keyboard.pressing .white.left,.keyboard.pressing .white.gradient{box-shadow:inset 0 4px 5px #0000004d,0 0 12px #ffffff1f}.keyboard.pressing .black.right,.keyboard.pressing .black.left,.keyboard.pressing .black.gradient{box-shadow:inset 0 4px 5px #00000073,0 1px 2px #0009}.see{color:var(--muted);align-items:center;gap:6px;font-size:13px;display:inline-flex}.seg-group{border:1px solid var(--line);border-radius:7px;display:inline-flex;overflow:hidden}.seg-group .seg{background:var(--surface);min-height:32px;color:var(--muted);cursor:pointer;border:0;border-radius:0;padding:6px 11px;font-size:13px}.seg-group .seg+.seg{border-left:1px solid var(--line)}.seg-group .seg[aria-pressed=true]{background:var(--accent);color:#fff;font-weight:600}.modebar{background:var(--bg);border-bottom:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:8px;padding:6px 16px;display:flex}.tally{color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums;margin-left:auto;font-size:15px}.tally b{color:var(--text);font-size:18px}.practice-pill{border:1px solid var(--accent);background:var(--surface);min-height:28px;color:var(--accent);border-radius:999px;padding:4px 10px;font-size:13px;font-weight:600}.practice-pill.active{background:var(--accent);color:#fff}.lane.no-lane{text-align:center;color:var(--muted);justify-content:center;align-items:center;padding:0 16px;font-size:13px;display:flex}.controls.big{border-bottom:1px solid var(--line);flex-wrap:nowrap;gap:6px;padding:6px 16px}.controls.big button{white-space:nowrap;min-height:44px;padding:6px 12px;font-size:15px}.controls.big button svg{width:18px;height:18px}.more{margin-left:auto}.more>summary{border:1px solid var(--line);background:var(--surface);min-height:36px;color:var(--text);cursor:pointer;white-space:nowrap;border-radius:6px;align-items:center;padding:6px 10px;font-size:13px;list-style:none;display:inline-flex}.more>summary::-webkit-details-marker{display:none}.more>summary:after{content:" ▾"}.more[open]>summary{border-color:var(--accent);color:var(--accent)}.more[open]>summary:after{content:" ▴"}.more>summary:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.more-sheet{z-index:10;background:var(--bg);border-bottom:1px solid var(--line);position:absolute;top:100%;left:0;right:0;box-shadow:0 8px 20px #0000002e}.more-sheet .controls,.more-sheet .practice{border-bottom:none;padding-top:6px}@media (width<=600px),(height<=740px){:root{--keys:clamp(60px, 10vh, 88px)}.top{gap:8px;padding:6px 12px}.modebar,.controls,.practice{gap:6px;padding:5px 12px}.controls.big{gap:5px;padding:5px 12px}.controls.big button{min-height:40px;padding:6px 10px;font-size:14px}.more>summary{min-height:34px;padding:5px 8px;font-size:13px}.lane{height:22vh;min-height:100px}}.free-sticky{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;background:#020305}.free-sticky[data-sentiment=joyful]{background:#040204}.free-sticky[data-sentiment=nostalgic]{background:#030206}.free-sticky[data-sentiment=energetic]{background:#040202}.free-sticky[data-sentiment=dreamy]{background:#020405}.free-sticky .top{color:#e2e8f0db;background:0 0;border-bottom:none}.free-sticky .back{color:#93c5fdd9}.free-sticky .meta{color:#94a3b8c7}.free-sticky button,.free-sticky .sentiment-select{color:#e2e8f0db;background:#ffffff0d;border-color:#ffffff21}.free-sticky button[aria-pressed=true]{color:#e0f2fe;background:#7db3ee2e;border-color:#93c5fd73}.free-sticky .sentiment-select option{color:#f1f5f9;background:#0f1420}.free-view{background:#020305;flex-direction:column;display:flex;overflow:hidden!important}.free-top,.practice-top{scrollbar-width:none;flex-wrap:nowrap;gap:8px 10px;overflow-x:auto}.free-top::-webkit-scrollbar{display:none}.practice-top::-webkit-scrollbar{display:none}.free-top>*,.practice-top>*{flex:none}.free-top .title,.practice-top .title{flex:1 1 0;min-width:72px}.free-top .turn,.practice-top .turn{margin-left:0}.dim-btn{text-align:center;min-width:44px}.sound-btn{text-align:center;white-space:nowrap;min-width:98px}.listen-btn{white-space:nowrap;justify-content:center;align-items:center;width:90px;min-width:90px;display:inline-flex}.loop-btn{white-space:nowrap;font-variant-numeric:tabular-nums;justify-content:center;align-items:center;width:120px;min-width:120px;display:inline-flex}.bar-stepper .bar-step{justify-content:center;align-items:center;min-width:34px;padding:6px 8px;display:inline-flex}.free-readout.free-hud{z-index:3;pointer-events:none;color:#93c5fde0;white-space:nowrap;font-variant-numeric:tabular-nums;align-items:center;gap:10px;height:24px;font-size:15px;line-height:24px;display:flex;position:absolute;top:8px;left:16px;right:16px;overflow:hidden}.free-readout.free-hud[hidden]{display:none!important}.prac-hud-bar{color:#e2e8f0db;text-overflow:ellipsis;flex:0 0 132px;width:132px;height:24px;font-weight:600;line-height:24px;overflow:hidden}.prac-hud-phase{color:#93c5fde6;flex:0 0 80px;width:80px;height:24px;font-weight:500;line-height:24px}.prac-hud-phase[data-phase=listen]{color:#fcd34d}.prac-hud-hint{color:#94a3b8b8;text-overflow:ellipsis;flex:1 1 0;min-width:0;height:24px;font-size:13px;font-weight:400;line-height:24px;overflow:hidden}.free-nuance{text-align:left;color:#e2e8f0d1;letter-spacing:.02em;flex:0 0 26px;width:26px;height:24px;font-family:Georgia,Times New Roman,serif;font-size:15px;font-style:italic;font-weight:600;line-height:24px}.free-pedal{text-align:left;text-overflow:ellipsis;color:#e2a25b;flex:0 0 116px;width:116px;height:24px;font-family:Georgia,Times New Roman,serif;font-size:14px;font-style:italic;font-weight:500;line-height:24px;overflow:hidden}.free-notes{text-align:left;text-overflow:ellipsis;white-space:nowrap;flex:1 1 0;min-width:0;height:24px;line-height:24px;overflow:hidden}.free-stage{background:#020305;flex-direction:column;flex:auto;min-height:0;display:flex;position:relative}.free-stage[data-sentiment=joyful]{background:#040204}.free-stage[data-sentiment=nostalgic]{background:#030206}.free-stage[data-sentiment=energetic]{background:#040202}.free-stage[data-sentiment=dreamy]{background:#020405}.free-stage .lane{background:0 0;flex:auto;height:auto;min-height:140px;max-height:none}.free-stage .keyboard{background:0 0;overflow-x:hidden}.free-stage .keyboard .keys{width:100%;min-width:0!important;max-width:none!important}.sentiment-select{font:inherit;border:1px solid var(--line);background:var(--surface);color:var(--text);cursor:pointer;border-radius:6px;flex:0 0 108px;width:108px;min-height:34px;padding:5px 9px;font-size:14px}.sentiment-select.style-select{flex:0 0 144px;width:144px}.keyboard .white.pedaled:not(.gradient):not(.left):not(.right):not(.wrong):not(.own):not(.prompt){background:linear-gradient(180deg, var(--ped-back) 0%, var(--ped-mid) 48%, #f7f4ec 86%, #ded9cd 94%, #b4ae9f 100%);box-shadow:inset 0 1px 0 #ffffffeb, inset -1px 0 0 #ffffffd1, 0 0 10px var(--ped-glow), 0 3px 4px #0000008c}.keyboard .black.pedaled:not(.gradient):not(.left):not(.right):not(.wrong):not(.own):not(.prompt){background:linear-gradient(180deg, var(--ped-ebony-hi) 0%, var(--ped-ebony-mid) 44%, #17171c 74%, #0b0b0f 90%, #000 100%);box-shadow:inset 1px 1px 0 #ffffff47, 0 0 9px var(--ped-glow), 0 4px 6px #000000bf}.keyboard .white.prompt:not(.gradient):not(.left):not(.right):not(.wrong):not(.own){background:linear-gradient(180deg, #f8fafc 0%, var(--p-hi) 42%, var(--p-mid) 90%, #cbd5e1 100%);box-shadow:inset 0 1px 0 #ffffffe6, 0 0 10px var(--p-glow), 0 3px 4px #00000080}.keyboard .black.prompt:not(.gradient):not(.left):not(.right):not(.wrong):not(.own){background:linear-gradient(180deg, var(--p-mid) 0%, #2a3344 58%, #141923 92%, #000 100%);box-shadow:inset 1px 1px 0 #ffffff6b, 0 0 9px var(--p-glow), 0 4px 6px #000000b8}.keyboard .white.gradient{background:linear-gradient(180deg, var(--k-hi) 0%, var(--k-light) 28%, var(--k-mid) 74%, var(--k-lo) 92%, var(--k-deep) 100%);box-shadow:inset 0 1px 0 #fffc, inset 0 -2px 0 #00000073, 0 0 14px var(--k-glow), 0 2px 3px #0000008c}.keyboard .black.gradient{background:linear-gradient(180deg, var(--k-light) 0%, var(--k-mid) 44%, var(--k-lo) 84%, var(--k-deep) 95%, var(--k-abyss) 100%);box-shadow:inset 1px 1px 0 #ffffff85, inset -1px -1px 0 #000000a6, 0 0 12px var(--k-glow), 0 3px 5px #000000a6}.practice-top .more{margin-left:0}.midi-badge:not(:empty):before{content:" · "}.practice-row-inline{align-items:center;gap:8px;display:inline-flex}.practice-top button.primary.listening{background:var(--surface);color:var(--accent);border-color:var(--accent)}.practice-stage{background:#020305}.practice-stage[data-sentiment=joyful]{background:#040204}.practice-stage[data-sentiment=nostalgic]{background:#030206}.practice-stage[data-sentiment=energetic]{background:#040202}.practice-stage[data-sentiment=dreamy]{background:#020405}.practice-stage .lane,.practice-stage .keyboard{background:0 0}.free-sticky .more>summary{color:#e2e8f0db;background:#ffffff0d;border-color:#ffffff21}.free-sticky .seg-group{border-color:#ffffff24}.free-sticky .seg-group .seg{color:#cbd5e1d1;background:#ffffff0a;border-color:#ffffff1f}.free-sticky .seg-group .seg[aria-pressed=true]{color:#f0f9ff;background:#7db3ee3d}.free-sticky .more-sheet,.free-sticky .more-sheet .controls{color:#e2e8f0e0;background:#0c101b;border-color:#ffffff1f}.free-sticky .more-sheet .tempo-mark,.free-sticky .more-sheet .see,.free-sticky .more-sheet .downloads{color:#cbd5e1d9}.undo-free-btn{white-space:nowrap;justify-content:center;align-items:center;width:78px;min-width:78px;display:inline-flex}.write-score-btn{white-space:nowrap;justify-content:center;align-items:center;width:116px;min-width:116px;display:inline-flex}.orig-listen-btn{white-space:nowrap;justify-content:center;align-items:center;min-width:108px;display:inline-flex}.write-edit-bars-btn{white-space:nowrap;text-align:center;min-width:92px}.write-top{flex-wrap:nowrap;align-items:center;gap:8px;padding:8px 12px}.write-top>*{flex:none}.write-more{margin-left:0}.write-title-input{min-width:0;max-width:340px;font:inherit;border:1px solid var(--line);background:var(--surface);color:var(--text);text-overflow:ellipsis;border-radius:6px;flex:80px;padding:6px 9px;font-size:16px;font-weight:600;overflow:hidden}.write-play-btn{white-space:nowrap;justify-content:center;align-items:center;gap:4px;min-width:72px;min-height:36px;padding:6px 10px;display:inline-flex}.write-select{font:inherit;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:6px;min-height:36px;padding:5px 8px;font-size:16px}.write-save-btn{white-space:nowrap;text-align:center;min-width:64px;min-height:36px;padding:6px 12px;font-weight:600}@media (width<=520px){.write-back{gap:0;padding:6px 8px;font-size:0}.write-back .icon{width:18px;height:18px;margin:0}}.write-empty{text-align:center;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:14px;padding:32px 16px;display:flex}.write-main{background:var(--bg);flex:auto;min-height:0;padding:10px 10px 20px;overflow-y:auto}.write-status{max-width:1120px;margin:0 auto 6px;display:block}.write-paper{color:#111;border:1px solid var(--line);background:#fff;border-radius:8px;max-width:1120px;min-height:200px;margin:0 auto;padding:8px 4px}.write-paper>svg{width:100%;height:auto;display:block}.write-paper rect.bar-hit{cursor:pointer;fill:#0000!important;stroke:none!important}.write-paper rect.bar-hit.selected{fill:#2f5d8a0d!important;stroke:#2f5d8a59!important;stroke-width:14px!important}.write-paper rect.bar-hit.playing{fill:#d9770624!important;stroke:#d97706a6!important;stroke-width:20px!important}.write-paper g.note,.write-paper g.rest{cursor:pointer}.write-paper rect.write-note-hit{pointer-events:all;fill:#0000!important;stroke:none!important}.write-paper rect.write-cursor-box{pointer-events:none;fill:#2563eb1c!important;stroke:#2563eb6b!important;stroke-width:18px!important}.write-paper rect.write-cursor-box.playing{fill:#d9770629!important;stroke:#d9770680!important}.write-paper g.note.write-active,.write-paper g.rest.write-active{fill:#1d6fe8!important;color:#1d6fe8!important}.write-paper g.note.write-playing,.write-paper g.rest.write-playing{fill:#c26a0c!important;color:#c26a0c!important}.write-dock{z-index:4;padding:8px 12px max(10px, env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line);flex:none}.write-dock>*{width:100%;max-width:760px;margin:0 auto}.write-mini-keys{border-radius:6px;height:64px;overflow:hidden;margin-bottom:6px!important}.write-mini-keys[hidden],.write-normal-dock[hidden],.write-submode-row[hidden]{display:none!important}.write-normal-dock{flex-direction:column;gap:6px;display:flex}.write-dock-top{align-items:center;gap:6px;width:100%;display:flex}.write-dock-top button,.write-dock-top .seg{white-space:nowrap;min-height:44px}.write-stepper{flex:auto;align-items:center;min-width:0;display:flex}.write-stepper .bar-step{flex:0 0 36px;justify-content:center;align-items:center;min-width:36px;min-height:44px;padding:6px;display:inline-flex}.write-cursor-readout{text-align:center;font-variant-numeric:tabular-nums;border-left:1px solid var(--line);background:var(--surface);min-width:68px;height:44px;color:var(--text);text-overflow:ellipsis;white-space:nowrap;flex:auto;padding:0 6px;font-size:13px;font-weight:600;line-height:44px;display:block;overflow:hidden}.write-replay-trigger{color:var(--accent);border-color:var(--accent);font-variant-numeric:tabular-nums;flex:none;padding:6px 10px;font-size:13px;font-weight:600}.write-tap-trigger{flex:none;padding:6px 10px;font-size:13px;font-weight:600}.write-icon-btn{flex:0 0 42px;justify-content:center;align-items:center;min-width:42px;padding:6px;display:inline-flex}.write-dock-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;width:100%;display:grid}.write-grid-btn{justify-content:center;align-items:center;min-width:0;min-height:44px;padding:6px 2px;font-size:18px;font-weight:700;display:inline-flex}.write-grid-btn .icon{width:20px;height:20px}.write-grid-btn[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:#fff}.write-dot-cell{font-size:22px;line-height:1}.write-preset-group .seg{padding:6px 10px;font-size:14px}.write-clean-btn{text-align:center;font-variant-numeric:tabular-nums;min-width:102px;padding:6px 10px;font-size:14px}.write-clean-btn[aria-pressed=true]{background:var(--selected);border-color:var(--accent);color:var(--accent);font-weight:600}.write-submode-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.write-submode-actions{align-items:center;gap:6px;margin-left:auto;display:inline-flex}.write-submode-row button{min-height:44px}.write-tap-pad{touch-action:manipulation;-webkit-user-select:none;user-select:none;text-align:center;flex:200px;padding:10px 14px;font-size:15px;font-weight:600}.write-tap-progress,.write-replay-status{color:var(--text);font-variant-numeric:tabular-nums;padding:0 4px;font-size:14px;font-weight:600}.write-mod-btn{padding:6px 12px;font-size:14px}@media (hover:none) and (pointer:coarse){input,select,textarea{font-size:16px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}
