/* 共用操作栏属于谱面容器，不占用右页候选高度。 */
.score-stage{display:flex;flex-direction:column;min-height:0;overflow:hidden;background:var(--v2-paper);border:1px solid #dfe2de;border-radius:10px;box-shadow:0 4px 18px #173c3009}
.editor-v2 .score-stage>.paper-scroll{flex:1;min-height:0;border:0;border-radius:0;box-shadow:none}
.score-stage>.formal-preview{flex:1;min-height:0}
.formal-mode .score-stage{background:transparent;border:0;box-shadow:none}
.score-operation-tools{box-sizing:border-box;flex:none;min-height:68px;padding:7px 12px 6px;border-bottom:1px solid #dce5d4;background:#f8fbf3}
.score-operation-tools[hidden],.score-operation-tools [hidden]{display:none!important}
.score-operation-tools .score-tab-control{display:flex;gap:6px 14px;align-items:center;flex-wrap:wrap}
.score-operation-tools .score-operation-group{display:flex;align-items:center;gap:2px;border:0;padding:0}
.score-operation-tools .score-operation-group>span{font-size:12px;color:#51654c;margin-right:4px}
.score-operation-tools button{min-height:30px;padding:4px 7px;font-size:12px;border:0;border-radius:4px;background:transparent;color:#45644b;white-space:nowrap}
.score-operation-tools button[aria-pressed=true]{background:#e1ebd6;color:#245239;font-weight:600}
.score-operation-tools button:disabled{opacity:.45}.score-operation-tools button:focus-visible{outline:2px solid #75966d;outline-offset:1px}
.score-operation-tools .reopen-panel{margin-left:auto;background:#edf3e4;border:1px solid #c8d9b9}
.score-operation-cue{display:flex;align-items:baseline;gap:8px;min-height:18px;margin-top:4px;font-size:11px;line-height:1.6;color:#6b7c61;white-space:nowrap;overflow:hidden}
.score-operation-cue strong{flex-shrink:0;max-width:58%;overflow:hidden;text-overflow:ellipsis;color:#395c3b;font-weight:500}
.score-operation-cue>span{overflow:hidden;text-overflow:ellipsis}.score-operation-cue[data-notice=true]>span{color:#315f3b;font-weight:500}
.score-operation-tools.is-aligning{background:#f0f7e7;border-bottom-color:#8da77d}
.library-side .context-bar,.library-side[data-context-kind=beat] #context-page>.context-bar{height:40px;min-height:40px}
.library-side .context-body{padding-block:10px}.library-side .library-tabs{min-height:30px}.library-side .library-tabs>button{min-height:30px}
.library-side .rhythm-controls{padding-block:2px!important}.library-side .rhythm-mode-buttons button{min-height:28px}
.library-side .object-editor-tabs{padding-block:3px}.library-side .object-editor-tabs button{min-height:30px}
.library-side .apply-area{padding-block:6px!important}.library-side #eligibility:empty{display:none}
.library-side #apply-options{margin-block:0}.library-side .apply-actions{margin-top:4px!important}
.library-side .event-rhythm-editor{padding:6px 12px;height:auto}.library-side .event-rhythm-scroll{margin-bottom:3px;padding-bottom:0}
.library-side .event-rhythm-preview{padding-bottom:25px}.library-side .event-beat-brackets{height:24px}.library-side .event-beat-brackets span{height:22px;padding-top:5px}
.library-side .event-rhythm-options{gap:4px;margin:5px 0}.library-side .event-rhythm-options button{min-height:32px;padding:4px 6px}
.library-side .event-rhythm-options strong{font-size:11px}.library-side .event-extend-choice{margin:6px 0}
.library-side .event-rhythm-tip{margin:6px 0}.fill-target-note{font-size:11px;line-height:1.5;color:#42684a;margin-bottom:3px}
body[data-score-object=note] .bar-select,body[data-score-object=event] .bar-select,body[data-score-object=rhythm] .bar-select,body[data-score-object=beat] .bar-select{outline:none!important;background:transparent!important;box-shadow:none}
body[data-score-object=note] .measure-caption,body[data-score-object=event] .measure-caption,body[data-score-object=rhythm] .measure-caption,body[data-score-object=beat] .measure-caption{background:transparent;color:#7d8c77}
.score-edit-top #track-controls{gap:3px 6px}
.editor-v2 .formal-editing .library-side.editing-popover{top:max(126px,var(--score-controls-bottom,150px))}
@media(max-width:900px),(pointer:coarse) and (orientation:landscape) and (max-width:1200px){.editor-v2 .library-side.editing-popover{top:max(116px,var(--score-controls-bottom,116px))}}
@media(pointer:coarse){.score-operation-tools button{min-height:36px}.score-operation-tools .score-tab-control{gap:5px 10px}.score-operation-tools .score-operation-group{flex-wrap:wrap}}
@media print{.score-operation-tools{display:none!important}.score-stage{border:0;box-shadow:none;overflow:visible}}

.library-page[data-rhythm-view=measure] #meter-follow{display:none}.library-side .apply-target{align-items:center!important;gap:6px!important;min-height:25px}.library-side .apply-target strong{flex:1;min-width:0}.library-side .apply-target span{flex:none;font-size:10px!important}.library-side #apply-options:not([open]){flex:none;white-space:nowrap}.library-side #apply-options>summary{font-size:11px;line-height:25px}.library-side .apply-area .apply-target:has(#apply-options[open]){min-height:25px}.library-side #adjust-selected{margin-top:7px;max-width:none;min-height:34px}.library-side #eligibility{grid-column:1/-1}

/* 图形保持完整，品位与技巧共用下方滚动区；其他弦仍在底部。 */
.library-side .note-editor-main{display:flex;flex-direction:column;overflow:hidden!important}
.library-side .note-editor-main .note-graphic{flex:none}
.library-side .note-palette{flex:1;min-height:0;overflow-y:auto;scrollbar-gutter:stable}
.library-side .note-editor-body:has(.simultaneous-notes[open]) .note-editor-main{display:block;overflow-y:auto!important}
.library-side .note-editor-body:has(.simultaneous-notes[open]) .note-palette{overflow:visible}
.library-side .fret-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:3px}
.library-side .fret-grid button{font-size:18px;min-height:30px}
.library-side .note-palette-title{flex-wrap:wrap;gap:4px;font-size:13px}
.library-side .graphic-note[aria-pressed=true]{outline:2px solid #75966d;outline-offset:2px}
.library-side .note-caption,.library-side .graphic-foot button{font-size:12px}
.library-side .simultaneous-notes summary,.library-side .connection-choices button{font-size:13px}
.score-operation-tools .score-operation-group>span,.score-operation-tools button{font-size:13px}
.score-operation-cue{font-size:12px;min-height:20px}.selection-tools #selection-hint{font-size:12px;line-height:1.6}
.measure-caption{z-index:4;font-size:12px;min-height:22px;padding:1px 5px;border-radius:4px;cursor:grab;transition:background-color .12s,color .12s}
.measure-caption:hover,.measure-caption:focus-visible{color:#245239;background:#e1ebd6;outline:1px solid #a9c09c}
.measure-caption[aria-pressed=true]{background:#e8f0e0;color:#245239}
.editing-hint,.library-side .results-head,.library-side .fill-target-note{font-size:12px}
@media(max-height:800px){
  .library-side .melody-scene.is-empty{height:126px}
  .library-side .melody-scene.is-empty .melody-note-cell{height:80px}
  .library-side .melody-scene.is-empty .melody-gap{top:12px;min-height:42px}
  .library-side .note-graphic,.library-side .note-graphic>svg{height:148px}
  .library-side .graphic-note,.library-side .note-graphic .harmonic{top:78px}
  .library-side .graphic-grace{top:53px}.library-side .graphic-link{top:48px}.library-side .graphic-grace-link{top:54px}
  .library-side .vibrato,.library-side .bend{top:27px}.library-side .accent{top:106px}
  .library-side .note-caption.current{display:none}
  .library-side .note-graphic .graphic-note.current{height:46px;min-height:46px;width:52px;font-size:34px}
  .library-side .note-graphic .accent{top:111px;min-height:18px;height:18px}
  .library-side .graphic-foot button{min-height:24px;height:24px;padding-block:2px}
}
