.sheet-editor{border:1px solid var(--border,#dce5df);border-radius:12px;padding:20px;margin:20px 0}.sheet-token-row{display:flex;gap:8px;overflow-x:auto;align-items:center}.sheet-part-tabs{display:flex;flex-wrap:nowrap;gap:4px;min-width:0;margin:0 0 18px;padding:0 0 7px;overflow-x:auto;overscroll-behavior-inline:contain;border-bottom:1px solid var(--border,#dce5df);scrollbar-width:thin}.sheet-part-tabs button{display:flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:auto;min-height:44px;padding:8px 13px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:12px;font-weight:650;white-space:nowrap}.sheet-part-tabs [aria-selected=true]{background:var(--soft);color:var(--green)}.sheet-token-row{flex-wrap:wrap;margin:6px 0 14px}.sheet-token-row button{border:1px solid var(--border,#dce5df);padding:5px 10px;border-radius:6px;cursor:grab;background:var(--surface,#fff);color:inherit}.sheet-editor textarea{width:100%;min-height:600px;line-height:1.5;resize:vertical}.sheet-section-label{color:#0F766E;font-weight:700}.sheet-cue{font-size:.9em;font-weight:400}.sheet-part-tabs button:focus-visible,.sheet-token-row button:focus-visible{outline:2px solid #2563EB;outline-offset:2px}@media(max-width:600px){.sheet-editor{padding:14px}.sheet-editor textarea{min-height:480px}.sheet-part-tabs button{padding-inline:12px}.sheet-token-row{max-height:110px;overflow:auto}}

.sheet-dropdowns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px}.sheet-picker{min-width:0}.sheet-picker select{width:100%;min-width:0}.sheet-picker button{margin-top:8px;padding:8px 12px;border:1px solid var(--border,#dce5df);border-radius:6px}.sheet-picker button:disabled{opacity:.45;cursor:default}@media(max-width:760px){.sheet-dropdowns{grid-template-columns:1fr;gap:12px}.sheet-picker{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}.sheet-picker button{margin:0;min-height:44px}}

.sheet-tools{margin-bottom:20px;border:1px solid var(--border,#dce5df);border-radius:10px;padding:12px 14px}
.sheet-tools>summary{cursor:pointer;font-size:14px;font-weight:600;line-height:1.5}
.sheet-tools-hint{display:block;font-size:12px;font-weight:400;color:var(--muted,#53645e);margin:2px 0 0 16px}
.sheet-tools[open]>.sheet-dropdowns{margin-top:16px}
.sheet-cue-input{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px}
.sheet-cue-input button{min-height:44px;padding:8px 12px;border:1px solid var(--border,#dce5df);border-radius:6px}
.sheet-tools label{margin:0}.sheet-insert-help{margin:10px 0 0}.sheet-editor [data-sheet-status]:empty{display:none}
@media(max-width:760px){
.sheet-editor{padding:12px;margin:16px 0;border-radius:10px}
.sheet-part-tabs{margin-bottom:14px}
.sheet-part-tabs button{padding-inline:12px}
.sheet-tools{padding:12px;margin-bottom:16px}.sheet-tools>summary{font-size:13px}
.sheet-picker{grid-template-columns:minmax(0,1fr) 66px;gap:8px}
.sheet-picker label,.sheet-cue-input label{font-size:12px;min-width:0}
.sheet-picker select,.sheet-cue-input input{font-size:16px;min-height:44px;padding:8px;width:100%;margin-top:5px}
.sheet-picker button,.sheet-cue-input button{font-size:12px;padding:8px;min-height:44px}
.sheet-cue-input{grid-template-columns:minmax(0,1fr) 66px;gap:8px}
.sheet-editor textarea{padding:12px 8px;min-height:55svh;font-size:14px;line-height:1.5;border-radius:8px}
.sheet-editor [role=tabpanel]>label{font-size:13px}.sheet-insert-help{font-size:12px}
}

.sheet-editor .sheet-cue-input{grid-template-columns:minmax(0,460px) auto;justify-content:start;align-items:end;gap:10px}
.sheet-editor .sheet-cue-input label{display:flex;flex-direction:column;align-items:stretch;gap:6px;width:100%}
.sheet-editor .sheet-cue-input input{display:block;width:100%;margin:0;min-height:44px}
.sheet-editor .sheet-cue-input button{margin:0;min-height:44px;white-space:nowrap;background:#14532d;color:#fff;border-color:#14532d;padding:10px 16px;align-self:end}
.sheet-editor .sheet-notes{display:block;margin-top:16px;color:#15803d}
.sheet-editor .sheet-notes textarea{display:block;min-height:100px;height:100px;margin-top:6px;color:#15803d;font-family:inherit;white-space:pre-wrap}
.song-section .section-note{color:#15803d;white-space:pre-wrap}
@media(max-width:760px){.sheet-editor .sheet-cue-input{grid-template-columns:minmax(0,1fr) auto;width:100%}.sheet-editor .sheet-cue-input button{padding:8px 12px}.sheet-editor .sheet-notes textarea{font-size:16px}}

/* Shared arrangement controls: quiet surfaces, consistent spacing and clear focus. */
.sheet-editor .sheet-tools{padding:0;border:1px solid var(--border,#dce5df);border-radius:12px;overflow:hidden;background:var(--surface,#fff);box-shadow:0 2px 8px rgba(15,23,42,.025)}
.sheet-editor .sheet-tools>summary{padding:16px 18px;font-size:14px;font-weight:600;letter-spacing:.01em;background:rgba(15,118,110,.045);color:inherit;min-height:52px;box-sizing:border-box}
.sheet-editor .sheet-tools[open]>summary{border-bottom:1px solid var(--border,#dce5df)}
.sheet-editor .sheet-tools>.sheet-insert-help{margin:0;padding:14px 18px 0;font-size:12px;color:var(--muted,#53645e)}
.sheet-editor .sheet-tools>.sheet-dropdowns{margin:0;padding:14px 18px 18px;gap:18px}
.sheet-editor .sheet-picker label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:500}
.sheet-editor .sheet-picker select{min-height:46px;margin:0;border-radius:8px;background:var(--surface,#fff);border:1px solid var(--border,#dce5df)}
.sheet-editor .sheet-picker button{border-radius:7px;min-height:40px;padding:8px 16px;background:rgba(15,118,110,.07);color:#0f766e;border:1px solid rgba(15,118,110,.16);font-weight:500}
.sheet-editor .sheet-picker button:not(:disabled):hover{background:rgba(15,118,110,.13)}
.sheet-editor .sheet-tools>.sheet-cue-input{padding:16px 18px;border-top:1px solid var(--border,#dce5df);box-sizing:border-box}
.sheet-editor .sheet-tools select:focus-visible,.sheet-editor .sheet-tools input:focus-visible,.sheet-editor .sheet-tools button:focus-visible,.sheet-editor .sheet-tools>summary:focus-visible{outline:2px solid #0f766e;outline-offset:3px}
.sheet-editor textarea[data-part-sheet]{min-height:820px;height:900px}
@media(max-width:760px){
.sheet-editor .sheet-tools>summary{padding:14px;font-size:13px}
.sheet-editor .sheet-tools>.sheet-insert-help{padding:12px 14px 0}
.sheet-editor .sheet-tools>.sheet-dropdowns{padding:12px 14px 16px;gap:14px}
.sheet-editor .sheet-picker button{min-height:46px;padding:8px}
.sheet-editor .sheet-tools>.sheet-cue-input{padding:14px}
.sheet-editor textarea[data-part-sheet]{min-height:680px;height:85svh}
}

.sheet-edit-actions,.preview-size{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}
.sheet-edit-actions button,.preview-size button{border:1px solid var(--line,#dce5df);border-radius:7px;padding:8px 14px;min-height:40px;background:var(--surface,#fff);color:inherit}
.sheet-edit-actions button:disabled{opacity:.4;cursor:default}
.sheet-live-preview{margin-top:20px;border:1px solid var(--line,#dce5df);border-radius:10px;padding:16px}
.sheet-live-preview summary{font-weight:600;cursor:pointer}.sheet-live-preview pre.aligned-chart{white-space:pre;overflow-x:auto;overflow-wrap:normal;line-height:1.5;font-family:'IBM Plex Mono','Courier New',monospace;max-height:650px}
.sheet-live-preview [data-preview-notes]{color:#15803d;white-space:pre-wrap}
.aligned-chart .sheet-section-label{display:inline-block;min-width:12ch;background:transparent;border-bottom:0;margin-top:.45em;color:#B58900;font-weight:700}
html[data-theme=dark] .aligned-chart .sheet-section-label{color:#FACC15}

.sheet-editor .sheet-edit-actions{gap:6px;margin:10px 0}.sheet-editor .sheet-edit-actions button{font-size:12px;line-height:1.2;min-height:32px;padding:6px 10px;border-radius:6px}

.aligned-chart .sheet-performance-cue{display:inline-block;max-width:100%;padding:1px 5px;border-radius:3px;background:#FEF08A;color:#422006;font-style:italic;font-weight:400;white-space:pre-wrap;overflow-wrap:anywhere}
html[data-theme=dark] .aligned-chart .sheet-performance-cue{background:#FEF08A;color:#422006}
.hide-cues .aligned-chart .sheet-performance-cue{display:none}
@media print{.aligned-chart .sheet-performance-cue{display:inline-block!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}}

/* Faster arrangement authoring tools. */
.sheet-copy-tools{display:grid;grid-template-columns:minmax(240px,1fr) auto;gap:10px;align-items:end;margin:0 0 18px;padding:16px 18px;border:1px solid var(--line,#dce5df);border-radius:8px;background:var(--surface,#fff)}
.sheet-copy-tools label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;min-width:0}
.sheet-copy-tools select{width:100%;min-height:42px}
.sheet-copy-tools button{min-height:42px;border:0;border-radius:7px;padding:9px 18px;background:#14532d;color:#fff;font-weight:650;line-height:1.2}
.sheet-copy-tools button:hover{background:#166534}
.sheet-editor:not(.arrangement-workspace) .sheet-part-switcher{display:block;margin-bottom:18px}.sheet-editor:not(.arrangement-workspace) .sheet-copy-tools{margin-top:0}
@media(max-width:760px){.sheet-copy-tools{grid-template-columns:1fr;padding:14px;margin-bottom:14px}.sheet-copy-tools button{width:100%;min-height:44px}}
