:root{--bg:#f7f5f0;--surface:#fff;--text:#1c2230;--muted:#667085;--line:#dcd8cf;--accent:#1d3557;--accent-text:#fff;--highlight:#e76f51;--info-bg:#eef4fb;--error-bg:#fdecea;--radius:12px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;-webkit-text-size-adjust:100%;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}@media (prefers-color-scheme:dark){:root{--bg:#12151c;--surface:#1b2029;--text:#e8eaef;--muted:#98a2b3;--line:#2d3442;--accent:#8fb3e8;--accent-text:#0c1220;--info-bg:#1b2a3d;--error-bg:#3a1d1d;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}.score-host{background:#f7f5f0;border-radius:8px}}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);overscroll-behavior:none}button,select,input{font:inherit;color:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.transport{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.hold-btn{touch-action:none}.screen{flex-direction:column;max-width:900px;height:100%;margin:0 auto;display:flex}.center{text-align:center;padding:2rem}.muted{color:var(--muted)}.small{font-size:.85rem}.topbar{padding:calc(env(safe-area-inset-top) + .5rem) .75rem .5rem;border-bottom:1px solid var(--line);background:var(--surface);align-items:center;gap:.5rem;display:flex}.topbar h1{white-space:nowrap;text-overflow:ellipsis;margin:0;font-size:1.15rem;overflow:hidden}.title-block{flex-direction:column;flex:1;min-width:0;display:flex}.icon-btn{border:1px solid var(--line);background:var(--surface);border-radius:22px;place-items:center;min-width:44px;height:44px;padding:0 .6rem;font-size:1.2rem;display:inline-grid}.chip{border:1px solid var(--line);background:var(--surface);white-space:nowrap;border-radius:18px;min-height:36px;padding:.3rem .8rem}.chip.on{background:var(--accent);color:var(--accent-text);border-color:var(--accent)}.chip.on .muted{color:inherit;opacity:.8}.primary{background:var(--accent);color:var(--accent-text);border-radius:var(--radius);border:none;padding:.6rem 1rem;font-weight:600}.wide{width:100%;min-height:48px;margin-top:.75rem}.link{color:var(--accent);text-align:left;background:0 0;border:none;padding:.4rem 0;text-decoration:underline}.banner{border-radius:var(--radius);margin:.5rem .75rem;padding:.6rem .8rem;font-size:.9rem}.banner.info{background:var(--info-bg)}.banner.error{background:var(--error-bg)}.library-main{padding:0 1rem 2rem;overflow-y:auto}.library-main h2{color:var(--muted);margin:1.25rem 0 .5rem;font-size:1rem}.song-list,.sample-list{margin:0;padding:0;list-style:none}.song-list li{align-items:center;gap:.5rem;margin-bottom:.5rem;display:flex}.song{text-align:left;border-radius:var(--radius);border:1px solid var(--line);background:var(--surface);flex-direction:column;flex:1;gap:.15rem;padding:.75rem 1rem;display:flex}.song-title{font-size:1.05rem;font-weight:600}.picker{flex-direction:column;gap:.6rem;padding:1rem;display:flex}.picker h2{font-size:1.1rem}.part-btn{border-radius:var(--radius);border:1px solid var(--line);background:var(--surface);justify-content:space-between;padding:1rem;font-size:1.1rem;display:flex}.practice-main{flex-direction:column;flex:1;min-height:0;display:flex}.score-scroll,.lyrics-scroll{-webkit-overflow-scrolling:touch;flex:1;padding:.5rem;overflow-y:auto}.score-host{min-height:200px}.lyrics-scroll{padding:.5rem .75rem 40vh}.lyric-line{text-align:left;border:none;border-bottom:1px solid var(--line);background:0 0;align-items:baseline;gap:.75rem;width:100%;padding:.6rem 0;display:flex}.bar-no{color:var(--muted);text-align:right;min-width:1.8rem;font-size:.85rem}.words{font-size:1.6rem;line-height:1.35}.syl.done{color:var(--muted)}.syl.current{color:var(--highlight);font-weight:700}.transport{border-top:1px solid var(--line);background:var(--surface);padding:.5rem .75rem calc(env(safe-area-inset-bottom) + .5rem);flex-direction:column;gap:.4rem;display:flex}.transport .row{align-items:center;gap:.5rem;display:flex}.controls{justify-content:center}.tempo{flex-wrap:wrap;justify-content:center}.tempo-value{text-align:center;min-width:3.2rem;font-weight:600}.bar-slider{flex-direction:column;gap:.1rem;width:100%;display:flex}.bar-slider input{width:100%}.count-in{color:var(--highlight);font-weight:600}.play{background:var(--accent);width:64px;height:64px;color:var(--accent-text);border:none;border-radius:32px;font-size:1.5rem}.sheet-backdrop{z-index:10;background:#00000059;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--surface);width:100%;max-width:640px;max-height:85vh;padding:.75rem 1rem calc(env(safe-area-inset-bottom) + 1rem);border-radius:16px 16px 0 0;overflow-y:auto}.sheet-head{background:var(--surface);justify-content:space-between;align-items:center;padding:.5rem 0;display:flex;position:sticky;top:-.75rem}.sheet-head h2{margin:0;font-size:1.15rem}.sheet section{border-bottom:1px solid var(--line);padding:.5rem 0 .75rem}.sheet h3{color:var(--muted);margin:.25rem 0 .5rem;font-size:.9rem}.chips{flex-wrap:wrap;gap:.4rem;display:flex}.field{justify-content:space-between;align-items:center;gap:.75rem;min-height:44px;display:flex}.field select{border:1px solid var(--line);background:var(--bg);border-radius:8px;min-height:36px;padding:0 .5rem}.field input[type=checkbox]{width:22px;height:22px}.stepper{align-items:center;gap:.4rem;display:inline-flex}.stepper-value{text-align:center;min-width:2rem;font-weight:600}.mixer{flex-direction:column;gap:.3rem;margin-top:.5rem;display:flex}.mixer-row{grid-template-columns:6.5rem 1fr auto;align-items:center;gap:.5rem;display:grid}.mixer-name{font-size:.9rem}.export-actions{flex-direction:column;gap:.4rem;padding-top:.75rem;display:flex}.file-name{background:var(--bg);border-radius:8px;align-self:flex-start;padding:.4rem .6rem;font-size:.95rem}.no-notation{padding:1rem}.row-buttons{align-items:center;gap:.5rem;margin:.5rem 0;display:flex}.mic-info{margin-top:.5rem}.mic-live{flex-direction:column;gap:1rem;margin:1rem 0;display:flex}.meter{background:var(--line);border-radius:6px;height:12px;overflow:hidden}.meter-fill{background:var(--accent);height:100%;transition:width 60ms linear}.pitch-readout{border-radius:var(--radius);background:var(--surface);border:1px solid var(--line);grid-template-rows:auto auto;grid-template-columns:auto 1fr auto;align-items:center;gap:.25rem 1rem;min-height:120px;padding:1rem;display:grid}.pitch-note{grid-row:span 2;font-size:3rem;font-weight:700}.pitch-cents{font-size:1.3rem}.pitch-arrow{grid-row:span 2;font-size:3rem}.pitch-readout.hit .pitch-arrow,.pitch-readout.hit .pitch-cents{color:#2a9d8f}.pitch-readout.close .pitch-arrow,.pitch-readout.close .pitch-cents{color:#e9a23b}.pitch-readout.miss .pitch-arrow,.pitch-readout.miss .pitch-cents{color:#d62828}.sing-panel{border-top:1px solid var(--line);background:var(--surface);grid-template-rows:auto auto;grid-template-columns:1fr auto;gap:.25rem .5rem;padding:.4rem .5rem;display:grid}.sing-strip{background:var(--bg);border-radius:8px;grid-area:1/1;width:100%;height:26vh;min-height:150px}.sing-arrow{border:2px solid var(--line);text-align:center;border-radius:12px;flex-direction:column;grid-area:1/2;justify-content:center;align-items:center;width:6.5rem;display:flex}.sing-arrow-icon{font-size:3.4rem;line-height:1}.sing-arrow-text{flex-direction:column;font-weight:700;display:flex}.sing-arrow-text small{color:var(--muted);font-size:.8rem;font-weight:400}.sing-arrow.hit{color:#2a9d8f;border-color:#2a9d8f}.sing-arrow.close{color:#e9a23b;border-color:#e9a23b}.sing-arrow.miss{color:#d62828;border-color:#d62828}.sing-status{grid-area:2/1/auto/span 2;justify-content:space-between;gap:.5rem;display:flex}.sing-status .link{font-size:inherit;padding:0}.chip.sing.on{color:#fff;background:#d62828;border-color:#d62828}.bar-grid{grid-template-columns:repeat(auto-fill,minmax(3.2rem,1fr));gap:.35rem;display:grid}.bar-cell{text-align:center;border:1px solid var(--line);background:var(--bg);border-radius:8px;padding:.35rem .2rem}.bar-cell .n{color:var(--muted);font-size:.75rem;display:block}.bar-cell .s{font-weight:700}.bar-cell.good{color:#12332f;background:#d8f0ec;border-color:#2a9d8f}.bar-cell.mid{color:#3b2a0c;background:#fbecd2;border-color:#e9a23b}.bar-cell.bad{color:#3d0d0d;background:#f9d9d9;border-color:#d62828}.big-number{font-size:2.2rem;font-weight:700}.pass-list{flex-wrap:wrap;gap:.4rem;display:flex}.calib-dots{gap:.4rem;margin:.75rem 0;display:flex}.calib-dot{border:2px solid var(--line);border-radius:11px;width:22px;height:22px}.calib-dot.on{background:var(--highlight);border-color:var(--highlight)}.calib-dot.done{background:var(--accent);border-color:var(--accent)}button:disabled{opacity:.45;cursor:not-allowed}.mic-record{flex-direction:column;align-items:flex-start;gap:.5rem;margin:1rem 0;display:flex}.rec-result{flex-direction:column;align-items:flex-start;gap:.35rem;display:flex}.delay-ctl{align-items:center;gap:.35rem;display:inline-flex}.mini{border:1px solid var(--line);background:var(--surface);border-radius:14px;min-width:32px;height:28px;padding:0 .4rem}.progress-grid{align-items:center;gap:3px;margin:.5rem 0;display:grid}.progress-day{color:var(--muted);text-align:center;writing-mode:vertical-rl;justify-self:center;font-size:.7rem;transform:rotate(180deg)}.progress-bar-label{text-align:right;padding-right:.3rem;font-size:.85rem}.progress-cell{background:var(--bg);border:1px solid var(--line);border-radius:4px;place-items:center;min-height:1.4rem;font-size:.7rem;display:grid}.progress-cell.good{color:#12332f;background:#d8f0ec;border-color:#2a9d8f}.progress-cell.mid{color:#3b2a0c;background:#fbecd2;border-color:#e9a23b}.progress-cell.bad{color:#3d0d0d;background:#f9d9d9;border-color:#d62828}.progress-cell.overall{font-weight:700}.wide-chip{width:100%;min-height:40px}.import-photo{margin-top:.5rem}.photo-thumbs{flex-wrap:wrap;gap:.5rem;margin-bottom:.5rem;display:flex}.photo-thumb{width:7rem;margin:0}.photo-thumb img{border:1px solid var(--line);border-radius:6px;width:100%}.photo-thumb figcaption{overflow-wrap:anywhere;font-size:.75rem}.pdf-badge{border:1px solid var(--line);border-radius:6px;place-items:center;height:5rem;font-weight:700;display:grid}.notes-input,.key-input,.title-input,.lyric-input{width:100%;font:inherit;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:8px;padding:.5rem}.title-input{max-width:16rem}.lyric-input{max-width:9rem}.reading{text-align:center;padding:2rem 0}.review-photos{flex-direction:column;gap:.5rem;max-height:60vh;display:flex;overflow:auto}.review-photos img{border-radius:6px;width:100%}.bar-rows{flex-direction:column;gap:.5rem;display:flex}.bar-row{border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:.5rem}.bar-row.bad{background:#fdf1f1;border-color:#d62828}.bar-row-head{justify-content:space-between;align-items:center;gap:.5rem;display:flex}.note-chips{flex-wrap:wrap;gap:.3rem;margin-top:.35rem;display:flex}.note-chip{border:1px solid var(--line);background:var(--bg);border-radius:8px;flex-direction:column;align-items:center;min-width:2.8rem;padding:.2rem .35rem;font-size:.8rem;display:flex}.note-chip.on{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent)}.note-chip.add{justify-content:center;font-size:1.1rem}.nc-pitch{font-weight:700}.nc-lyric{color:var(--muted);font-style:italic}.note-editor{background:var(--bg);border-radius:8px;flex-direction:column;gap:.4rem;margin-top:.5rem;padding:.5rem;display:flex}.ne-row{flex-wrap:wrap;align-items:center;gap:.3rem;display:flex}.ne-label{width:3.5rem;color:var(--muted);font-size:.8rem}.ne-pitch{text-align:center;min-width:2.5rem}.mini.on{background:var(--accent);color:var(--accent-text);border-color:var(--accent)}.warn{color:#d62828}@media (prefers-color-scheme:dark){.bar-row.bad{background:#3a1d1d}}.photo-actions{margin-top:.4rem}.center-buttons{justify-content:center}.discard{margin-top:.5rem}.pending-import{text-align:left;width:100%;font:inherit;cursor:pointer;border:none;display:block}
