:root{--blue:#005ac8;--ink:#182b43;--muted:#69768a;--line:#dce4ee;--pale:#f2f5fa;--light:#eaf2fd;--left:#a14e26;--left-pale:#fff1e6;--radius:18px;color-scheme:light}*{box-sizing:border-box}body{margin:0;background:var(--pale);color:var(--ink);font:15px/1.5 Lato,Arial,sans-serif}button,input,select{font:inherit}button,select,label{touch-action:manipulation}button,a,input,select{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #5d9be5}button{cursor:pointer;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);padding:9px 14px;min-height:42px;transition:background .15s,border-color .15s}button:hover:not(:disabled){background:#edf4ff;border-color:#adc7eb}button:disabled{opacity:.38;cursor:default}button.primary{background:var(--blue);color:#fff;border-color:var(--blue)}button.primary:hover{background:#004ba8}button.active,button[aria-pressed=true]{background:var(--light);border-color:#91b8ed;color:#004eaf}button.danger{color:#9d3f39}button.small{min-height:34px;padding:5px 10px;font-size:13px}.icon{width:18px;height:18px;vertical-align:-3px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}a{color:var(--blue);text-underline-offset:3px}.top{border-bottom:1px solid var(--line)}.top-inner{max-width:1320px;margin:auto;padding:18px 32px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--ink);font-weight:700;letter-spacing:2.5px;font-size:14px}.brand-mark{display:grid;place-items:center;width:37px;height:37px;border-radius:50%;background:var(--blue);color:white;font:700 29px Georgia}.top-links{display:flex;align-items:center;gap:20px;color:var(--muted);font-size:12px}.top-links button{background:none;border:0;padding:3px;min-height:30px;font-size:12px}.container{max-width:1320px;padding:32px;margin:auto}.hero{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:0 0 23px}.eyebrow{font-size:11px;letter-spacing:2px;text-transform:uppercase;color:var(--blue);font-weight:700;margin:0 0 8px}h1{font-size:38px;letter-spacing:-1.3px;line-height:1.1;margin:0}h2{font-size:20px;letter-spacing:-.4px;margin:0}h3{font-size:16px;margin:0}p{margin:7px 0}.subtitle{color:var(--muted);margin-top:9px;font-size:14px}.reference-pill{border:1px solid var(--line);border-radius:30px;padding:7px 13px;font-size:12px;background:#ffffff80;white-space:nowrap}.reference-pill strong{color:var(--blue)}.card{border:1px solid var(--line);background:white;border-radius:var(--radius);margin-bottom:20px;overflow:hidden;box-shadow:0 3px 12px #182b4303}.card-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:21px 25px;border-bottom:1px solid #e8edf4}.card-body{padding:22px 25px}.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.toolbar.spread{justify-content:space-between}.segmented{display:inline-flex;border:1px solid var(--line);padding:3px;border-radius:11px;background:#f5f7fb;gap:2px}.segmented button{border:0;background:none;min-height:33px;padding:5px 13px;font-size:13px;color:var(--muted)}.segmented button.active{background:white;box-shadow:0 1px 5px #21304a13;color:var(--blue)}.key-toolbar{padding:18px 25px 12px;display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}.range-controls{display:flex;align-items:center;gap:8px}.range-controls button{min-height:34px;padding:5px 10px}.range-caption{min-width:74px;text-align:center;font-size:12px;color:var(--muted)}.volume{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.volume input{width:95px;accent-color:var(--blue)}.switch{display:inline-flex;align-items:center;gap:8px;font-size:13px;cursor:pointer}.switch input{accent-color:var(--blue);width:16px;height:16px}.piano-scroll{overflow-x:auto;padding:4px 25px 0;scrollbar-width:thin}.piano-keys{height:238px;position:relative;min-width:calc(var(--whites)*38px);display:flex;isolation:isolate;touch-action:none;user-select:none;border-top:6px solid #192b42;border-radius:6px 6px 0 0;overflow:hidden;box-shadow:0 4px 7px #14223816}.piano-key{border:0;min-height:0;padding:0;border-radius:0;transition:none;position:relative;touch-action:none;user-select:none}.piano-key.white{flex:1;height:228px;border:1px solid #cbd3de;border-top:0;border-radius:0 0 6px 6px;background:linear-gradient(90deg,#eef1f5 0,#fff 12%,#fff 90%,#e6eaf0 100%);color:#4b596c;box-shadow:inset 0 -5px #e5e9ef;z-index:1}.piano-key.white:hover{background:#f2f7ff}.piano-key.black{position:absolute;top:0;height:141px;width:calc(100%/var(--whites)*.62);background:linear-gradient(90deg,#111c2c,#2c3a4e 45%,#172233);border:1px solid #111b2b;border-top:0;border-radius:0 0 5px 5px;box-shadow:inset 0 -6px #0b1522,2px 3px 3px #0003;z-index:2;color:#dbe5f4}.piano-key.white.selected{background:linear-gradient(#e1edff,#d2e4ff);box-shadow:inset 0 -5px #b2cff5}.piano-key.black.selected{background:linear-gradient(#165aa9,#1969c5);box-shadow:inset 0 -6px #0c4891}.piano-key.white.sounding{background:#bddfd4}.piano-key.black.sounding{background:#256a57}.piano-key.drag-target{outline:3px solid #4c8ee9;outline-offset:-4px}.key-name{position:absolute;bottom:20px;left:0;width:100%;font-size:14px;line-height:1.2;font-weight:600;pointer-events:none}.key-name small{font-weight:400;font-size:10px;opacity:.6;display:block;margin-top:3px}.piano-key.black .key-name{bottom:12px;font-size:11px}.piano-key.black .key-name small{font-size:9px}.mid-c{position:absolute;bottom:5px;left:0;width:100%;text-align:center;font-size:8px;letter-spacing:.6px;color:#3979c4;pointer-events:none}.key-finger{position:absolute;bottom:66px;left:50%;transform:translateX(-50%);display:grid;place-items:center;background:var(--blue);color:white;width:25px;height:25px;border-radius:50%;font-size:13px;font-weight:700;pointer-events:none}.piano-key.black .key-finger{bottom:53px;background:#fff;color:var(--blue);width:22px;height:22px}.key-finger.left{background:var(--left)}.piano-key.black .key-finger.left{color:var(--left)}.note-token{position:absolute;bottom:108px;left:50%;transform:translateX(-50%);width:29px;height:25px;border:1px solid #88afdf;border-radius:7px;background:#fff;display:grid;place-items:center;color:var(--blue);font-size:16px;cursor:grab;z-index:5;box-shadow:0 2px 4px #142e5020;touch-action:none}.black .note-token{bottom:81px;background:#f4f8ff;width:24px;height:23px}.note-token.chosen{outline:2px solid var(--blue);outline-offset:2px}.overview-wrap{padding:18px 25px 13px}.overview{height:27px;display:flex;position:relative;cursor:pointer;touch-action:none;border:1px solid #d4deeb;border-radius:4px;overflow:hidden;background:#f5f7fa}.mini-white{flex:1;border-right:1px solid #e1e7ef;background:white;height:100%}.mini-black{position:absolute;background:#8190a5;width:calc(100%/52*.6);height:60%;border-radius:0 0 1px 1px}.mini-white.selected{background:#5b97e1}.mini-black.selected{background:#005ac8}.overview-window{position:absolute;top:0;bottom:0;background:#005ac810;border:1.5px solid #005ac8;border-radius:3px;pointer-events:none}.keyboard-footer{padding:0 25px 18px;display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:12px}.now-pitch{color:var(--blue);font-weight:700}.view-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:21px 0}.view-label{font-size:12px;color:var(--muted);margin-right:7px}.view-row button{background:#ffffff90;font-size:13px;border-radius:10px}.view-row button.active{background:var(--light)}.view-count{background:#005ac815;padding:1px 6px;border-radius:5px;font-size:11px}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.field{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;color:#52647a}.field select,.field input{min-width:0;width:100%;background:white;border:1px solid #cdd7e5;border-radius:8px;padding:10px 11px;color:var(--ink);min-height:44px;font-size:14px}.field.wide{grid-column:span 2}.hint{font-size:12px;color:var(--muted)}.muted{color:var(--muted)}.chord-summary{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#f5f8fd;border:1px solid #e0e9f6;padding:18px 20px;border-radius:12px;margin-top:20px}.chord-name{font-size:29px;font-weight:700;letter-spacing:-.7px;color:var(--blue)}.note-chips{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.note-chip{font-size:12px;border:1px solid #d6e3f3;border-radius:6px;padding:4px 7px;background:white;color:#305c92}.alterations{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}.analysis-box{border-top:1px solid var(--line);padding-top:17px;margin-top:20px}.candidate-row{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.candidate-row button{min-height:32px;font-size:13px;padding:4px 10px}.empty{border:1px dashed #cfdbe9;border-radius:12px;padding:25px;text-align:center;color:var(--muted);font-size:14px}.editor-strip{border-top:1px solid var(--line);padding:15px 25px;background:#fcfdff;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.editor-label{font-size:12px;color:var(--muted);margin-right:5px}.edit-note-name{font-weight:700;color:var(--blue);padding:0 8px}.editor-strip button{min-height:32px;padding:4px 9px;font-size:12px}.notation-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:15px}.notation-box{border:1px solid var(--line);border-radius:13px;overflow:hidden;background:#fff}.notation-title{padding:12px 17px;display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:700;background:#f8faff;border-bottom:1px solid #e9edf4}.staff-svg{display:block;width:100%;max-height:360px;color:#192b42;overflow:visible;touch-action:none}.staff-line{stroke:#bbc5d1;stroke-width:1.2}.staff-line.ledger{stroke:#8997a8}.clef-glyph{font:83px 'Noto Music','Segoe UI Symbol','DejaVu Sans',serif;fill:currentColor}.note-head{fill:#fff;stroke:#1b3554;stroke-width:2.7}.score-note{cursor:pointer}.score-note:hover .note-head{fill:#c9dfff;stroke:var(--blue)}.score-note.sounding .note-head{fill:#9cd0ba}.accidental{font:25px 'Noto Music','Segoe UI Symbol',serif;fill:#1d314b}.staff-finger{font:bold 12px Lato,Arial;fill:var(--blue)}.staff-finger.finger-left{fill:var(--left)}.score-placeholder{fill:#8592a4;font:13px Lato,Arial}.notation-notes{padding:0 16px 15px;color:var(--muted);font-size:12px}.notation-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:17px}.notation-tools label{font-size:12px;display:flex;gap:6px;align-items:center;border:1px solid var(--line);padding:7px 10px;border-radius:7px}.notation-tools input{accent-color:var(--blue)}.fingering-table{width:100%;border-collapse:collapse;margin-top:16px;font-size:13px}.fingering-table th,.fingering-table td{text-align:left;padding:9px 12px;border-bottom:1px solid #e7edf5}.fingering-table th{color:var(--muted);font-size:11px;font-weight:600}.fingering-table select{border:1px solid var(--line);border-radius:6px;padding:5px 9px;background:white;color:var(--ink)}.finger-legend{display:flex;flex-wrap:wrap;gap:12px;font-size:12px;color:var(--muted);margin-top:16px}.finger-legend b{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--light);color:var(--blue);margin-right:5px}.warning{font-size:12px;color:#895526;background:#fff6e9;border:1px solid #eedcbe;border-radius:8px;padding:9px 12px;margin-top:10px}.hands-content svg{max-width:100%;height:auto}.fret-scroll{overflow:auto}.fret-svg{min-width:850px;display:block;width:100%}.fret-label{font:12px Lato,Arial;fill:#6a7890}.fret-position{cursor:pointer}.fret-position circle{fill:var(--blue);stroke:white;stroke-width:1.5}.fret-position text{font:9px Lato,Arial;fill:white;font-weight:700;pointer-events:none}.fret-position.other-octave{opacity:.3}.guitar-notation{max-width:560px;margin:18px auto 0}.instrument-controls{display:grid;grid-template-columns:1fr auto;gap:12px;margin-bottom:20px}.instrument-select{display:flex;gap:8px}.instrument-select select{min-width:200px;max-width:100%;border:1px solid #cdd7e5;border-radius:8px;padding:10px;background:white;color:var(--ink)}.instrument-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:16px}.instrument-card{border:1px solid var(--line);border-radius:13px;overflow:hidden}.instrument-heading{display:flex;align-items:center;gap:12px;padding:16px;border-bottom:1px solid var(--line)}.instrument-icon{display:grid;place-items:center;width:45px;height:45px;background:#f0f5fc;border-radius:10px;color:var(--blue);flex-shrink:0}.instrument-icon svg{width:34px;height:34px}.instrument-heading .close{margin-left:auto;border:0;min-height:25px;padding:2px 6px;color:var(--muted)}.instrument-card .staff-svg{max-height:240px}.pitch-comparison{padding:12px 17px;background:#f8faff;font-size:12px;display:flex;flex-wrap:wrap;gap:10px}.pitch-comparison strong{color:var(--blue)}.instrument-details{padding:0 17px 14px;font-size:11px;color:var(--muted)}.instrument-details summary{cursor:pointer}.instrument-details a{font-size:11px}.instrument-clef{display:flex;align-items:center;gap:7px;font-size:11px;padding:10px 17px}.instrument-clef select{font-size:11px;border:1px solid var(--line);padding:4px;border-radius:5px}.footer{display:flex;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding:18px 0 5px;margin-top:28px;color:#8490a1;font-size:11px}.footer details{text-align:right;max-width:600px}.footer summary{cursor:pointer}.help-content{max-width:720px}.help-content p{font-size:14px;margin:12px 0}.help-content kbd{background:#edf2fa;padding:2px 5px;border-radius:3px}.modal-backdrop{position:fixed;inset:0;background:#14243c60;z-index:40;display:flex;align-items:center;justify-content:center;padding:20px}.modal{max-width:720px;max-height:85vh;overflow:auto;background:white;border-radius:18px;padding:25px;box-shadow:0 20px 70px #16264130}.modal-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.saved-items{display:flex;gap:8px;flex-wrap:wrap}.saved-item{border:1px solid var(--line);border-radius:10px;padding:10px 14px;text-align:left;font-size:12px}.saved-item strong{display:block;color:var(--blue);font-size:16px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#18334f;color:white;border-radius:10px;padding:12px 19px;font-size:13px;z-index:100;box-shadow:0 4px 16px #14243c25;opacity:0;pointer-events:none;transition:opacity .2s;max-width:90vw}#toast.visible{opacity:1}#drag-ghost{position:fixed;z-index:99;pointer-events:none;padding:8px 12px;border-radius:8px;background:#005ac8;color:white;box-shadow:0 5px 20px #14243c30;font-weight:700;font-size:13px}.sheet-hint{font-size:11px;color:var(--muted);margin-top:8px}.help-link{color:var(--muted);font-size:11px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}@media(min-width:900px){.piano-card{position:relative}.piano-key{max-height:100%}.container{padding-top:30px}.card+.view-row{margin-top:16px}}@media(max-width:760px){.container{padding:22px 14px}.top-inner{padding:14px 18px}.top-links .optional{display:none}.brand{font-size:11px;letter-spacing:1.8px}.brand-mark{width:31px;height:31px;font-size:25px}h1{font-size:32px}.hero{margin-bottom:20px}.reference-pill{font-size:10px;padding:6px 9px}.card-head,.card-body{padding:17px}.key-toolbar{padding:15px 15px 10px;gap:12px}.piano-scroll{padding:3px 13px 0}.overview-wrap{padding:14px 15px 10px}.keyboard-footer{padding:0 16px 14px;font-size:10px}.keyboard-footer .desktop-hint{display:none}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.field.wide{grid-column:span 2}.segmented button{padding:5px 10px;font-size:12px}.view-row{gap:6px}.view-row button{padding:7px 10px;font-size:12px;min-height:37px}.volume input{width:70px}.chord-summary{align-items:flex-start;flex-direction:column;gap:12px}.instrument-controls{grid-template-columns:1fr}.instrument-select{max-width:100%}.instrument-select select{min-width:0;flex:1}.instrument-card .staff-svg{max-height:300px}.fingering-table td,.fingering-table th{padding:8px 5px}.footer{font-size:10px}.footer details{max-width:65%}.editor-strip{padding:12px 15px}.card-head h2{font-size:18px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.piano-keys.full{min-width:936px}.piano-keys.full .key-name{font-size:12px}.piano-keys.full .black .key-name{font-size:9px}.notation-box>.staff-svg{max-width:650px;margin-inline:auto}

.note-head{color:#1b3554;fill:currentColor;stroke:none}.score-note:hover .note-head{color:#005ac8;fill:currentColor;stroke:none}.score-note.sounding .note-head{color:#287259;fill:currentColor}.grand-pair{grid-column:1/-1}.grand-lines{max-width:600px;margin:auto;padding-left:25px;position:relative}.grand-lines>.staff-svg{max-height:230px;margin-block:-12px}.grand-brace{position:absolute;left:8px;top:54px;width:18px;height:calc(100% - 100px)}.instrument-art{display:flex;justify-content:center;background:linear-gradient(#fbfdff,#fff);border-bottom:1px solid #edf1f6}.instrument-art svg{width:220px;max-width:100%;height:123px}@media(max-width:760px){.card-head{flex-wrap:wrap}.range-controls{flex-wrap:wrap}.range-caption{min-width:55px}.instrument-art svg{height:115px}}

.written-input{padding:12px 16px;display:flex;gap:7px}.written-input input{width:100%;min-width:0;border:1px solid var(--line);border-radius:7px;padding:7px 9px;font-size:12px}.written-input button{white-space:nowrap;font-size:11px}

@media(max-width:760px){.range-controls{display:grid;grid-template-columns:28px minmax(0,1fr) 28px;gap:6px;width:100%}.range-controls>.segmented{width:100%;padding:2px;justify-content:space-between}.range-controls>.segmented>button{padding:5px 4px;min-width:0;white-space:nowrap;flex:1;font-size:11px}.range-controls>button{padding:5px 2px;min-width:28px}.range-caption{grid-column:1/-1;min-width:0;text-align:center}}

#chords-panel .card-head{padding:14px 22px}#chords-panel .card-body{padding:17px 22px 12px}.chord-controls{grid-template-columns:1.25fr 1.65fr .7fr 1.2fr 1.25fr .8fr;gap:10px}.chord-controls .field.wide{grid-column:auto}.chord-controls select{padding-inline:8px;text-overflow:ellipsis}#chords-panel .chord-summary{margin-top:14px;padding:10px 14px}.chord-summary>div:first-child{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.chord-summary .chord-name{font-size:26px}.chord-details{margin-top:10px;font-size:12px;color:var(--muted)}.chord-details>summary{cursor:pointer;padding:5px 0;width:fit-content}.chord-details .analysis-box{margin-bottom:10px}.chord-details .alterations{margin-top:10px}.view-row{margin-top:0}.instrument-controls{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}.current-instrument{border-color:#93b9e8;box-shadow:0 0 0 1px #93b9e833}.instrument-grid>.empty{grid-column:1/-1}
@media(max-width:1050px){.chord-controls{grid-template-columns:repeat(4,minmax(0,1fr))}.chord-controls .field.wide{grid-column:span 2}}
@media(max-width:760px){#chords-panel .card-head,#chords-panel .card-body{padding:14px}.chord-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.chord-controls .field.wide{grid-column:span 1}.chord-summary>div:first-child{gap:9px}.chord-summary .toolbar{gap:6px}.chord-summary .toolbar button{font-size:12px;padding:8px 10px}.instrument-controls{grid-template-columns:1fr}.chord-controls .field input,.chord-controls .field select{font-size:13px}}

.hand-intro{margin:0 0 16px;color:var(--muted);font-size:13px}.hand-panels{display:grid;gap:18px}.hand-panels.both-hands{grid-template-columns:1fr 1fr}.hand-figure{margin:0;min-width:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fbfcfe}.hand-figure figcaption{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 20px;border-bottom:1px solid #e5ebf3;background:white}.hand-figure figcaption span{font-size:11px;color:var(--muted)}.hand-diagram{padding:10px 16px 0;background:linear-gradient(#fbfcfe,#f1f5fa)}.hand-diagram>svg{width:100%;max-width:900px;max-height:465px;display:block;margin:auto}.hand-note-row{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;background:white;padding:14px;border-top:1px solid #e5ebf3}.hand-note{display:flex;gap:9px;align-items:center;padding:7px 12px;text-align:left;font-size:13px}.hand-note>b{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:var(--hand-color);color:white}.hand-note small{display:block;font-size:10px;color:var(--muted)}.hand-posture{display:grid;grid-template-columns:minmax(200px,.85fr) minmax(0,1.5fr);align-items:center;gap:20px;padding:20px 24px;margin-top:20px;background:#f5f8fc;border:1px solid #e2eaf4;border-radius:14px}.hand-posture-copy p{font-size:12px;color:#65778e;line-height:1.7;margin-top:8px}.hand-posture-copy h3{font-size:16px}.hand-posture svg{display:block;width:100%;height:auto}.hand-source{font-size:11px;color:var(--muted);margin-top:14px}.hand-source a{margin-left:5px}.hand-empty{padding:20px;border:1px dashed var(--line);border-radius:13px;color:var(--muted)}.hand-empty p{font-size:12px}.hand-figure>.warning{margin:14px}
.card{scroll-margin-top:20px}
@media(max-width:900px){.hand-panels.both-hands{grid-template-columns:1fr}.hand-posture{grid-template-columns:1fr;gap:0}.hand-posture svg{max-width:620px;margin:auto}.hand-diagram{padding-inline:0}.hand-figure figcaption{padding:12px 14px}.hand-note{padding:7px 9px}.hand-note-row{gap:7px}.hand-posture{padding:18px}}
.board-options{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin-bottom:20px}.board-options>.field:first-child{flex:1;min-width:190px}.board-options>.field:nth-child(2){width:120px}.board-options .switch{min-height:42px}.board-cards{display:grid;grid-template-columns:repeat(var(--board-cols),minmax(0,1fr));gap:15px}.board-card{border:1px solid #dce5f1;border-radius:13px;overflow:hidden;background:#fff;min-width:0}.board-card svg{display:block;width:100%;height:auto}.board-card-actions{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;padding:10px;border-top:1px solid #e8edf5;background:#f8faff}.board-card-actions button{font-size:12px;min-height:32px;padding:5px 10px}.board-preview{margin-top:20px;font-size:13px;color:var(--muted)}.board-preview summary{cursor:pointer}#board-picture svg{width:100%;height:auto;margin-top:15px}.board-screen{width:96vw;max-width:none;max-height:96dvh;background:#f2f6fc;border:0;border-radius:16px;padding:22px}.board-screen::backdrop{background:#122139cc}.board-screen>button{display:block;margin:0 0 12px auto}.board-screen>svg{display:block;width:100%;height:auto;max-height:82dvh}@media(max-width:900px){.board-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:540px){.board-cards{grid-template-columns:1fr}.board-options .toolbar{gap:7px}.board-options .toolbar button{font-size:13px;padding:8px 10px}.piano-board .card-head{flex-wrap:wrap}}

.hand-guide-grid{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(225px,1fr);gap:18px;align-items:start}
.hand-guide-grid.two-hand-guide{grid-template-columns:1fr}
.hand-guide-grid .hand-posture{display:block;border-radius:14px;overflow:hidden;margin:0;padding:0;background:#fff}
.posture-photo{display:block;width:100%;height:auto}
.hand-posture-copy{padding:16px 18px 18px}
.hand-posture-copy p{font-size:14px;line-height:1.55;margin:7px 0 12px}
.hand-credit{font-size:11px;color:var(--muted)}
.two-hand-guide .hand-posture{display:flex;align-items:center}
.two-hand-guide .posture-photo{width:200px}
piano-hand-art{display:block}
.hand-diagram svg{display:block;width:100%;height:auto;max-height:410px;margin:auto}
.hand-render{filter:drop-shadow(2px 4px 3px rgb(33 36 45 / 20%))}
.hand-render-note{margin:0;padding:8px 12px;text-align:center}
.hand-note small{font-size:11px}
@media(max-width:800px){
 .hand-guide-grid{grid-template-columns:1fr}
 .hand-guide-grid .hand-posture{display:flex;align-items:center}
 .hand-guide-grid .posture-photo{width:clamp(108px,31%,200px)}
}
@media(max-width:480px){
 .hand-posture-copy{padding:10px 12px}
 .hand-posture-copy p{font-size:12px;margin-bottom:6px}
 .hand-note-row{gap:5px;padding:10px}
}

.progression .card-head .active{color:#005ac8;background:#edf5ff;border-color:#a9c9ee}
.progression .card-body{padding:18px 22px}
#pr-text{box-sizing:border-box;display:block;width:100%;min-height:65px;margin:6px 0;padding:12px 14px;border:1px solid #b8c9dc;border-radius:9px;font:500 18px/1.5 ui-monospace,monospace;color:var(--text);resize:vertical;background:#fcfdff;letter-spacing:.02em}
#pr-text:focus-visible{outline:2px solid #3277c8;outline-offset:1px}
#pr-text[aria-invalid="true"]{border-color:#b24827}
.pr-write-tools{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pr-write-tools small{color:#52657c;font-size:12px;line-height:1.5}
.pr-write-tools button{flex-shrink:0}
.pr-score{display:flex;flex-wrap:wrap;gap:10px 0;margin:17px 0 22px}
.pr-score:empty{display:none}
.pr-bar{min-width:78px;max-width:100%;flex:1 1 auto;border-inline-start:2px solid #7c90a7;padding:0 6px 2px}
.pr-bar:last-child{border-inline-end:3px double #7c90a7}
.pr-number{display:block;color:#677b91;font-size:11px;padding:0 5px}
.pr-slots{display:flex;flex-wrap:wrap}
.pr-slot{padding:5px 7px;border-radius:6px;font-weight:650;font-size:22px;color:#294560;flex:1 0 auto;line-height:1.15}
.pr-slot.playing {background:#005ac8;color:white}
.pr-controls{display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px 20px}
.pr-controls .field select,.pr-controls .field input{width:100px}
.pr-controls .switch{min-height:40px}
.pr-controls .toolbar{margin-inline-start:auto}
#pr-status{color:#52657c;font-size:13px}
#pr-status:not(:empty){padding-top:12px}
#pr-status.pr-error{color:#a73f21}
@media(max-width:600px){
 .progression .card-body{padding:14px}
 .pr-controls .toolbar{margin-inline-start:0}
 .pr-write-tools{align-items:flex-start}
 .pr-slot{font-size:18px}
}

.instrument-reference {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  margin:14px 16px;
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
}
.reference-note {min-width:0;padding:12px 5px;text-align:center}
.reference-note + .reference-note {background:#f1f6fd;border-left:1px solid var(--line)}
.reference-note h4 {margin:0;font-size:14px;line-height:1.35}
.reference-note strong {display:block;font-size:30px;line-height:1.25;margin-top:5px}
.reference-note + .reference-note strong {color:var(--blue)}
.reference-note > span {display:block;color:#506078;font-size:13px}
.reference-note .staff-svg {height:89px;margin:2px auto;max-width:170px;touch-action:auto}
.reference-note button {font-size:13px}
.reference-range {padding:0 16px;margin:0 0 8px;color:#77501f;font-size:13px}
.instrument-card .instrument-clef {padding-top:0}
.instrument-card .instrument-details {font-size:13px}
.instrument-details details {border-top:1px solid var(--line);padding:8px 0}
.instrument-details .pitch-comparison {margin-top:8px}
.instrument-details .written-input {padding:8px 0}
