@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700&family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#253a35;background:#f4f6f5;font-size:16px;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #dfab3e;outline-offset:4px}header{height:94px;display:flex;align-items:center;justify-content:space-between;padding:0 5%;background:#fff;border-bottom:1px solid #e3e8e5}.brand{display:flex;gap:12px;align-items:center;font-family:Manrope,sans-serif;font-size:27px;font-weight:800;color:inherit;text-decoration:none}.logo{display:grid;place-items:center;width:39px;height:42px;border-radius:12px;background:#2d6959;color:white;font-size:30px}.beta{font-size:11px;letter-spacing:2px;font-weight:600;margin-left:14px;color:#73847c}.header-note{color:#78877f;font-size:14px}.outline{background:white;border:1px solid #dce3df;border-radius:9px;padding:12px 16px;font-size:14px;font-weight:600}.outline:hover{background:#f1f6f3}main{max-width:1440px;margin:auto;padding:44px 5%}.heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}.eyebrow{font-size:12px;font-weight:700;letter-spacing:1.8px;color:#778980}h1,h2,h3{font-family:Manrope,sans-serif}h1{font-size:30px;letter-spacing:-1px;margin:10px 0 0;font-weight:700}.badge{background:#e7eeea;border:1px solid #d9e4dd;border-radius:30px;padding:8px 14px;font-size:13px;color:#587063}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}.score-card,.panel{background:white;border:1px solid #e0e6e2;border-radius:16px;overflow:hidden;box-shadow:0 5px 15px #20392d03}.score-top{display:flex;align-items:center;justify-content:space-between;padding:29px 30px 20px}.score-top h2{font-size:25px;letter-spacing:-.7px;margin:9px 0}.score-top p{color:#829087;font-size:14px;margin:0}.text-button{background:none;border:0;font-size:14px;color:#517365}.score-instruction{display:flex;justify-content:space-between;font-size:13px;padding:16px 30px;background:#f9fbfa;border-block:1px solid #edf0ee;color:#7b8981}.score-instruction span:last-child{color:#32644e;font-weight:600}#score{min-height:290px;padding:12px 18px;overflow:auto}#measures{display:flex;gap:8px;flex-wrap:wrap;padding:0 30px 25px}#measures button{width:38px;height:35px;border:1px solid #e1e8e3;border-radius:7px;background:white;font-size:14px}#measures button.selected{background:#e4efe9;color:#286650;border-color:#91b7a6}#measures button.current{background:#306d59;color:white}.transport{display:flex;align-items:center;gap:15px;border-top:1px solid #edf0ee;padding:22px 30px}.play{background:#2d6959;border:0;border-radius:10px;color:white;padding:15px 22px;font-weight:600;font-size:15px;min-width:180px}.play:hover{background:#245344}.icon-button{background:none;border:0;font-size:25px}.check{display:flex;align-items:center;gap:6px;font-size:14px;white-space:nowrap}input[type=checkbox]{accent-color:#2d6959;width:16px;height:16px}.timer{margin-left:auto;white-space:nowrap;font-size:14px;font-variant-numeric:tabular-nums}.timer span{color:#9aa79f}.progress{height:3px;background:#eef3ef}.progress div{height:100%;width:0;background:#c9a455}#status{padding:14px 30px;font-size:13px;color:#7b8980;min-height:46px}aside{display:grid;gap:20px}.panel{padding:24px}.panel-title{display:flex;align-items:center;justify-content:space-between}.panel-title h2{font-size:17px;margin:0}.panel-title>span{font-size:25px;color:#7b9185}.muted{font-size:13px;color:#869188;margin:9px 0 24px;line-height:1.6}.track{margin-bottom:25px}.track>div{display:flex;align-items:center;gap:10px;font-size:14px}.track output{margin-left:auto;color:#718579;font-size:13px}.track-icon{padding:6px 10px;background:#e8f0eb;border-radius:7px;font-size:20px;color:#3b705a}.yellow{background:#fcf1d8;color:#9c7c2c}input[type=range]{width:100%;height:5px;accent-color:#34715b;cursor:pointer;margin:20px 0 13px}.track small{font-size:12px;color:#8d978f;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.wide{width:100%}.tempo-value{display:flex;align-items:center;justify-content:space-between;margin:20px 0 3px}.tempo-value button{border:1px solid #e1e6e2;background:white;width:33px;height:33px;border-radius:50%;font-size:20px}.tempo-value div{text-align:center}.tempo-value strong{display:block;font-family:Manrope;font-size:42px;letter-spacing:-2px}.tempo-value span{font-size:11px;letter-spacing:2px;color:#8b978f}.range-label{display:flex;justify-content:space-between;font-size:11px;color:#8c998f}.range-label button{font-size:11px;border:0;background:none;color:#537460;padding:0}.tempo-note{font-size:12px;color:#84968a;text-align:center;margin:18px 0 0}.future{display:flex;align-items:center;gap:20px;margin-top:24px;padding:23px 28px;border:1px dashed #d3dfd7;border-radius:14px}.future-icon{font-size:27px;background:#e7ede8;border-radius:12px;padding:12px 18px;color:#63806e}.future h3{font-size:17px;margin:7px 0}.future p{font-size:14px;color:#859087;margin:0}.future .badge{margin-left:auto;background:transparent}dialog{border:1px solid #d7e3db;border-radius:18px;max-width:530px;width:90%;padding:32px;color:#283d31}dialog::backdrop{background:#16332970;backdrop-filter:blur(3px)}dialog h2{margin-top:0}dialog p{line-height:1.6;font-size:14px;color:#758379}.close{float:right;border:0;background:none;font-size:25px}.file-label{display:grid;gap:10px;border:1px solid #dce4de;border-radius:10px;padding:15px;margin-top:15px;font-size:14px}.file-label span,.hint{font-size:12px!important;color:#849087}input[type=file]{max-width:100%;font-size:13px}#importStatus{font-size:14px;margin-top:16px;line-height:1.5;color:#805b24}@media(min-width:1500px){main{padding-top:60px}}@media(max-width:1000px){.workspace{grid-template-columns:minmax(0,1fr)}aside{grid-template-columns:1fr 1fr}.header-note{display:none}}@media(max-width:600px){header{height:75px;padding:0 20px}.beta{display:none}.brand{font-size:23px}main{padding:28px 16px}h1{font-size:24px}.heading>.badge{display:none}.score-top{padding:22px}.score-top h2{font-size:21px}.score-instruction{padding:14px 20px;gap:12px;font-size:12px}.transport{padding:16px;gap:10px;flex-wrap:wrap}.play{min-width:165px}.timer{margin-left:0}.check{margin-left:auto}aside{grid-template-columns:1fr}.future{padding:20px}.future-icon{display:none}.future .badge{font-size:11px;padding:5px 8px}.future p{font-size:13px}#measures{padding-inline:20px}}

.sync-summary{font-size:12px;line-height:1.5;color:#6f8577;margin:14px 0 0}.sync-settings{background:#f5f8f6;padding:20px;border-radius:12px;margin:20px 0}.sync-settings h3{font-size:16px;margin:0 0 16px}.sync-settings label{display:block;font-size:14px;font-weight:600}.sync-settings select,.sync-settings input{width:100%;background:white;color:#253a35;border:1px solid #c9d8cf;border-radius:7px;padding:10px;margin-top:8px;font:inherit}.sync-settings select{font-size:14px;margin-bottom:16px}.setting-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.setting-grid span{font-size:12px;display:block;font-weight:400;color:#7b8a80;margin-top:6px}.sync-settings input:disabled{background:#e8eee9;color:#73877a}#syncStatus{font-size:13px;line-height:1.4;color:#805b24}.score-hit-layer{position:absolute;inset:0;pointer-events:none;z-index:4}.score-hit{position:absolute;pointer-events:auto;border:0;background:transparent;border-radius:4px;padding:0;cursor:pointer}.score-hit.measure-hit:hover{background:#30705a12;outline:1px solid #30705a45}.score-hit.note-hit:hover,.score-hit.note-hit:focus-visible{background:#d9ad4650;outline:2px solid #b78b32}.score-hit.measure-hit:focus-visible{outline:3px solid #2d6959;background:#30705a12}.score-hit.note-hit{z-index:2}#score img[id^="cursorImg"]{pointer-events:none}dialog{max-height:90vh;overflow:auto}#play{min-width:180px} .score-instruction{gap:20px}.score-instruction span:last-child{white-space:nowrap}@media(max-width:420px){.setting-grid{grid-template-columns:1fr}.score-instruction{flex-direction:column;gap:6px}}

html:not(.teacher-mode) .teacher-only{display:none!important}.workspace{grid-template-columns:minmax(0,1fr) 250px}.score-top{padding-bottom:22px}.score-instruction{justify-content:flex-end;background:white;padding:8px 30px 0;border:0}.score-card{min-height:460px}.track{margin:0 0 22px}.track:last-of-type{margin-bottom:0}.track input{margin-top:16px}.play,#play{min-width:68px;font-size:22px;padding:10px 20px}.transport{padding-block:20px}#status:empty{display:none}#status{font-size:16px;color:#587460;text-align:center}#status:not(:empty){padding-block:12px}html:not(.teacher-mode) .score-top h2{margin-top:0}.score-hit-layer .score-hit{color:transparent}@media(max-width:1000px){.workspace{grid-template-columns:minmax(0,1fr)}aside{grid-template-columns:1fr 1fr}}@media(max-width:600px){aside{grid-template-columns:1fr 1fr;gap:12px}.panel{padding:16px}.tempo-value strong{font-size:34px}.tempo-value button{width:28px;height:28px;font-size:17px}.tempo-value{gap:8px}.tempo-panel .panel-title h2{font-size:15px}.transport{gap:12px}.check{margin-left:0}.timer{margin-left:auto}.score-card{min-height:0}.score-top{padding:20px}.track-icon{padding:5px 8px}}
#score{max-height:54vh;min-height:250px;overflow:auto;scrollbar-color:#b9cbbf transparent}.score-hit.note-hit:hover{background:#d9ad4625}.score-card{min-height:0}

[hidden]{display:none!important}.header-actions{display:flex;align-items:center;gap:20px}.header-actions .text-button{font-size:15px}.back-link{background:none;border:0;padding:0;margin:0 0 24px;font-size:15px;color:#517365}.library-heading{margin-bottom:30px}.library-heading h1,.book-heading h1{font-size:36px;letter-spacing:-1.2px;margin:0}.book-card{width:330px;max-width:100%;text-align:left;background:white;border:1px solid #dce5df;border-radius:16px;padding:14px;position:relative;transition:transform .18s,box-shadow .18s}.book-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px #20392d0c}.book-cover{height:330px;display:flex;flex-direction:column;position:relative;overflow:hidden;padding:26px;background:#275b4e;border-radius:8px;color:#fff}.cover-brand{font-weight:700;font-size:16px;letter-spacing:-.5px}.cover-title{font:700 39px Manrope,sans-serif;letter-spacing:-1.5px;margin-top:30px}.cover-number{font:600 145px Manrope,sans-serif;line-height:1;color:#c7dfce;letter-spacing:-12px;margin-left:-7px}.cover-level{font-size:11px;letter-spacing:2px;margin-top:auto;color:#dcebe1}.book-card-details{display:flex;flex-direction:column;align-items:flex-start;padding:20px 8px 10px;gap:8px}.book-card-details strong{font:700 21px Manrope,sans-serif}.book-card-details>span:not(.book-state){font-size:14px;color:#7a8b80}.book-state{font-size:12px;border-radius:20px;padding:5px 10px;background:#edf2ed;color:#657c6c;white-space:nowrap}.book-arrow{position:absolute;bottom:75px;right:28px;font-size:23px;color:#46765d}.book-view{max-width:920px}.book-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px}.book-heading h1{margin-top:8px}.book-heading p{font-size:15px;color:#76897d;margin:10px 0 0}.song-list{background:white;border:1px solid #dfe6e1;border-radius:14px;overflow:hidden}.song-list-heading{padding:20px 24px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #edf1ee}.song-list-heading h2{font-size:17px;margin:0}.song-list-heading>span{font-size:13px;color:#7c8d81}.song-row{display:flex;align-items:center;gap:20px;width:100%;background:white;border:0;padding:24px;text-align:left}.song-row:hover{background:#f6faf7}.song-symbol{background:#e7f0e9;width:46px;height:46px;border-radius:10px;display:grid;place-items:center;font-size:26px;color:#3e7058}.song-info{display:flex;flex-direction:column;gap:7px}.song-info strong{font-weight:600;font-size:17px}.song-info>span{font-size:14px;color:#809086}.song-open{margin-left:auto;color:#3c7159}.book-empty{font-size:14px;color:#849489;margin:20px 0}.tempo-slider{position:relative}.tempo-slider input{position:relative;z-index:2}.original-marker{position:absolute;left:calc(100% - 8px);width:2px;height:12px;background:#bc9a4e;top:24px;pointer-events:none;z-index:1}.tempo-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:13px}.original-tempo{font-size:12px;color:#8b8267;white-space:nowrap}.original-tempo.at-original{color:#48735c}.reset-tempo{border:1px solid #d7e1da;border-radius:7px;padding:7px 10px;background:white;color:#3f6953;font-size:13px}.reset-tempo:hover:not(:disabled){background:#edf3ef}.reset-tempo:disabled{cursor:default;color:#8b9b90;border-color:#e6ece7;background:#fafcfb}.tempo-value{margin-bottom:6px}@media(max-width:600px){.header-actions{gap:12px}.book-cover{height:290px}.library-heading h1,.book-heading h1{font-size:30px}.tempo-footer{flex-direction:column;gap:10px}.reset-tempo{width:100%}.song-row{padding:20px;gap:14px}.song-info strong{font-size:16px}.book-heading{gap:18px}}

.tempo-footer{justify-content:center}

@media(max-width:600px){.brand{font-size:20px;gap:9px}.header-actions{gap:10px}.beta{display:none}.logo{flex-shrink:0}}

.book-grid{display:flex;flex-wrap:wrap;gap:24px}.book-cover{padding:0;justify-content:center}.book-cover>.cover-title,.book-cover>.cover-number{margin-inline:24px}.book-cover-image{width:100%;height:100%;object-fit:contain}.cover-preview{width:140px;max-height:190px;object-fit:contain;margin-top:14px}.mic-panel{display:flex;align-items:center;gap:18px}.mic-button{border:1px solid #d9e4dc;background:#f4f8f5;color:#587663;border-radius:50%;width:48px;height:48px;display:grid;place-items:center;flex-shrink:0}.mic-button.active{background:#2d6959;color:white}.mic-label{display:block;font-size:13px;color:#7b8d80}#melodyScore{font-size:28px;font-weight:600;display:block;margin-top:5px}#micStatus,#coverStatus,#booksStatus{font-size:14px;line-height:1.5;color:#82612e}#micDialog input{font:inherit;padding:10px;width:100%;border:1px solid #cbd9d0;border-radius:7px}#micStart{margin-top:20px}@media(max-width:600px){.mic-panel{grid-column:1/-1}.book-card{width:100%}.book-grid{gap:18px}}
.admin-toolbar{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:24px 0}.admin-toolbar label{display:grid;gap:6px}.admin-toolbar input{width:100px;padding:10px;border:1px solid #c6cec9;border-radius:8px;font:inherit}.admin-song-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px;border-bottom:1px solid #dce3de}.admin-song-row strong{font-size:17px;overflow-wrap:anywhere}.admin-song-meta{display:block;margin-top:5px;font-size:14px;color:#627169}.song-actions{display:flex;gap:7px;flex-wrap:wrap;flex-shrink:0}#songForm input:not([type=file]),#songForm select{width:100%;padding:11px;border:1px solid #c6cec9;border-radius:8px;background:white;color:inherit;font:inherit}#songForm small{display:block;overflow-wrap:anywhere;color:#627169}#songForm label{display:grid;gap:8px}#adminView .library-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}#importDialog{max-height:90vh;overflow:auto}#adminStatus,#importStatus{white-space:pre-line}#adminView[hidden],#songForm[hidden],#coverEditor[hidden]{display:none}@media(max-width:700px){.admin-song-row{align-items:start;flex-direction:column}.song-actions{width:100%}.song-actions button{flex:1}#adminView .library-heading{align-items:start;flex-direction:column}}
/* Compact controls retain touch targets. */
.tempo-panel{padding:16px 18px;align-self:start}.tempo-panel .panel-title{margin-bottom:8px}.tempo-panel .panel-title h2{font-size:15px}.tempo-panel .panel-title>span{display:none}.tempo-value{gap:8px;margin:4px 0}.tempo-value strong{font-size:30px;line-height:1.1}.tempo-value span{font-size:12px}.tempo-value button{min-width:44px;min-height:44px}.tempo-panel input[type=range]{margin-top:8px;margin-bottom:0}.tempo-footer{margin-top:4px}.tempo-footer .reset-tempo{width:auto;min-height:40px;padding:6px 12px}.original-marker{top:16px}.book-loading{display:block;width:330px;max-width:100%;height:420px;border-radius:14px;background:#e9eeeb}.cover-loading{background:#e9eeeb}.cover-loading img{opacity:0}.song-credit{font-size:14px;line-height:1.5;margin:10px 0 0;color:#52665a}.song-rights{padding:12px 24px;border-top:1px solid #edf1ee;font-size:14px}.song-rights summary{cursor:pointer;color:#52665a}.song-rights p{white-space:pre-wrap;overflow-wrap:anywhere}.rights-fields{border-top:1px solid #dce4de;padding-top:20px;margin-top:24px}.rights-fields label{margin-top:12px}.rights-fields textarea{width:100%;min-height:75px;padding:10px;font:inherit;border:1px solid #c6cec9;border-radius:8px}.rights-fields .publish-check{display:flex!important;align-items:center;gap:10px}.rights-fields input[type=checkbox]{width:20px!important;height:20px}.rights-help{font-size:14px!important}.rights-status{font-size:13px;color:#846020;margin-top:6px;display:block}@media(max-width:600px){.tempo-panel{padding:12px}.tempo-value strong{font-size:28px}.tempo-footer{flex-direction:row}.song-credit{font-size:13px}.book-loading{width:100%}.tempo-panel .panel-title{margin-bottom:2px}}

#pieceTitle,.song-info strong,.admin-song-row strong{font-family:Inter,system-ui,sans-serif;font-weight:600;letter-spacing:-.035em;line-height:1.25}.song-rights{grid-column:1/-1;justify-self:end;width:fit-content;max-width:min(420px,100%);padding:10px 14px;border:1px solid #e0e6e2;border-radius:10px;background:#fff;font-size:13px}.song-rights summary{font-size:13px}.song-rights[open]{width:420px}.back-link{max-width:100%;text-align:left;line-height:1.5}.book-card-details strong{overflow-wrap:anywhere}#coverTitle{width:100%;font:inherit;padding:10px;margin:8px 0 12px;border:1px solid #c6cec9;border-radius:8px}

aside>.song-rights,aside>.song-rights[open]{grid-column:1/-1;justify-self:stretch;width:100%;max-width:none;margin:0;padding:16px 18px;border-radius:16px;align-self:start}.song-rights summary{min-height:24px;line-height:24px}.tempo-footer #tapTempo{min-height:44px;touch-action:manipulation}.tempo-footer #tapTempo.tapped{background:#2d6959;color:#fff;border-color:#2d6959}
.score-column{min-width:0;display:grid;gap:24px}.drum-panel{padding:18px 24px}.drum-panel summary{cursor:pointer;font-size:15px;font-weight:600;min-height:26px}.drum-panel svg{display:block;width:100%;max-width:650px;margin:16px auto 0}.drum-shadow{fill:#ccd6d1}.drum-surface{fill:#edf3f0;stroke:#6b877a;stroke-width:3}.drum-inner{fill:none;stroke:#b5c7bc;stroke-width:1.5}.cymbal .drum-surface{fill:#f3e4b6;stroke:#b29243}.cymbal .drum-inner,.drum-bell{fill:none;stroke:#cfb267}.drum-piece text{font:600 16px Inter,system-ui,sans-serif;fill:#304a3d}.drum-piece.hit .drum-surface{fill:#2d6959;stroke:#173f33;stroke-width:5}.drum-piece.hit text{fill:white}.drum-piece.hit .drum-inner{stroke:#a3d9c2}.drum-status{font-size:13px;color:#667b6e;margin:0}.melody-settings{margin-left:auto;font-size:21px;min-width:36px;min-height:44px;padding:4px}.mic-panel{gap:12px}.melody-options label{display:grid;gap:8px;margin:18px 0;font-size:14px;font-weight:600}.melody-options select{width:100%;padding:12px;border:1px solid #c6d3ca;border-radius:8px;background:white;color:inherit;font:inherit}.melody-options p{font-size:13px}#micDialog .close{min-width:44px;min-height:44px}@media(max-width:600px){.score-column{gap:12px}.drum-panel{padding:16px}.drum-piece text{font-size:19px}}

.clarinet-panel{margin-top:0;text-align:center}.clarinet-panel .instrument-panel-heading>button:first-child{width:100%;display:flex;justify-content:space-between;align-items:center}.clarinet-panel .instrument-panel-heading>button:first-child:after{content:'Av';font-size:12px;opacity:.7}.clarinet-panel .instrument-panel-heading>button:first-child[aria-expanded=true]{background:#2d6959;color:white}.clarinet-panel .instrument-panel-heading>button:first-child[aria-expanded=true]:after{content:'På'}#clarinetContent{padding-top:16px}#clarinetNote{display:block;font-size:24px;font-weight:650}#clarinetDiagram svg{display:block;width:220px;max-width:100%;height:330px;margin:0 auto}.clarinet-body{fill:#e6eae7;stroke:#4d6159;stroke-width:2}.clarinet-trim{stroke:#92a69a;stroke-width:5}#clarinetDiagram circle{fill:white;stroke:#62786b;stroke-width:2}#clarinetDiagram .pressed circle{fill:#215c49;stroke:#163f33}#clarinetDiagram text{font:10px sans-serif;fill:#405b4f}#clarinetDiagram .pressed text{fill:white}.fingering-legend{font-size:13px;margin:4px 0 8px}.clarinet-panel small{color:#6f7f76;font-size:11px}

.ensemble-picker{display:flex;align-items:center;gap:16px;padding:0 30px 20px;font-size:14px;color:#517365}.ensemble-picker select{font:inherit;background:#f3f7f4;border:1px solid #cbdad1;border-radius:8px;padding:10px 32px 10px 12px;max-width:100%}.ensemble-stem{border:1px solid #dce4de;border-radius:10px;padding:14px;margin:14px 0}.ensemble-stem legend{font-weight:600}.ensemble-stem label{display:grid;gap:6px;margin:10px 0;font-size:13px}.ensemble-stem input{max-width:100%}#bandLabel1{font-size:12px}@media(max-width:600px){.ensemble-picker{padding-inline:20px;flex-wrap:wrap;gap:8px}}

aside .drum-panel{margin-top:0;padding:20px}aside .drum-panel .instrument-panel-heading>button:first-child{width:100%;display:flex;justify-content:space-between;align-items:center}aside .drum-panel .instrument-panel-heading>button:first-child:after{content:'＋'}aside .drum-panel .instrument-panel-heading>button:first-child[aria-expanded=true]:after{content:'−'}aside .drum-panel svg{width:100%;height:auto;margin-top:14px}.clarinet-panel .instrument-panel-heading>button:first-child:after{content:'＋'}.clarinet-panel .instrument-panel-heading>button:first-child[aria-expanded=true]:after{content:'−'}@media(max-width:1000px){aside .clarinet-panel,aside .drum-panel{grid-column:1/-1}aside .drum-panel svg{max-width:420px;display:block;margin-inline:auto}}

.korps-cover{background:radial-gradient(ellipse at 80% 90%,#598275,transparent 60%),#1d493e;justify-content:flex-start;padding-top:28px;border:10px solid #315f50}.korps-cover .cover-title{font-family:Georgia,serif;font-size:38px;letter-spacing:-1px;color:#f5ecd4;order:0;margin-top:14px}.korps-cover .cover-number{font-size:148px;color:#d3b366;order:1;align-self:center;margin-top:12px;line-height:1}.korps-caption{order:2;margin:auto 24px 18px;font-size:12px;letter-spacing:1.4px;color:#e2e9da}

.guitar-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.guitar-heading h2{font-size:16px;margin:0}.guitar-heading button{font-size:26px;padding:2px 8px}#guitarDiagram svg,#guitarLargeDiagram svg{display:block;width:100%;height:auto;margin-top:14px}.guitar-wood{fill:none}.guitar-fret{stroke:#111}.guitar-string{stroke:#111}.guitar-string-name,.guitar-fret-number{fill:#111;font:14px sans-serif}.guitar-position circle{fill:#111;stroke:#111;stroke-width:2}.guitar-position text{fill:white;font:bold 13px sans-serif}.guitar-position.open-string circle{fill:white;stroke:#111}.guitar-position.open-string text{fill:#111}#guitarPosition{font-size:12px;line-height:1.5;margin-bottom:0;color:#536c5c}.guitar-dialog{width:90vw;max-width:900px}.guitar-dialog h2{font-size:22px}.guitar-dialog p{color:#3c594b;font-size:17px}@media(max-width:1000px){.guitar-panel{grid-column:1/-1}#guitarDiagram{max-width:480px;margin:auto}}

.instrument-panel-heading{display:flex;align-items:center;gap:4px}.instrument-panel-heading>button:first-child{flex:1;min-width:0;padding:10px;font-size:13px}.enlarge-instrument{font-size:26px;padding:3px 5px;flex-shrink:0}.instrument-zoom{width:90vw;max-width:850px}.instrument-zoom svg{display:block;width:100%;max-height:65vh;margin:auto}.instrument-zoom.zoom-clarinet{max-width:520px}#instrumentZoomDiagram .clarinet-body{fill:#e6eae7}#instrumentZoomDiagram [data-key] circle{fill:white;stroke:#62786b;stroke-width:2}#instrumentZoomDiagram [data-key].pressed circle{fill:#215c49;stroke:#163f33}#instrumentZoomDiagram [data-key] text{font:10px sans-serif;fill:#405b4f}#instrumentZoomDiagram [data-key].pressed text{fill:white}#instrumentZoomLabel{text-align:center;font-size:20px;color:#365c49}

.instrument-zoom.zoom-clarinet svg{max-height:55vh}

#violinDiagram svg{display:block;width:100%;max-height:290px}#violinNote{display:block;margin-top:15px;font-size:14px}#violinContent small{display:block;text-align:center;color:#63716a}

.instrument-zoom.zoom-violin{max-width:520px}.instrument-zoom.zoom-violin svg{max-height:50vh}

.band-view-open{margin:0 30px 20px;min-height:44px}.band-view{box-sizing:border-box;position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;border:0;border-radius:0;padding:0;background:#fff;color:#173e32}.band-view[open]{display:flex;flex-direction:column}.band-toolbar{display:flex;align-items:center;gap:16px;padding:12px 24px;background:#f0f5f2;border-bottom:1px solid #c9d8ce;flex:none}.band-toolbar strong{font-size:20px;margin-right:auto}.band-toolbar output{font-size:16px;min-width:130px}.band-toolbar button{font-size:16px;min-width:90px;min-height:44px}.band-toolbar .play{border-radius:10px}.band-toolbar .outline{background:white}#bandViewport{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px 0 36px}#bandScore{position:relative;min-width:100%;width:max-content;padding-top:20px}#bandScore>div:not(.band-overlay){min-width:100vw}.band-overlay{position:absolute;inset:20px 0 0;pointer-events:none}.band-measure{position:absolute;border:0;border-radius:0;background:transparent;padding:0;pointer-events:auto;cursor:pointer}.band-measure:hover,.band-measure:focus-visible{background:#2d695916;outline:2px solid #2d6959;outline-offset:-2px}.band-measure.is-current{background:#2d695909}.band-section{position:absolute;background:#173e32;color:white;border-radius:4px;padding:4px 10px;font-size:16px;font-weight:650;white-space:nowrap;z-index:2}.band-double-bar{position:absolute;border-right:4px double #496256;opacity:.45}#bandCursor{position:absolute;width:3px;background:#c54824;box-shadow:0 0 0 2px #c548241a;z-index:3;pointer-events:none}@media(max-width:600px){.band-toolbar{padding:8px;gap:8px;flex-wrap:wrap}.band-toolbar strong{font-size:16px}.band-toolbar output{font-size:14px;min-width:0}.band-view-open{margin-inline:20px}}

#score.has-chord-frames{overflow:auto}#score.has-chord-frames [id^="osmdCanvasPage"]{padding-top:150px}#score.has-chord-frames .score-hit-layer{top:150px}#score.has-chord-frames [id^="cursorImg"]{transform:translateY(150px)}.guitar-chord-rail{position:absolute;top:0;left:0;right:0;height:145px;pointer-events:none}.guitar-chord-frame{position:absolute;top:6px;width:108px;height:136px;color:#173e32;text-align:center}.guitar-chord-frame strong{position:absolute;top:0;left:0;right:0;font-size:18px}.guitar-chord-frame svg{width:108px;height:136px}

.teacher-view-panel .band-view-open,.guitar-panel .band-view-open{margin:0;width:100%;min-height:44px}.audio-tempo-panel>.tempo-panel{padding:16px 0 0;margin-top:20px;border-top:1px solid #dce4de}.audio-tempo-panel .track:last-of-type{margin-bottom:0}@media(max-width:600px){aside>.audio-tempo-panel{grid-column:1/-1}}
.pdf-panel{display:grid;gap:10px}.pdf-panel[hidden]{display:none}.pdf-button{display:block;text-align:center;text-decoration:none;min-height:44px;box-sizing:border-box}.pdf-upload-row{margin:12px 0;padding:12px;border:1px solid #dce4de;border-radius:10px}.pdf-upload-row label{display:block}.pdf-upload-row a,.saved-file-link{display:block;overflow-wrap:anywhere;margin:8px 0;font-size:14px}.pdf-upload-row .pdf-remove{display:flex;align-items:center;gap:8px;font-size:14px}.pdf-upload-row .pdf-remove input{width:auto!important}.admin-file-summary{display:block;font-size:13px;color:#52665a;margin-top:6px}

/* Generated brand artwork, shared by student and admin headers. */
header .brand{min-width:0;flex-shrink:1;height:100%;padding-block:8px;}
.brand-image{display:block;width:270px;max-width:100%;height:auto;max-height:100%;object-fit:contain;object-position:left center;}
@media(max-width:600px){header{gap:12px}.brand-image{width:210px}.header-actions{gap:12px;flex-shrink:0}}
@media(max-width:380px){header{padding-inline:12px}.brand-image{width:170px}.header-actions{gap:8px}}

/* Give the score more space while keeping the book navigation available. */
body:has(#practiceView:not([hidden])) > header{display:none}
body:has(#practiceView:not([hidden])) > main{padding-top:20px}

#trumpetNote{display:block;font-size:24px;font-weight:700;margin-top:18px;text-align:center}.valve circle{fill:#fff;stroke:#2d6959;stroke-width:3}.valve text{fill:#253a35;font:700 24px sans-serif}.valve.pressed circle{fill:#2d6959}.valve.pressed text{fill:white}.valve-caption{fill:#52675c;font:14px sans-serif}#trumpetDiagram svg{width:100%;display:block}.trumpet-panel small{color:#718579;font-size:11px}

.file-status{display:inline-block;border-radius:20px;padding:5px 10px;font-size:12px;font-weight:700;margin:8px 0}.file-status-published{background:#e2f2e8;color:#245b3a}.file-status-ready{background:#e7effa;color:#2a5077}.file-status-missing{background:#fff0df;color:#8b4b12}.admin-file-inventory{margin-top:10px;font-size:13px}.admin-file-inventory summary{cursor:pointer;color:#49675a}.admin-file-inventory ul{list-style:none;padding:0;margin:12px 0}.admin-file-inventory li{display:flex;gap:16px;justify-content:space-between;padding:7px 0;border-bottom:1px solid #edf0ee;overflow-wrap:anywhere}.admin-file-inventory small,.file-optional{color:#718579}.file-missing{color:#9b4a17}.admin-song-row>div:first-child{min-width:0;flex:1}
.test-access-panel{padding:18px;border:1px solid var(--line,#d8dfe5);border-radius:16px;margin:18px 0}.test-access-panel summary{cursor:pointer;font-weight:700}.test-access-panel p{max-width:70ch;line-height:1.5}.test-access-panel form{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.test-access-panel label{display:grid;gap:6px;flex:1;min-width:180px}.test-access-panel input,.test-access-panel select{width:100%;padding:10px;font:inherit}.test-link-row{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #d8dfe5}#newTestLink{margin:16px 0}#testAccessList{margin-top:16px}

/* Keep transport clickable above oversized horizontal score graphics. */
.band-toolbar{position:relative;z-index:5}#bandViewport{position:relative;isolation:isolate}

/* Book covers share the portrait 4:5 format used by the Canva series. */
.book-cover{height:auto;aspect-ratio:4 / 5;width:100%;}

/* A clean system sans-serif for the optional note names, including SVG text. */
#score .pitch-name-label,#score .pitch-name-label text{font-family:Arial,Helvetica,sans-serif!important;font-weight:500!important;font-style:normal!important;}

#loop[aria-pressed="true"]{background:#2d6959;color:white}#score .measure-hit.loop-selected{background:#2d69591a;border:2px solid #2d695966;border-radius:5px}

#loop{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px}#loop svg{display:block;flex:none}

.logout-form{display:inline-flex;margin:0}


body.score-expanded-open{overflow:hidden}
#scoreCard.score-expanded{position:fixed;inset:0;z-index:1000;width:100%;height:100dvh;max-width:none;border:0;border-radius:0;display:flex;flex-direction:column;background:white}
#scoreCard.score-expanded #score{flex:1;min-height:0;max-height:none;overflow:auto}
#scoreCard.score-expanded .score-top,#scoreCard.score-expanded .transport,#scoreCard.score-expanded .progress,#scoreCard.score-expanded #status,#scoreCard.score-expanded .ensemble-picker{flex-shrink:0}
#scoreFullscreen{margin-left:auto;white-space:nowrap}

/* Reserve diagram space during rests while keeping the fingering hidden. */
#clarinetDiagram[hidden],#trumpetDiagram[hidden],#windDiagram[hidden]{display:block!important;visibility:hidden}

#adminBook{max-width:100%;padding:10px;border:1px solid #c6cec9;border-radius:8px;background:white;color:inherit;font:inherit}

/* Enlarge tab digits without enlarging measures or changing line breaks. */
#score .vf-tabnote text,#bandScore .vf-tabnote text{font-size:13pt;font-weight:600;paint-order:stroke fill;stroke:white;stroke-width:3px;stroke-linejoin:round;transform:translate(-2px,1px)}
/* Enlarged tab digits extend above the first staff: keep SVG edges unclipped. */
#score svg[id^="osmdSvgPage"],#bandScore svg[id^="osmdSvgPage"]{overflow:visible}
/* Keep teacher playback below the score, matching the practice player. */
.band-view .band-toolbar{order:2;border-top:1px solid #c9d8ce;border-bottom:0}
.band-view #bandViewport{order:1}
.band-toolbar #bandViewPlay{order:-1}

/* Move the original transport into the teacher dialog; keep its event handlers. */
.band-view>.transport{order:3;flex:none;background:white;position:relative;z-index:6;margin:0;flex-wrap:wrap}
.band-view .band-toolbar{padding:6px 24px}
.sync-adjust-buttons{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}#displayDelay{width:100%}#displayDelayValue{display:block;font-variant-numeric:tabular-nums}
.sync-profiles{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.sync-profiles button{flex:1}.sync-profiles button[aria-pressed="true"]{background:#245d4e;color:#fff;border-color:#245d4e;box-shadow:inset 0 0 0 1px currentColor}
.metronome-controls{display:flex;align-items:center;gap:8px}.metronome-controls input{width:80px}.metronome-controls output{font-size:12px;min-width:35px}.metronome-controls button[aria-pressed="true"]{background:#245d4e;color:white;border-color:#245d4e}
.sync-profile-label{font-size:12px;color:#52645c;white-space:nowrap}
#metronomeToggle{display:inline-flex;align-items:center;gap:6px}#metronomeVolumeControls:not([hidden]){display:inline-flex;align-items:center;gap:8px}
.sync-control{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}.sync-control #displaySync{padding-right:2px}
.pdf-viewer[open]{display:flex;flex-direction:column;position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#fff}.pdf-viewer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;padding-top:max(12px,env(safe-area-inset-top));flex:none;border-bottom:1px solid #ddd}.pdf-viewer iframe{display:block;flex:1;min-height:0;width:100%;border:0}

.chord-mode #guitarPosition,.chord-mode #guitarLargePosition{text-align:center;font-size:1.4rem;font-weight:700;margin:6px 0 0}
.chord-mode #guitarDiagram svg,.chord-mode #guitarLargeDiagram svg{display:block;max-height:240px;margin:auto}

.chord-mode #guitarLargePosition{display:none}
.chord-mode #guitarLargeDiagram{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}
.chord-mode #guitarLargeDiagram strong{display:block;text-align:center;font-size:1.4rem;margin:6px 0 0}
.chord-mode #guitarLargeDiagram .chord-next{opacity:.35}

#score.score-rest [id^="cursorImg"]{opacity:.22!important;filter:grayscale(1)}
#guitarDiagram{min-height:180px}
#guitarLargeDiagram{min-height:260px}
#guitarDiagram{height:240px;display:flex;align-items:center;justify-content:center}#guitarDiagram svg{max-height:240px;margin-top:0}#guitarLargeDiagram{height:300px}#guitarLargeDiagram>svg{max-height:300px;margin-top:0}

#lyricsSheet{display:flex;flex-wrap:wrap;align-content:start;align-items:start;gap:14px 3px;max-height:65vh;overflow-y:auto;padding:24px;font-size:24px;line-height:1.6}
#lyricsSheet[hidden]{display:none}
.lyric-syllable{max-width:100%;overflow-wrap:anywhere;background:transparent;border:0;color:#153f33;padding:4px 5px;font:inherit;border-radius:6px;cursor:pointer;text-align:left}
.lyric-chord{display:block;font-weight:700;font-size:19px;min-height:30px}


.lyric-syllable.active{background:#f3ce5d;color:#102e24}

.lyric-word{display:inline-flex;align-items:start;white-space:nowrap;margin-right:8px}.lyric-word .lyric-syllable{padding-left:0;padding-right:0;overflow-wrap:normal}

.count-badge{position:absolute;transform:translateX(-50%);z-index:8;pointer-events:none;display:grid;place-items:center;min-width:60px;height:60px;padding:0 12px;border-radius:14px;background:#f3ce5d;color:#102e24;font:800 44px/1 system-ui,sans-serif;box-shadow:0 2px 8px #0003}.count-badge[hidden]{display:none}

#scoreCard{position:relative}

/* Modern, consistent lettering for chord names and fingering diagrams. */
.guitar-chord-frame strong,.lyric-chord,#guitarPosition,#guitarLargePosition,
#guitarLargeDiagram strong,#guitarDiagram text,#guitarLargeDiagram text,
.guitar-chord-frame text{font-family:'DM Sans',Arial,sans-serif;font-style:normal}
.guitar-chord-frame strong,.lyric-chord,#guitarLargeDiagram strong{font-weight:600;letter-spacing:-.02em}

#voiceButtons{display:flex;flex-wrap:wrap;gap:8px;padding:0;flex:1;justify-content:center;min-width:0}
#voiceButtons[hidden]{display:none}
#voiceButtons button{border-radius:9px;padding:10px 14px}
#voiceButtons button[aria-pressed="true"]{background:#245747;border-color:#245747;color:white}
#voiceButtons button:disabled{opacity:.6;cursor:wait}
.count-badge{background:#245747;color:#fff}

.score-top{flex-wrap:wrap;gap:12px}.score-top>div:first-child{min-width:0}.score-top #scoreFullscreen{flex-shrink:0}@media(max-width:700px){.score-top #voiceButtons{order:3;flex-basis:100%;justify-content:flex-start}}

#scoreActions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-left:auto;min-width:0}#scoreActions #voiceButtons{flex:0 1 auto;justify-content:flex-start}#scoreActions #scoreFullscreen{white-space:nowrap}@media(max-width:700px){#scoreActions{width:100%;justify-content:flex-start}#scoreActions #voiceButtons{order:0;flex-basis:auto}}

#scoreFullscreen{display:inline-grid;place-items:center;width:42px;height:42px;padding:0;border:0;border-radius:50%;background:#edf3ef;color:#245747;font-size:27px;line-height:1}#scoreFullscreen:hover{background:#dce9e1}#scoreFullscreen[aria-pressed="true"]{background:#dce9e1}

#stemMuteControls{position:relative;flex:0 0 auto;padding:0}#stemMuteControls[hidden]{display:none}#stemMuteControls summary{cursor:pointer;font-weight:600;list-style:none;display:inline-flex;align-items:center}#stemMuteControls summary::-webkit-details-marker{display:none}#stemMuteControls[open]{display:flex;flex-wrap:wrap;align-items:center;gap:6px}#stemMuteControls button{margin:8px 6px 0 0}#stemMuteControls button.muted{opacity:.55;text-decoration:line-through}

#samspillControls{display:contents}#samspillControls>button{flex:0 0 auto}#samspillLink{min-width:180px;max-width:100%;padding:8px}#samspillStatus{font-size:13px;color:#245747;flex-basis:100%}#samspillStatus:empty{display:none}

#samspillQRDialog{width:min(92vw,440px);text-align:center;border:0;border-radius:18px;padding:24px}#samspillQRImage svg{display:block;width:100%;height:auto;background:white}#samspillQRDialog::backdrop{background:#0008}

/* Session controls belong in teacher view, not the regular practice player. */
#samspillControls{display:none}
#bandView #samspillControls{display:contents}

#stemMuteControls{display:none}
#bandView #stemMuteControls:not([hidden]){display:block}

#samspillQRDialog #samspillLink{display:block;width:100%;margin:12px 0}#samspillQRDialog #samspillStatus{display:block;margin:12px 0}#samspillQRDialog button{margin:4px}#samspillQRDialog [hidden]{display:none!important}

.band-measure.loop-selected,.band-measure.loop-start{background:#2d695930;box-shadow:inset 0 0 0 2px #2d6959}.band-view .transport .tempo-panel{display:flex;align-items:center;gap:12px;margin:0;padding:0;border:0;flex:1 1 300px}.band-view .tempo-panel .panel-title{display:none}.band-view .tempo-panel .tempo-value{margin:0;gap:8px}.band-view .tempo-panel .tempo-slider{flex:1;min-width:90px;margin:0}.band-view .tempo-panel .tempo-footer{display:flex;gap:10px;margin:0}

.app-refresh{white-space:nowrap}#practiceView>.app-refresh{float:right;margin-bottom:12px}

/* Same development ribbon as the homepage book covers. */
.book-cover>.cover-banner{position:absolute;left:-53px;top:34px;width:210px;transform:rotate(-35deg);padding:8px 0;background:#153f36;color:#fffdf5;text-align:center;font-size:10px;font-weight:600;line-height:1.3;letter-spacing:.2px;box-shadow:0 2px 5px #0002;z-index:1;pointer-events:none}
@media(max-width:400px){.book-cover>.cover-banner{left:-57px;top:25px;width:190px;font-size:9px;padding:6px 0}}

.admin-module-nav{display:flex;gap:12px;margin:0 0 24px;flex-wrap:wrap}.admin-module-nav button[aria-pressed=true]{background:#245d4e;color:white;border-color:#245d4e}#accessCount:not(:empty){display:inline-block;background:#e9f0e8;color:#245d4e;border-radius:20px;padding:2px 7px;margin-left:5px}#testAccessPanel h3{margin-top:30px}#adminSongModule>#newSong{margin-bottom:18px}#testAccessBook{max-width:100%;padding:10px}#trialHistoryList{color:#65766b}

.install-help{margin:16px 0 24px;line-height:1.6}.install-help summary{cursor:pointer;font-weight:600}.install-help li{margin:10px 0}.install-help ul{padding-left:22px}#helpDialog{max-height:85dvh;overflow-y:auto}

#helpDialog,#installHelpDialog{width:min(520px,calc(100vw - 32px));max-height:85dvh;padding:28px;border-radius:16px}#helpDialog h2,#installHelpDialog h2{padding-right:28px;margin:0 0 24px}.help-menu{border:1px solid #dce5df;border-radius:10px;overflow:hidden}.help-menu>div:not([hidden])~div:not([hidden]){border-top:1px solid #e5ebe7}.help-menu-row{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;padding:18px 16px;background:white;border:0;text-align:left;text-decoration:none;color:#253a35;font:inherit;line-height:1.4}.help-menu-row:hover{background:#f1f6f3}.help-menu-row small{font-size:12px;color:#61776b;flex-shrink:0}.help-menu-row:focus-visible{outline-offset:-3px}#installHelpDialog .install-help{margin:0 0 24px}

.notation-choice{display:inline-flex;align-items:center;gap:5px;margin:4px}.notation-choice button{padding:6px 10px}.notation-choice button[aria-pressed="true"]{background:#245d4e;color:white}#bandNotationChoices{display:flex;flex-wrap:wrap;gap:10px;padding:4px 18px}

.take-panel{padding:18px;border:1px solid #dbe5df;border-radius:16px;background:white}.take-panel h2{font-size:1rem;margin:0 0 8px}.take-panel p{font-size:.82rem;color:#53645b}.take-panel label{display:block;margin:12px 0}.take-panel input[type=range]{width:100%}

.transport .record-button{width:40px;height:40px;padding:0;border-radius:50%;font-size:23px;color:#b32635;flex:none}.transport .record-button[aria-pressed="true"]{background:#b32635;color:white}.record-button[hidden]{display:none}

#scoreCard.score-expanded .transport{flex-wrap:wrap}#scoreCard.score-expanded .transport .tempo-panel{display:flex;align-items:center;gap:10px;flex:1 1 280px;padding:0;margin:0;border:0}#scoreCard.score-expanded .tempo-panel .panel-title{display:none}#scoreCard.score-expanded .tempo-value{margin:0}#scoreCard.score-expanded .tempo-slider{flex:1;min-width:80px;margin:0}#scoreCard.score-expanded .tempo-footer{display:flex;gap:8px;margin:0}

.book-access-divider{grid-column:1 / -1;width:100%;border:0;border-top:1px solid #cbd7d0;margin:12px 0}

