:root{color:#16181d;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;--ink:#16181d;--muted:#68707c;--faint:#f6f7f9;--line:#e4e7ec;--line-strong:#c5cbd3;--accent:#2563eb;--accent-soft:#edf4ff;--accent-mid:#cfe1ff;--success:#16a34a;--success-soft:#e8f7ee;--danger:#dc2626;--danger-soft:#fff1f1;--white:#fff;--black:#000;background:#fff;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#root{background:#fff;width:100%;height:100%;margin:0;overflow:hidden}button,input,select{font:inherit}button{-webkit-tap-highlight-color:#fff}button:focus{outline:none}button:focus-visible{outline-offset:2px;outline:2px solid #2563eb}.hidden{display:none}.app-shell{--topbar-height:64px;--keyboard-height:max(176px, 31vh);--controls-gap:14px;grid-template-rows:var(--topbar-height) minmax(0, 1fr) var(--keyboard-height);background:#fff;width:100%;height:100%;display:grid;position:relative}.topbar{z-index:6;height:var(--topbar-height);background:#fff;border-bottom:1px solid #e4e7ec;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;padding:10px 18px;display:grid;position:relative}.topbar-left,.topbar-right{align-items:center;gap:10px;min-width:0;display:flex}.topbar-right{justify-content:flex-end}.topbar-right .flat-button{font-size:14px;line-height:1}.score-title{color:#16181d;letter-spacing:0;text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:18px;font-weight:700;overflow:hidden}.flat-button{color:#16181d;cursor:pointer;white-space:nowrap;background:#fff;border:2px solid #e4e7ec;border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:0 14px;font-weight:700;text-decoration:none;transition:background .15s,border-color .15s,color .15s;display:inline-flex}.flat-button:hover,.midi-option:hover,.library-option:hover,.tempo-option:hover{color:#2563eb;background:#f6f7f9;border-color:#2563eb}.flat-button:disabled{color:#a7adb7;cursor:not-allowed;background:#fff;border-color:#e4e7ec}.import-button,.midi-button,.library-button,.score-zoom-button,.tempo-button{border-color:#c5cbd3}.github-link{color:#000;border:0;width:42px;padding:0}.github-link:hover{color:#000;background:#f6f7f9;border:0}.score-zoom-control,.tempo-control{position:relative}.score-zoom-button{min-width:106px;padding-inline:12px 10px}.tempo-button{min-width:116px;padding-inline:12px 10px}.tempo-button.active{color:#2563eb;background:#edf4ff;border-color:#2563eb}.score-zoom-button:hover,.score-zoom-button.active{color:#16181d;background:#f6f7f9;border-color:#68707c}.score-zoom-button svg:first-child,.score-zoom-button-chevron,.tempo-button svg:first-child,.tempo-button-chevron{color:#68707c;transition:color .15s,transform .15s}.tempo-button:hover svg:first-child,.tempo-button:hover .tempo-button-chevron,.tempo-button.active svg:first-child,.tempo-button.active .tempo-button-chevron{color:#2563eb}.score-zoom-button:hover svg:first-child,.score-zoom-button:hover .score-zoom-button-chevron,.score-zoom-button.active svg:first-child,.score-zoom-button.active .score-zoom-button-chevron{color:#16181d}.score-zoom-button.active .score-zoom-button-chevron,.tempo-button.active .tempo-button-chevron{transform:rotate(180deg)}.score-zoom-button-value,.tempo-button-value,.tempo-option-value{font-variant-numeric:tabular-nums;text-align:right;min-width:32px;font-weight:800}.score-zoom-button-value{min-width:42px}.tempo-button-unit,.tempo-option-unit{color:#68707c;font-size:12px;font-weight:800}.tempo-button:hover .tempo-button-unit,.tempo-button.active .tempo-button-unit{color:#2563eb}.status-dot{border-radius:50%;width:8px;height:8px;display:inline-block}.status-dot.ready{background:#16a34a}.status-dot.requesting{background:#68707c}.status-dot.idle{background:#a7adb7}.midi-control,.library-control{position:relative}.midi-panel,.library-panel,.score-zoom-panel,.tempo-panel{z-index:12;background:#fff;border:1px solid #16181d14;border-radius:8px;width:min(270px,100vw - 20px);padding:6px;position:absolute;top:48px;right:0;box-shadow:0 18px 48px #16181d1f,0 2px 8px #16181d0f}.midi-panel p,.library-panel p{color:#68707c;margin:0;padding:10px 12px;font-size:14px}.midi-option,.library-option,.tempo-option{color:#16181d;cursor:pointer;text-align:left;background:0 0;border:0;border-radius:6px;width:100%;min-height:38px;margin:0;transition:background .14s,color .14s;display:grid}.tempo-panel{width:min(210px,100vw - 20px);left:0;right:auto}.score-zoom-panel{width:min(184px,100vw - 20px);padding:10px 12px;left:0;right:auto}.score-zoom-slider-row{align-items:center;display:flex}.score-zoom-range{appearance:none;cursor:pointer;background:0 0;width:100%;height:26px;margin:0;display:block}.score-zoom-range::-webkit-slider-runnable-track{background:linear-gradient(90deg, var(--accent-mid) 0 var(--score-zoom-progress,38%), var(--line) var(--score-zoom-progress,38%) 100%);border-radius:999px;height:5px}.score-zoom-range::-webkit-slider-thumb{appearance:none;background:var(--accent);border:3px solid #fff;border-radius:50%;width:16px;height:16px;margin-top:-5.5px;box-shadow:0 2px 7px #16181d1f}.score-zoom-range::-moz-range-track{background:var(--line);border:0;border-radius:999px;height:5px}.score-zoom-range::-moz-range-progress{background:var(--accent-mid);border-radius:999px;height:5px}.score-zoom-range::-moz-range-thumb{background:var(--accent);border:3px solid #fff;border-radius:50%;width:16px;height:16px;box-shadow:0 2px 7px #16181d1f}.score-zoom-range:hover::-webkit-slider-runnable-track{background:linear-gradient(90deg, var(--accent-mid) 0 var(--score-zoom-progress,38%), var(--line-strong) var(--score-zoom-progress,38%) 100%)}.score-zoom-range:hover::-moz-range-track{background:var(--line-strong)}.score-zoom-range:hover::-moz-range-progress{background:var(--accent-mid)}.score-zoom-range:focus-visible{outline:2px solid var(--accent);outline-offset:4px}.library-panel{width:min(360px,100vw - 20px)}.library-option,.tempo-option{grid-template-columns:minmax(0,1fr) 18px;align-items:center;gap:10px;min-height:42px;padding:9px 11px;font-size:14px;font-weight:700}.midi-option{grid-template-columns:minmax(0,1fr) 18px;align-items:center;gap:10px;padding:0 11px;font-size:14px;font-weight:650}.midi-option svg,.library-option svg,.tempo-option svg{color:#2563eb;stroke-width:2.5px;justify-self:end}.midi-option span,.library-option-title,.tempo-option-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tempo-option-label{align-items:baseline;gap:6px;min-width:0;display:inline-flex}.library-option-title{color:#16181d}.library-option:hover .library-option-title,.library-option.active .library-option-title,.tempo-option:hover .tempo-option-value,.tempo-option:hover .tempo-option-unit,.tempo-option.active .tempo-option-value,.tempo-option.active .tempo-option-unit{color:#2563eb}.midi-option.active,.library-option.active,.tempo-option.active{color:#2563eb;background:#edf4ff}.notice-strip{top:var(--topbar-height);z-index:20;color:#dc2626;background:#fff1f1;border:1px solid #dc2626;border-radius:8px;max-width:min(720px,100vw - 32px);min-height:34px;padding:8px 14px;font-size:14px;font-weight:700;position:absolute;left:50%;transform:translate(-50%)}.practice-controls{bottom:calc(var(--keyboard-height) + var(--controls-gap));z-index:11;background:0 0;border:0;align-items:center;gap:10px;min-height:48px;padding:0;display:inline-flex;position:absolute;left:50%;transform:translate(-50%)}.practice-play-button,.practice-hand-button{color:#16181d;cursor:pointer;background:#fff;border:2px solid #c5cbd3;border-radius:8px;transition:background .15s,border-color .15s,color .15s}.practice-hand-button:hover{color:#2563eb;background:#f6f7f9;border-color:#2563eb}.practice-play-button:hover{color:#fff;background:#1d4ed8;border-color:#1d4ed8}.practice-play-button{color:#fff;background:#2563eb;border-color:#2563eb;border-radius:50%;justify-content:center;align-items:center;width:48px;height:48px;display:inline-flex}.practice-hand-button{color:#68707c;letter-spacing:0;justify-content:center;align-items:center;min-width:68px;height:44px;padding:0 14px;font-size:14px;font-weight:700;display:inline-flex}.practice-hand-button.active{color:#2563eb;background:#edf4ff;border-color:#2563eb}.practice-hand-button.active:hover{color:#2563eb;background:#cfe1ff}.score-panel{background:#fff;min-height:0;position:relative;overflow:hidden}.empty-score-hint{z-index:4;color:#68707c;letter-spacing:0;pointer-events:none;white-space:nowrap;font-size:15px;font-weight:650;position:absolute;top:48%;left:50%;transform:translate(-50%,-50%)}.score-scroll{overscroll-behavior:contain;scrollbar-width:none;touch-action:pan-x;background:#fff;border-bottom:1px solid #e4e7ec;width:100%;height:100%;overflow:auto hidden}.score-scroll::-webkit-scrollbar{display:none}.score-scroll-progress{z-index:8;pointer-events:none;background:#fff;height:7px;position:absolute;bottom:0;left:0;right:0}.score-scroll-progress-bar{background:#2563eb;width:100%;height:100%;transition:width .12s}.score-surface{background:#fff;min-width:100%;height:100%;position:relative}.osmd-host{background:#fff;align-items:center;min-width:100%;height:100%;padding:0 22px;display:flex;position:absolute;inset:0 auto auto 0}.osmd-host svg{max-width:none}.score-render-error{z-index:7;color:#dc2626;background:#fff1f1;border:1px solid #dc2626;border-radius:8px;padding:10px 14px;font-size:14px;font-weight:700;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.score-overlay{-webkit-user-select:none;user-select:none;touch-action:none;min-width:100%;height:100%;position:absolute;inset:0 auto auto 0}.score-overlay.resizing-selection{cursor:ew-resize}.progress-line{background:#2563eb;width:2px;animation:.22s ease-out progressEnter;position:absolute}.note-hit-zone{cursor:pointer;background:0 0;border:0;border-radius:0;padding:0;display:block;position:absolute}.note-hit-zone:focus-visible{outline:none}.score-frame{pointer-events:none;background:0 0;border:3px solid #2563eb;border-radius:8px;transition:border-color .12s,width .12s,left .12s;position:absolute}.score-frame.hovered,.score-frame.selected,.score-frame.loop-active{border-color:#2563eb}.selection-resize-handle{z-index:8;cursor:ew-resize;touch-action:none;color:#2563eb;opacity:.82;background:0 0;border:0;justify-content:center;align-items:center;width:36px;min-height:42px;padding:0;transition:color .12s,opacity .12s,transform .12s;display:inline-flex;position:absolute}.selection-resize-handle-start{transform:translate(-100%)}.selection-resize-handle-end{transform:translate(0)}.selection-resize-handle svg{stroke-width:3px;width:20px;height:20px}.selection-resize-handle:hover,.selection-resize-handle:focus-visible{color:#1d4ed8;opacity:1}.selection-resize-handle-start:hover,.selection-resize-handle-start:focus-visible{transform:translate(-100%)scale(1.08)}.selection-resize-handle-end:hover,.selection-resize-handle-end:focus-visible{transform:translate(0)scale(1.08)}.selection-resize-handle:focus-visible{outline-offset:-2px;outline:2px solid #2563eb}.selection-box{pointer-events:none;background:0 0;border:2px solid #2563eb;border-radius:8px;position:absolute}.selection-action-button{z-index:7;color:#2563eb;cursor:pointer;background:#fffffff0;border:1px solid #cfe1ff;border-radius:50%;justify-content:center;align-items:center;width:40px;height:40px;padding:0;transition:background .12s,border-color .12s,color .12s,transform .12s;display:inline-flex;position:absolute;transform:translate(-50%)scale(1);box-shadow:0 6px 18px #16181d1a}.selection-action-button svg{stroke-width:3px;width:20px;height:20px}.selection-action-button:hover{color:#1d4ed8;background:#edf4ff;border-color:#2563eb;transform:translate(-50%)scale(1.08)}.selection-action-button:focus-visible{outline-offset:1px;outline:2px solid #2563eb}.app-shell[data-has-coarse-pointer=true] .selection-resize-handle{width:44px;min-height:44px}.app-shell[data-has-coarse-pointer=true] .selection-action-button{width:44px;height:44px}.midi-note-layer{z-index:5;pointer-events:none;position:absolute;inset:0}.midi-score-note{width:0;height:0;animation:.14s ease-out midiNoteIn;position:absolute}.midi-notehead{background:#fff;border:3px solid #16a34a;border-radius:50%;width:19px;height:13px;position:absolute;top:0;left:0;transform:translate(-50%,-50%)rotate(-18deg)}.midi-ledger-line{background:#16a34a;width:29px;height:3px;position:absolute;left:0;transform:translate(-50%,-50%)}.keyboard-shell{background:#fff;min-height:0;padding:0}.keyboard{touch-action:none;background:#fff;border-top:1px solid #c5cbd3;width:100%;height:100%;min-height:176px;position:relative}.white-key-row{height:100%;display:flex}.piano-key{color:#16181d;justify-content:center;align-items:flex-end;transition:background .13s,color .13s;display:flex;position:relative}.white-key{background:#fff;border-bottom:1px solid #c5cbd3;border-right:1px solid #d9dde3;height:100%}.white-key:first-child{border-left:1px solid #d9dde3}.black-key-row{pointer-events:none;position:absolute;inset:0}.black-key{color:#fff;pointer-events:auto;background:#16181d;border:1px solid #000;border-top:0;border-radius:0 0 4px 4px;height:61%;position:absolute;top:0}.piano-key span{color:#2563eb;border-radius:999px;justify-content:center;align-items:center;min-width:28px;height:24px;margin-bottom:8px;font-size:12px;font-weight:800;display:inline-flex}.black-key span{color:#fff;min-width:24px;height:20px;margin-bottom:7px;font-size:10px}.piano-key.key-target{color:#fff;background:#2563eb;border-color:#2563eb}.piano-key.key-pressed{color:#fff;background:#16a34a;border-color:#16a34a}.piano-key.key-correct{color:#fff;background:#16a34a;border-color:#16a34a;animation:.24s ease-out keyHit}.piano-key.key-target span,.piano-key.key-pressed span,.piano-key.key-correct span{color:#fff}@keyframes keyHit{0%{background:#2ecc71}to{background:#16a34a}}@keyframes progressEnter{0%{background:#cfe1ff}to{background:#2563eb}}@keyframes midiNoteIn{0%{transform:scale(.82)}to{transform:scale(1)}}.app-shell[data-layout-mode=natural-long-edge]{width:100%;height:100%;transform:none}.app-shell[data-layout-mode=rotated-long-edge]{width:var(--viewport-long-edge);height:var(--viewport-short-edge);transform-origin:0 0;transform:rotate(90deg)translateY(-100%)}.app-shell[data-size-class=compact]{--topbar-height:52px;--keyboard-height:clamp(96px, calc(var(--viewport-short-edge) * .26), 128px);--controls-gap:8px}.app-shell[data-size-class=regular]{--topbar-height:56px;--keyboard-height:clamp(118px, calc(var(--viewport-short-edge) * .22), 168px);--controls-gap:10px}.app-shell[data-size-class=compact] .topbar,.app-shell[data-size-class=regular] .topbar{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:7px 10px}.app-shell[data-size-class=compact] .flat-button,.app-shell[data-size-class=regular] .flat-button{gap:6px;min-width:42px;min-height:38px;padding:0 10px}.app-shell[data-size-class=compact] .topbar-right .flat-button,.app-shell[data-size-class=regular] .topbar-right .flat-button{font-size:13px}.app-shell[data-size-class=compact] .flat-button span:not(.status-dot):not(.tempo-button-value):not(.score-zoom-button-value),.app-shell[data-size-class=compact] .score-title{display:none}.app-shell[data-size-class=compact] .score-zoom-button{gap:6px;min-width:82px;padding-inline:8px}.app-shell[data-size-class=compact] .tempo-button{gap:6px;min-width:76px;padding-inline:8px}.app-shell[data-size-class=compact] .midi-panel,.app-shell[data-size-class=compact] .library-panel,.app-shell[data-size-class=compact] .score-zoom-panel,.app-shell[data-size-class=compact] .tempo-panel,.app-shell[data-size-class=regular] .midi-panel,.app-shell[data-size-class=regular] .library-panel,.app-shell[data-size-class=regular] .score-zoom-panel,.app-shell[data-size-class=regular] .tempo-panel{top:44px}.app-shell[data-size-class=compact] .practice-controls,.app-shell[data-size-class=regular] .practice-controls{gap:8px;min-height:44px;padding:0}.app-shell[data-size-class=compact] .practice-play-button,.app-shell[data-size-class=regular] .practice-play-button{width:44px;height:44px}.app-shell[data-size-class=compact] .practice-hand-button,.app-shell[data-size-class=regular] .practice-hand-button{min-width:54px;height:38px;padding:0 8px}.app-shell[data-size-class=compact] .keyboard,.app-shell[data-size-class=regular] .keyboard{min-height:0}.app-shell[data-size-class=compact] .black-key,.app-shell[data-size-class=regular] .black-key{height:58%}.app-shell[data-size-class=compact] .piano-key span,.app-shell[data-size-class=regular] .piano-key span{min-width:22px;height:19px;margin-bottom:5px;font-size:10px}.app-shell[data-size-class=compact] .black-key span,.app-shell[data-size-class=regular] .black-key span{min-width:20px;height:17px;margin-bottom:4px;font-size:9px}
