:root{--blue:#005ac8;--blue-soft:#eaf2ff;--bg:#f5f7fb;--surface:#fff;--text:#182b43;--muted:#617188;--border:#dce3ee;--subtle:#f0f4f9;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color-scheme:light}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,textarea,select{font:inherit;color:inherit}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;border-radius:9px;border:1px solid transparent;padding:9px 13px;font-size:13px;font-weight:650;background:transparent;cursor:pointer;white-space:nowrap}button:hover{background:var(--subtle)}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,textarea:focus-visible{outline:3px solid #81b4fa;outline-offset:3px}a{color:var(--blue);text-decoration:none}svg.icon{display:block;width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}i[data-icon]{display:inline-flex;font-style:normal}.primary{background:var(--blue);color:white}.primary:hover{background:#004ea9}.secondary{background:var(--surface);border-color:var(--border)}.secondary:hover{background:var(--blue-soft);border-color:#b2cdec}.quiet{color:var(--muted)}.icon-only{width:39px;padding:8px}.full{width:100%}.text-button{font-size:11px;padding:3px 0;min-height:27px;color:var(--muted);gap:5px}.text-button:hover{color:var(--blue);background:transparent}.text-button svg{width:14px;height:14px}input,select,textarea{background:var(--surface);border:1px solid var(--border);border-radius:8px;font-size:13px;padding:10px 11px;min-height:40px}select{cursor:pointer}.app-header{display:flex;align-items:center;gap:24px;padding:18px 30px;background:var(--surface);border-bottom:1px solid var(--border);min-height:82px}.brand{font-weight:850;letter-spacing:.045em;font-size:32px;line-height:1.12;color:var(--blue)}.app-name{border-left:1px solid var(--border);padding-left:24px;display:flex;align-items:center;gap:9px;font-size:16px;font-weight:550}.beta{font-size:10px;color:var(--muted);padding:2px 6px;border:1px solid var(--border);border-radius:4px}.header-actions{margin-left:auto;display:flex;align-items:center;gap:6px}main{max-width:1550px;margin:auto;padding:28px 32px 0}.intro{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:27px}.eyebrow{font-size:9px;font-weight:750;letter-spacing:1.4px;margin:0 0 7px;color:var(--muted)}h1{margin:0 0 8px;font-size:29px;line-height:1.2;letter-spacing:-.8px}.intro p:last-child{font-size:13px;color:var(--muted);margin:0;line-height:1.6}.workspace{display:grid;grid-template-columns:298px minmax(0,1fr);gap:24px;align-items:start}.controls{display:flex;flex-direction:column;gap:17px}.panel{background:var(--surface);border:1px solid var(--border);border-radius:13px;padding:21px}.section-title{display:flex;align-items:center;gap:9px;margin-bottom:18px}.section-title h2{font-size:14px;letter-spacing:-.2px;margin:0}.step{display:grid;place-items:center;border-radius:6px;width:24px;height:24px;background:var(--blue-soft);color:var(--blue);font-size:11px;font-weight:750}.dropzone{display:flex;flex-direction:column;white-space:normal;width:100%;padding:21px 12px 18px;gap:5px;border:1px dashed #a8c3e4;background:#f9fbff;border-radius:10px;text-align:center}.dropzone:hover,.dropzone.drag{background:var(--blue-soft);border-color:var(--blue)}.dropzone strong{font-size:13px;margin:7px 0 0}.dropzone>span:not(.upload-icon){font-size:11px;color:var(--muted);font-weight:400}.dropzone small{font-size:9px;letter-spacing:.25px;color:var(--muted);font-weight:500;margin-top:10px}.upload-icon{background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;width:43px;height:43px;border-radius:12px}.upload-icon svg{width:23px;height:23px}.sample-button{white-space:normal;text-align:left;justify-content:flex-start;font-size:10px;line-height:1.5;padding:16px 0 0;min-height:40px;color:var(--muted);gap:8px;width:100%;margin-top:4px}.sample-button:hover{color:var(--blue);background:transparent}.sample-button>i:first-child svg{width:15px;height:15px}.sample-button>i:last-child{margin-left:auto}.sample-button>i:last-child svg{width:13px;height:13px}.file-chip{display:flex;align-items:center;gap:9px;background:var(--subtle);border-radius:8px;padding:10px 8px;margin:12px 0}.file-chip>div{min-width:0;flex:1}.file-chip strong{display:block;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-chip small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.file-chip>.icon-only{width:27px;min-height:28px;padding:4px}.page-range{display:grid;grid-template-columns:1fr 10px 1fr;gap:8px;align-items:end;margin:14px 0}.page-range label{font-size:10px;color:var(--muted);display:flex;gap:5px;flex-direction:column}.page-range input{width:100%;padding:6px 8px;min-height:34px}.page-range>span{padding-bottom:8px;color:var(--muted)}.page-range small{grid-column:1/-1;font-size:9px;color:var(--muted);line-height:1.5}#readStatus{font-size:11px;line-height:1.65;border-radius:8px;padding:11px;margin-top:12px;background:var(--blue-soft);color:var(--blue);overflow-wrap:anywhere}#readStatus.error{background:#fff3e5;color:#89530a}.signin{display:block;font-size:11px;line-height:1.6;margin:10px 0}.key-journey{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:19px;margin-bottom:18px;border-bottom:1px solid var(--border)}.key-journey>div{display:flex;flex-direction:column;gap:7px}.key-journey>div:last-child{text-align:right}.key-journey span{font-size:10px;color:var(--muted)}.key-journey strong{font-size:18px;letter-spacing:-.5px}.key-journey>div:last-child strong{color:var(--blue)}.key-journey>i{color:#9aacbf}.key-journey>i svg{width:17px;height:17px}.field-label{display:block;font-size:11px;font-weight:600;margin-bottom:7px}.key-select{display:grid;grid-template-columns:38px 1fr 38px;gap:7px}.key-select button{font-size:19px;font-weight:500;padding:5px;min-height:42px}.key-select select{font-weight:650;min-width:0;background:var(--blue-soft);border-color:#c4d9f2;color:var(--blue);text-align:center;padding:8px 24px 8px 10px}.transpose-note{display:flex;justify-content:space-between;gap:6px;align-items:center;margin:10px 0 0}.transpose-note>span{font-size:10px;color:var(--muted);line-height:1.5}.advanced{margin-top:18px;padding-top:15px;border-top:1px solid var(--border);font-size:11px;color:var(--muted)}summary{cursor:pointer;font-size:11px;font-weight:600}summary:hover{color:var(--blue)}.advanced label{display:flex;flex-direction:column;gap:6px;margin-top:13px}.advanced select{min-height:35px;font-size:11px;padding:8px}.advanced p{font-size:10px;line-height:1.65;margin-bottom:0}.notice{padding:8px;background:var(--blue-soft);line-height:1.6;margin-top:10px;border-radius:6px}.sidebar-note{display:flex;gap:9px;font-size:10px;color:var(--muted);line-height:1.7;margin:0 8px}.sidebar-note svg{width:16px;height:16px;margin-top:2px}.result{min-width:0}.result-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 0 15px;border-bottom:1px solid var(--border);margin-bottom:14px}.view-tabs{display:flex;align-items:center;gap:4px;background:#e9edf4;padding:4px;border-radius:9px}.view-tabs button{min-height:32px;font-size:11px;padding:6px 13px;color:var(--muted);border-radius:6px}.view-tabs .active{background:var(--surface);box-shadow:0 1px 5px #1b365615;color:var(--text)}.result-actions{display:flex;align-items:center;gap:7px}.result-actions .primary{min-height:39px}.result-actions svg{width:17px;height:17px}.result-actions .quiet{font-size:11px;padding:8px}.paper-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.paper-tools>div{display:flex;align-items:center;gap:14px}.paper-tools label{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted);white-space:nowrap}.paper-tools select{font-size:10px;padding:5px 20px 5px 8px;min-height:29px;background:transparent;border-color:transparent;max-width:130px}.paper-tools select:hover{border-color:var(--border);background:var(--surface)}.badge{display:inline-flex;align-items:center;gap:6px;font-size:9px;font-weight:600;line-height:1.5;color:var(--muted)}.badge>span{width:5px;height:5px;border-radius:50%;background:#9bacbf;flex:none}.badge.read>span{background:#b47c28}.badge.imported>span{background:#23866d}.paper-stage{display:flex;flex-direction:column;gap:25px;align-items:center;padding:20px;background:#e9edf3;border:1px solid var(--border);border-radius:12px;min-height:460px;overflow:hidden}.paper{color:#132238;position:relative;background:white;width:100%;aspect-ratio:297/210;padding:3.5% 4%;box-shadow:0 3px 13px #182b4317;overflow:hidden}.paper.portrait{aspect-ratio:210/297;padding:5.1% 5.6%;max-width:670px}.paper-header{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:2px solid #005ac8;padding-bottom:2%;margin-bottom:1.7%;gap:12px}.paper-kicker{font-size:7.5px;font-weight:750;letter-spacing:1px;color:#005ac8;margin:0 0 8px}.paper h2{font-size:clamp(15px,1.6vw,25px);letter-spacing:-.5px;margin:0 0 4px;line-height:1.25}.paper .credit{font-size:9px;color:#677487;margin:0}.paper-key{font-size:13px;font-weight:650;color:#005ac8;white-space:nowrap}.notation{width:100%;line-height:0}.notation>svg{width:100%;height:auto;display:block;color:#111;fill:#111;stroke:none}.paper-footer{position:absolute;bottom:3%;left:4%;right:4%;display:flex;justify-content:space-between;font-size:7.5px;color:#6a788a}.paper.portrait .paper-footer{left:5.6%;right:5.6%}.loading-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;font-size:12px;color:var(--muted);min-height:390px}.spinner{display:block;border:2px solid #bfd5f3;border-top-color:var(--blue);border-radius:50%;width:24px;height:24px;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.source-image{max-width:100%;height:auto;background:white;box-shadow:0 3px 13px #182b4317}.source-message{text-align:center;padding:70px 20px;line-height:1.8;font-size:13px;color:var(--muted)}.score-footer{display:flex;gap:15px;align-items:center;font-size:9px;color:var(--muted);padding:11px 2px 0;flex-wrap:wrap}.score-footer .text-button{margin-left:auto;font-size:9px}.app-footer{display:flex;justify-content:space-between;gap:16px;font-size:9px;color:var(--muted);border-top:1px solid var(--border);padding:17px 0 20px;margin-top:30px}.app-footer a{font-weight:650}.warning-box{background:#fff7e8;color:#825b17;border:1px solid #edd8ad;border-radius:9px;padding:10px 13px;margin:0 0 13px;font-size:11px;line-height:1.6}.warning-box>div{display:flex;align-items:center;gap:7px}.warning-box>div>i svg{width:15px;height:15px}.warning-box .text-button{margin-left:auto;color:inherit;min-height:20px}.warning-box ul{padding-left:17px;margin:8px 0 2px;max-height:170px;overflow:auto}.warning-box.collapsed ul{display:none}.warning-box li+li{margin-top:5px}dialog{background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:17px;padding:0;width:600px;max-width:calc(100vw - 24px);max-height:90dvh;box-shadow:0 25px 100px #132d5540}dialog::backdrop{background:#12283f70;backdrop-filter:blur(3px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:21px 25px;border-bottom:1px solid var(--border)}.dialog-header h2{margin:0;font-size:21px;letter-spacing:-.5px}.dialog-body{padding:22px 25px}.dialog-body p{font-size:12px;color:var(--muted);line-height:1.7}.dialog-footer{display:flex;align-items:center;justify-content:flex-end;gap:9px;border-top:1px solid var(--border);padding:16px 25px}.help-content ol{margin:0 0 20px;padding-left:19px;font-size:13px;line-height:1.8}.help-content li{padding-left:5px;margin-bottom:15px}.help-note{font-size:11px;line-height:1.8;background:var(--blue-soft);padding:15px;border-radius:9px}.edit-dialog{width:770px}.edit-dialog details{margin-top:18px}.edit-dialog textarea{width:100%;min-height:240px;font-size:11px;font-family:ui-monospace,monospace;line-height:1.6;white-space:pre;resize:vertical}.note-fields{display:flex;align-items:end;gap:10px;margin:12px 0}.note-fields label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:var(--muted);flex:1}.note-fields select,.note-fields input{width:100%;min-width:0}.note-fields input{max-width:85px}#noteEditor{padding:14px;background:var(--blue-soft);border-radius:9px}#noteEditor>strong{font-size:12px}#noteEditor>small{font-size:10px;color:var(--muted)}.error-text{color:#a8372b!important}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:12px 18px;background:var(--text);color:var(--surface);box-shadow:0 5px 25px #0002;border-radius:9px;font-size:12px;line-height:1.6;max-width:min(90vw,650px);z-index:30;text-align:center}[hidden]{display:none!important}.notation .note{cursor:pointer}.notation .note:hover{fill:#005ac8;color:#005ac8}
body.dark{--bg:#111b29;--surface:#182638;--text:#edf3fc;--muted:#afbed1;--border:#314257;--subtle:#213249;--blue:#80b5ff;--blue-soft:#223e60;color-scheme:dark}.dark .primary{background:#176ddb;color:#fff}.dark .dropzone{background:#182b42;border-color:#3c5c80}.dark .key-select select{border-color:#3c5c80}.dark .paper-stage,.dark .view-tabs{background:#0c1520}.dark .warning-box{background:#3e3420;color:#f5d99a;border-color:#655430}
@media(max-width:1100px){main{padding:25px 22px 0}.workspace{grid-template-columns:265px minmax(0,1fr);gap:18px}.panel{padding:18px}.app-header{padding-inline:23px;gap:18px}.brand{font-size:28px}.app-name{font-size:14px;padding-left:18px}.result-actions .quiet span{display:none}.result-actions{gap:5px}.paper-stage{padding:13px;min-height:370px}.paper-tools>div{gap:5px}.size-label{display:none!important}.badge{font-size:8px}.paper-tools{gap:5px}.view-tabs button{font-size:10px;padding-inline:10px}.result-actions .primary{font-size:11px;padding:8px 10px}.paper-kicker{font-size:6px;margin-bottom:6px}.paper h2{font-size:17px}.paper .credit{font-size:8px}.paper-key{font-size:11px}.paper-footer{font-size:6px}}
@media(max-width:820px){main{padding:22px 17px 0}.intro h1{font-size:26px}.intro>.secondary{font-size:11px;padding:9px}.workspace{grid-template-columns:230px minmax(0,1fr);gap:15px}.panel{padding:15px}.key-journey strong{font-size:16px}.key-select{grid-template-columns:32px 1fr 32px;gap:5px}.key-select select{font-size:12px}.sample-button{font-size:9px}.result-toolbar{flex-wrap:wrap;gap:10px}.result-actions{margin-left:auto}.paper-tools{flex-wrap:wrap}.paper-tools>div{margin-left:auto}.paper h2{font-size:14px}.paper-key{font-size:10px}.paper-stage{padding:10px}.paper-footer{font-size:5px}.app-footer>span:last-child{display:none}.score-footer{gap:8px}}
@media(max-width:650px){.app-header{padding:14px 16px;gap:10px;flex-wrap:wrap;min-height:77px}.brand{font-size:26px}.app-name{order:3;width:100%;font-size:11px;border:0;padding:0;margin-top:-7px}.beta{display:none}.header-actions{margin-left:auto}.header-actions button span{display:none}.header-actions button{width:32px;min-height:32px;padding:6px}.intro{margin-bottom:20px}.intro h1{font-size:25px}.intro p:last-child{font-size:11px}.intro>.secondary{min-width:35px;width:35px;height:35px;padding:8px;gap:0}.intro>.secondary span{display:none}.eyebrow{font-size:8px;letter-spacing:1.15px}.workspace{grid-template-columns:1fr;gap:20px}.controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}.panel{padding:15px}.section-title{margin-bottom:14px;gap:7px}.section-title h2{font-size:12px}.step{width:21px;height:21px;font-size:10px}.dropzone{padding:14px 6px 11px;gap:3px}.upload-icon{width:32px;height:32px;border-radius:9px}.upload-icon svg{width:19px;height:19px}.dropzone strong{font-size:11px}.dropzone>span:not(.upload-icon){font-size:9px}.dropzone small{font-size:7px;margin-top:7px}.sample-button{font-size:8px;gap:5px;padding-top:10px;line-height:1.5}.sample-button>i:last-child{display:none}.sample-button>i:first-child svg{width:12px;height:12px}.key-journey{gap:5px;padding-bottom:12px;margin-bottom:12px}.key-journey span{font-size:8px}.key-journey strong{font-size:14px}.key-journey>i svg{width:12px;height:12px}.field-label{font-size:10px}.key-select{grid-template-columns:26px 1fr 26px;gap:4px}.key-select select{font-size:11px;padding:6px 14px 6px 4px;min-height:35px}.key-select button{min-height:35px;font-size:17px}.transpose-note{gap:4px;flex-wrap:wrap;margin-top:6px}.transpose-note>span{font-size:8px}.transpose-note .text-button{font-size:8px;gap:4px}.transpose-note .text-button svg{width:11px;height:11px}.advanced{margin-top:10px;padding-top:10px}.advanced summary{font-size:9px}.advanced label{font-size:10px}.advanced select{font-size:10px;max-width:100%}.sidebar-note{grid-column:1/-1;font-size:9px;line-height:1.5;margin:0 3px}.sidebar-note svg{width:13px;height:13px;margin:0}.result-toolbar{flex-wrap:nowrap;margin-bottom:12px}.view-tabs button{font-size:10px;padding:6px 9px}.result-actions .quiet{display:none}.result-actions .secondary{min-width:32px;width:32px;padding:6px;min-height:35px}.result-actions .primary{font-size:10px;min-height:35px;padding:7px 10px;gap:5px}.result-actions svg{width:15px;height:15px}.paper-tools{margin-bottom:12px}.badge{font-size:8px}.paper-tools select{font-size:9px}.paper-tools label{font-size:9px;gap:3px}.paper-stage{min-height:295px;padding:9px}.paper h2{font-size:16px}.paper-kicker{font-size:6px;margin-bottom:5px}.paper .credit{font-size:7px}.paper-key{font-size:10px}.paper-footer{font-size:5px}.score-footer{font-size:8px;gap:8px}.score-footer .text-button{font-size:8px}.app-footer{margin-top:23px;font-size:8px;padding-block:14px}.dialog-header,.dialog-body{padding:18px}.dialog-header h2{font-size:19px}.dialog-footer{padding:14px 18px}.note-fields{flex-wrap:wrap}.note-fields label{min-width:60px}.note-fields button{font-size:11px}.page-range{gap:4px;grid-template-columns:1fr 6px 1fr}.page-range input{min-width:0}#readButton{font-size:10px;gap:4px;padding:8px 6px}.file-chip{padding:7px 5px;gap:5px}.file-chip>i{display:none}.file-chip strong{font-size:9px}.file-chip small{font-size:8px}.file-chip .icon-only{width:21px}.warning-box{font-size:10px}}
@media(max-width:370px){.controls{grid-template-columns:1fr}.panel{padding:17px}.dropzone{padding:17px}.sample-button{font-size:10px}.key-journey strong{font-size:18px}.key-journey span{font-size:10px}.key-select select{font-size:13px}.field-label,.advanced summary{font-size:11px}.transpose-note>span,.transpose-note .text-button{font-size:10px}.sidebar-note{grid-column:auto}.paper h2{font-size:13px}.result-actions .secondary{display:none}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media print{@page{size:A4 landscape;margin:0}body{background:white!important}body>*:not(main),.intro,.controls,.result-toolbar,.paper-tools,.score-footer,.app-footer,.warning-box,.toast,dialog{display:none!important}main{padding:0!important;max-width:none;margin:0}.workspace{display:block}.result{width:100%}.paper-stage{display:block;background:white;border:0;padding:0;overflow:visible;min-height:0}.paper{width:297mm;height:210mm;padding:10mm 12mm;aspect-ratio:auto;break-after:page;box-shadow:none;overflow:hidden}.paper:last-child{break-after:auto}.paper.portrait{width:210mm;height:297mm;max-width:none;padding:13mm 12mm}.paper h2{font-size:23px}.paper-kicker{font-size:9px}.paper .credit{font-size:11px}.paper-key{font-size:15px}.paper-footer{font-size:9px;bottom:10mm;left:12mm;right:12mm}.paper.portrait .paper-footer{left:12mm;right:12mm}.source-image,.source-message{display:none!important}}
.transport{display:flex;align-items:center;gap:9px;padding:12px 13px;background:var(--surface);border:1px solid var(--border);border-radius:10px;margin-bottom:14px}.transport>.primary{min-width:148px;font-size:12px}.transport>.icon-only{width:34px;min-height:36px}.tempo-control{display:flex;gap:6px;align-items:center;font-size:10px;color:var(--muted);white-space:nowrap}.tempo-control input{width:56px;min-height:33px;font-size:12px;font-weight:650;text-align:center;padding:6px}.tempo-control small{font-size:8px}.transport>input{flex:1;min-width:30px;padding:0;accent-color:var(--blue);border:0}.transport>output{font-size:10px;color:var(--muted);min-width:29px;font-variant-numeric:tabular-nums}.volume-control{display:flex;align-items:center;gap:7px;font-size:9px;color:var(--muted)}.volume-control input{width:55px;padding:0;accent-color:var(--blue);border:0}.write-bar{border:1px solid #a8c9f4;background:var(--blue-soft);border-radius:9px;padding:12px;margin-bottom:14px;display:flex;flex-wrap:wrap;align-items:center;gap:9px}.write-bar>strong{font-size:11px;color:var(--blue)}.write-bar>span{font-size:10px;color:var(--muted)}.write-bar>div{display:flex;gap:6px;align-items:center;margin-left:auto;flex-wrap:wrap}.write-bar button{min-height:30px;font-size:10px;padding:6px 9px}.write-bar .icon-only{width:30px;padding:6px}.write-bar .icon-only svg{width:14px;height:14px}.active-edit{background:var(--blue-soft)!important;color:var(--blue)!important}.writing .notation .note,.writing .notation .rest,.writing .notation .mRest,.writing .notation .harm{cursor:pointer}.writing .notation .note:hover,.writing .notation .rest:hover,.writing .notation .harm:hover{color:#005ac8;fill:#005ac8;filter:drop-shadow(0 0 4px #005ac844)}.playing-note{color:#005ac8!important;fill:#005ac8!important}.field-row{display:flex;gap:14px;align-items:end;margin-bottom:16px}.field-row>label{display:flex;gap:7px;flex-direction:column;font-size:11px;color:var(--muted);flex:1;min-width:0}.field-row select,.field-row input{width:100%}.field-row .check-label{display:flex;flex-direction:row;gap:7px;align-items:center;padding-bottom:10px;flex:none}.field-row .check-label input{min-height:15px;width:16px;accent-color:var(--blue)}.small{font-size:11px!important}.danger{color:#ac3d35;margin-right:auto}.danger:hover{background:#ac3d3510}.piano-credit{font-size:10px;color:var(--muted)}
@media(max-width:1100px){.volume-control{display:none}.transport{gap:7px;padding:10px}.transport>.primary{min-width:135px;font-size:11px}.tempo-control{font-size:0;gap:3px}.tempo-control input{font-size:11px;width:48px}.tempo-control small{font-size:8px}}
@media(max-width:820px){.transport{flex-wrap:wrap}.transport>input{flex-basis:65%;order:4;min-height:20px}.transport>output{order:5}.tempo-control{margin-left:auto}.transport>.primary{min-width:123px}.write-bar .quiet{font-size:9px}}
@media(max-width:650px){.transport{flex-wrap:nowrap;padding:9px;gap:6px}.transport>.primary{min-width:120px;font-size:10px;padding:7px 9px;min-height:34px}.transport>.primary svg{width:14px;height:14px}.transport>.icon-only{width:28px;padding:5px;min-height:33px}.transport>.icon-only svg{width:14px;height:14px}.tempo-control{margin:0}.tempo-control input{width:44px;font-size:10px}.tempo-control small{font-size:7px}.transport>input{order:0;flex-basis:auto;max-width:none}.transport>output{order:0;font-size:9px}.write-bar>div{margin-left:0}.write-bar>span{font-size:9px}}
@media(max-width:390px){.transport>input{display:none}.transport>output{margin-left:auto}}
@media print{.transport,.write-bar{display:none!important}.playing-note{fill:black!important;color:black!important}}
.notation .note,.notation .rest,.notation .mRest,.notation .harm{pointer-events:bounding-box}

.local-reader-note{font-size:10px;color:var(--muted);line-height:1.65;margin:12px 0 0}

.chords-dialog{width:min(700px,94vw)}.chord-help{font-size:13px;line-height:1.7;color:var(--muted);margin-top:0}.chords-table{width:100%;border-collapse:collapse;font-size:13px}.chords-table th,.chords-table td{text-align:left;padding:10px 8px;border-bottom:1px solid var(--border)}.chords-table th{font-size:11px;color:var(--muted)}.chords-table td:last-child{text-align:right}.chords-table strong{font-size:17px}.notation .harm{cursor:pointer}.notation .harm:hover{fill:var(--blue)}@media(max-width:700px){.result-toolbar{flex-wrap:wrap}.result-actions{flex-wrap:wrap}.chords-table td,.chords-table th{padding:8px 5px}}

.source-key{font-size:12px}.source-key-help{font-size:10px;line-height:1.6;color:var(--muted);margin:7px 0 16px}.read-progress{display:flex;align-items:center;gap:14px;padding:16px;margin:0 0 14px;background:var(--blue-soft);border:1px solid var(--border);border-radius:10px;color:var(--blue)}.read-progress>div{min-width:0}.read-progress strong{font-size:13px;line-height:1.6;display:block}.read-progress small{font-size:11px;display:block;margin-top:4px}.read-progress.error{background:#fff3e5;color:#89530a}.read-progress .spinner{flex-shrink:0}

.reader-consent{width:min(760px,94vw)}.reader-consent .dialog-body{font-size:13px;line-height:1.65}.reader-consent h2{font-size:22px}.consent-facts{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px 16px;margin:20px 0}.consent-facts dt{font-weight:700}.consent-facts dd{margin:0;overflow-wrap:anywhere}.consent-facts a,.consent-footnote a{text-decoration:underline}.consent-limits{background:var(--blue-soft);border:1px solid var(--border);padding:14px;border-radius:9px}.consent-limits p{margin:5px 0 0}.consent-footnote{font-size:11px;color:var(--muted);margin-bottom:0}@media(max-width:550px){.consent-facts{grid-template-columns:1fr;gap:4px}.consent-facts dd{margin-bottom:10px}.reader-consent .dialog-footer{flex-wrap:wrap}.reader-consent .dialog-footer button{white-space:normal}}
/* Always-visible controls and one dedicated editing window. */
.open-settings{display:grid;gap:10px;margin-top:18px;border-top:1px solid var(--border);padding-top:14px}.open-settings>label{display:flex;flex-direction:column;gap:5px}.open-settings>p{font-size:11px;line-height:1.5;margin:0}.song-version-bar{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:12px 0;flex-wrap:wrap}.song-version-bar>div{display:flex;gap:5px;flex-wrap:wrap}.song-version-bar [aria-pressed=true],.score-workshop [aria-pressed=true]{color:var(--blue);background:var(--blue-soft);border-color:#83b2f1}.chord-play-toggle{display:flex;align-items:center;gap:6px;font-size:11px;white-space:nowrap}.chord-play-toggle input{min-height:auto}.saved-song{width:100%;justify-content:space-between;margin-top:8px}.saved-song small{color:var(--muted)}
dialog.score-workshop{width:calc(100vw - 32px);max-width:1550px;height:calc(100dvh - 32px);max-height:none;padding:0;border:1px solid var(--border);border-radius:16px;background:var(--bg);color:var(--text);overflow:hidden}.workshop-header{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:18px 22px;background:var(--surface);border-bottom:1px solid var(--border)}.workshop-header h2{font-size:21px;margin:0 0 4px}.workshop-header small{color:var(--muted)}.workshop-header-actions{display:flex;gap:6px;flex-wrap:wrap}.workshop-body{display:grid;grid-template-columns:minmax(0,1fr) 310px;height:calc(100% - 105px);overflow:hidden}.workshop-main{overflow:auto;padding:18px;min-width:0}.workshop-tools{overflow:auto;background:var(--surface);border-left:1px solid var(--border);padding:18px}.workshop-tools h3{font-size:13px;margin:17px 0 10px}.workshop-position{display:flex;align-items:end;gap:7px;flex-wrap:wrap;margin-bottom:15px}.workshop-position label{display:flex;flex-direction:column;gap:4px;font-size:11px}.workshop-position select{min-width:75px}.workshop-preview{background:white;color:#182b43;border:1px solid var(--border);border-radius:10px;min-height:230px;padding:16px}.workshop-preview>svg{width:100%;height:auto;display:block;margin:10px 0}.workshop-preview .note,.workshop-preview .rest,.workshop-preview .mRest{cursor:pointer}.workshop-preview .note:hover,.workshop-preview .rest:hover,.workshop-selected{fill:#005ac8!important;stroke:#005ac8!important}.workshop-preview .harm{fill:#005ac8}.workshop-note-strip{display:flex;gap:6px;overflow:auto;padding:14px 0}.workshop-note-strip button{flex-direction:column;min-width:63px;gap:3px}.workshop-note-strip small,.workshop-beat small{font-size:10px;color:var(--muted)}.workshop-chords{padding:14px;background:var(--blue-soft);border:1px solid #b9d2f5;border-radius:10px}.workshop-chord-heading{display:flex;gap:15px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.workshop-chord-heading span{font-size:11px;color:var(--muted)}.workshop-beat-grid{display:flex;gap:6px;flex-wrap:wrap}.workshop-beat{flex:1 0 65px;flex-direction:column;gap:6px;min-height:70px}.workshop-beat strong{font-size:19px}.workshop-tabs{display:flex;gap:6px}.workshop-tabs button{flex:1}.workshop-pitch-buttons,.workshop-accidentals,.workshop-lengths,.workshop-note-actions,.workshop-chord-palette{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}.workshop-pitch-buttons button{padding:8px;flex:1}.workshop-accidentals button{font-size:20px;flex:1}.workshop-octave{display:flex;align-items:end;gap:6px}.workshop-octave label{font-size:10px;display:flex;flex-direction:column;gap:4px;min-width:0}.workshop-octave input{width:62px}.workshop-octave button{padding:9px}.workshop-small{font-size:11px;line-height:1.6;color:var(--muted)}.workshop-chord-palette button{flex:1 0 55px;font-size:17px}.workshop-chord-input{display:flex;gap:6px;margin:8px 0 12px}.workshop-chord-input input{min-width:0;width:100%}.workshop-source{margin:14px 0;background:white;border-radius:10px}.workshop-source img{width:100%;height:auto}.workshop-save-dialog{max-width:540px}.workshop-save-dialog p{font-size:13px;line-height:1.7}.my-songs-dialog{width:min(600px,94vw)}
@media(max-width:900px){.workshop-body{grid-template-columns:minmax(0,1fr) 260px}.workshop-tools{padding:12px}.workshop-octave{flex-wrap:wrap}.transport{flex-wrap:wrap}.song-version-bar button{font-size:12px}}
@media(max-width:650px){dialog.score-workshop{width:100vw;height:100dvh;border-radius:0}.workshop-header{padding:12px;align-items:flex-start;gap:8px;flex-wrap:wrap}.workshop-header-actions{width:100%}.workshop-header-actions button{flex:1}.workshop-body{display:block;height:calc(100% - 155px);overflow:auto}.workshop-main{overflow:visible;padding:10px}.workshop-tools{overflow:visible;border-left:0;border-top:1px solid var(--border)}.workshop-preview{padding:5px;min-height:180px}.workshop-position #workshopSourceToggle{margin-left:auto}.workshop-chord-heading span{display:none}.workshop-save-dialog .dialog-footer{flex-wrap:wrap}.workshop-pitch-buttons button{min-width:32px}.workshop-chord-palette button{flex-grow:0}.song-version-bar{gap:7px}}
