/* Complete, justified score page; only sounding staves occupy the page. */
.mahler-score-profile .live-score-section .score-grid{display:block!important}
.mahler-score-profile .live-score-section .score-box{--score-paper:#f2eedf;--score-ink:#36352f;width:100%;max-width:none;background:var(--score-paper);background-image:none;border:1px solid #cdc4ad;box-shadow:none;border-radius:4px;padding:0 22px 10px;overflow:hidden}
.mahler-score-profile .score-box .live-score-scroll{width:100%;height:auto!important;max-height:none!important;overflow-x:auto!important;overflow-y:hidden!important;padding:0;scrollbar-gutter:auto;overscroll-behavior-x:contain;overflow-anchor:none;scroll-behavior:auto}
.mahler-score-profile .score-box .live-score-inner{min-width:0!important;width:100%!important;max-width:none!important;min-height:0!important;margin:0!important;padding:0!important;zoom:1!important;position:relative;color:#36352f}
.live-system-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;height:48px;color:#85775d;font:11px/1.5 var(--font-cn-body),sans-serif;letter-spacing:.05em;white-space:nowrap;border-bottom:1px solid #d8cfba;margin:0 0 5px}
.live-system-work{padding-left:2px}.live-system-hint{font-size:9px;color:#9d9178;letter-spacing:.04em;padding-right:2px}
.live-system-measures{display:flex;height:27px;box-sizing:border-box;font-variant-numeric:tabular-nums}
.live-measure-number{flex:none;text-align:left;padding:2px 0 4px 3px;color:#a39b88;font:10px/1.5 var(--font-cn-body),sans-serif;border-top:1px solid transparent}
.live-measure-number:hover,.live-measure-number.is-current{color:#956a2e;border-top-color:transparent}
.live-system-paper{position:relative;min-height:250px}
.live-part{position:relative;display:block;margin:0;padding:0;border:0;overflow:visible;background:transparent;min-height:0}.live-part[hidden]{display:none!important}
.live-part-name{position:absolute;left:0;top:0;bottom:0;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;padding:0 13px 0 0;font:10px/1.55 var(--font-cn-body),sans-serif;color:#7c6e53;overflow-wrap:break-word;word-break:normal;text-align:right;letter-spacing:.01em;z-index:1}.live-part-name small{font-size:8px;line-height:1.7;color:#a0957c;letter-spacing:.03em}
.live-system-row{display:block!important;width:auto!important;max-width:none!important;height:auto;overflow:visible;color:#36352f}
/* The paper belongs to the page. Staff ink may cross a row's vertical box;
   keep only the horizontal measure crop so ledger lines stay visible. */
.live-system-row,.live-system-row>.live-measure-ink{background:transparent}
.live-system-row>.live-measure-ink{overflow:visible}
.live-system-row .note{fill:#36352f;color:#36352f}.live-system-row .is-sounding{fill:#a97525!important;stroke:#a97525!important;color:#a97525!important}.live-system-row .is-sounding path{fill:inherit}
.live-system-cursor{position:absolute;top:4px;width:1px;background:#b58c43;opacity:.85;pointer-events:none;z-index:2;box-shadow:0 0 0 3px #bc944d08}.live-system-cursor:before{content:'';position:absolute;top:-3px;left:-2px;width:5px;height:5px;border-radius:50%;background:#b58c43}.live-system-cursor[hidden],.live-score-silence[hidden]{display:none!important}
.live-score-silence{position:absolute;inset:8px 0 auto;min-height:220px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#a1967c;font:11px/1.8 var(--font-cn-body),sans-serif;letter-spacing:.14em}.live-rest-symbol{font:36px/1.2 serif;color:#afa38b}.live-score-silence p{margin:12px 0}
.live-page-footer{height:34px;display:flex;align-items:center;justify-content:space-between;margin-top:8px;border-top:1px solid #d8cfba;color:#998969;font:10px/1.5 var(--font-cn-body),sans-serif}
.mahler-score-profile .live-score-section .score-caption{position:relative;border-top:0;padding:3px 2px 0;margin:0;font-size:9px;color:#998969;min-height:22px;display:flex;justify-content:space-between;gap:12px}
.live-score-section .mahler-score-status{background:#f2eedff5;color:#8a7446;top:12px}.live-score-glyphs{position:absolute;width:0;height:0;overflow:hidden}.live-score-glyphs>svg{width:0;height:0}
.mahler-score-profile .score-box.score-fullscreen-active{position:fixed;padding:36px 24px 10px;display:flex;flex-direction:column;overflow-y:auto!important}.mahler-score-profile .score-box.score-fullscreen-active .live-score-scroll{height:auto!important;max-height:none!important;overflow-y:visible!important;flex:none;min-height:0}.mahler-score-profile .score-box.score-fullscreen-active .live-score-inner{min-height:0!important}.mahler-score-profile .score-box.score-fullscreen-active .score-caption{flex:none}
@media(max-width:700px){.mahler-score-profile .live-score-section .score-box{padding:0 10px 8px}.live-system-heading{height:43px;font-size:10px;gap:10px}.live-system-hint{font-size:8px}.live-part-name{font-size:9px;padding-right:10px}.live-page-footer{font-size:9px}.mahler-score-profile .score-box.score-fullscreen-active{padding:35px 10px 10px}.mahler-score-profile .live-score-section .score-caption{font-size:8px;flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.live-score-section *{scroll-behavior:auto!important}}

/* Keep one stable heading for each instrument, with its distinct voices together. */
.live-instrument-group{position:relative;overflow:visible;background:transparent}.live-instrument-label{position:absolute;left:0;top:0;bottom:0;display:flex;align-items:center;justify-content:flex-end;padding-right:13px;color:#7c6e53;font:10px/1.6 var(--font-cn-body),sans-serif;text-align:right;z-index:2}.live-instrument-group:has(.live-part + .live-part)>.live-instrument-label:after{content:'';position:absolute;right:3px;top:12px;bottom:12px;width:4px;border-left:1px solid #bcb29a;border-top:1px solid #bcb29a;border-bottom:1px solid #bcb29a}.live-instrument-group .live-part-name{display:none!important}
@media(max-width:700px){.live-instrument-label{font-size:9px;padding-right:10px}}

/* German vocal underlay is outside the notation crop and remains during rests. */
.live-vocal-lyrics{position:absolute;left:0;color:#65573e;font-family:Georgia,"Times New Roman",serif;line-height:1.5;letter-spacing:0;pointer-events:none}.live-lyric-syllable{position:absolute;white-space:pre}.live-lyric-extend{position:absolute;height:1px;border-bottom:1px solid #8f8065;opacity:.7}

/* Position follows the native media clock on the compositor; no lagging CSS transition. */
.live-system-cursor{left:0;will-change:transform;transition:none;backface-visibility:hidden}

/* Score-only part display: native controls remain keyboard accessible. */
.score-part-selector{position:relative;z-index:5;margin:0 0 10px;border-block:1px solid var(--line,#ffffff18);color:var(--text,#eee8db);font:12px/1.6 var(--font-cn-body),sans-serif}
.score-part-summary{list-style:none;display:flex;align-items:center;gap:18px;min-height:42px;padding:7px 12px;cursor:pointer;user-select:none}
.score-part-summary::-webkit-details-marker{display:none}.score-part-summary:after{content:'⌄';margin-left:auto;font-size:17px;color:#b8a076;transition:transform .15s}.score-part-selector[open]>.score-part-summary:after{transform:rotate(180deg)}
.score-part-value{color:#cfb57d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.score-part-summary:focus-visible,.score-part-selector input:focus-visible,.score-part-restore:focus-visible,.score-part-clear:focus-visible{outline:2px solid #d8b575;outline-offset:3px;border-radius:3px}
.score-part-panel{position:absolute;top:calc(100% + 1px);left:0;width:min(100%,580px);max-height:min(480px,65vh);overflow-y:auto;padding:16px;border:1px solid #5c5342;border-radius:0 0 5px 5px;background:#13191e;box-shadow:0 15px 36px #0006;box-sizing:border-box}
.score-part-panel-top{display:flex;align-items:center;justify-content:flex-end;gap:8px}.score-part-options{border:0;margin:0;padding:0;min-width:0}.score-part-selector input{accent-color:#d6b475;width:15px;height:15px;flex:none;margin:0}
.score-part-restore,.score-part-clear{border:1px solid #6b5e46;border-radius:4px;padding:5px 12px;color:#d6bd8a;white-space:nowrap;font:inherit}.score-part-restore:hover,.score-part-clear:hover{background:#d6b47512}.score-part-restore[aria-pressed=true]{background:#d6b4751c}
.score-part-selection-status{font-size:11px;color:#a5aaa9;margin:12px 0;border-bottom:1px solid #ffffff13;padding-bottom:12px;overflow-wrap:anywhere}.score-part-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 12px}.score-part-options>.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.score-part-option{display:flex;align-items:center;gap:9px;min-height:38px;padding:5px 7px;border-radius:3px;cursor:pointer;box-sizing:border-box}.score-part-option:hover{background:#ffffff07}.score-part-option:has(input:checked){background:#d5b67d0c}.score-part-option-name{min-width:0;overflow-wrap:anywhere;color:#c6c8c4}.score-part-option.is-page-active .score-part-option-name{color:#ece4d2}.score-part-option small{font-size:9px;margin-left:auto;color:#7e888a;white-space:nowrap}.live-instrument-group[hidden]{display:none!important}
@media(max-width:480px){.score-part-summary{padding-inline:3px}.score-part-panel{width:100%;padding:12px}.score-part-panel-top{gap:8px}.score-part-restore,.score-part-clear{padding:5px 8px}.score-part-options{column-gap:4px}.score-part-option{gap:6px;padding-inline:3px;font-size:11px}.score-part-option small{display:none}}
@media(prefers-reduced-motion:reduce){.score-part-summary:after{transition:none}}

/* The same part menu follows the score into native or fallback fullscreen. */
.score-part-panel{color:#eee8db}
.score-fullscreen-active>.score-part-selector{flex:none;width:min(580px,calc(100% - 48px));max-width:100%;margin:0 0 8px;color:#65563b;border-color:#b8aa87}
.score-fullscreen-active>.score-part-selector .score-part-value,.score-fullscreen-active>.score-part-selector>.score-part-summary:after{color:#8e672e}
.score-fullscreen-active>.score-part-selector .score-part-summary{padding-inline:2px}
.score-fullscreen-active>.score-part-selector .score-part-panel{max-height:min(480px,60vh)}
