/* One scroll surface, compact protected score markers, and a live reading tab. */
.lnj-cipher-editor .cipher-editor.cipher-tabbed .own-blocks{display:block!important;min-height:0;overflow:auto;scrollbar-width:thin}
.lnj-cipher-editor .cipher-editor.cipher-tabbed .own-blocks>.own-text-block,.lnj-cipher-editor .cipher-editor.cipher-tabbed .song-editing-text .own-blocks>.own-text-block{height:auto!important;min-height:0!important;flex:none!important;margin:0!important;padding:0!important}
.lnj-cipher-editor .cipher-editor.cipher-tabbed .own-text-block>.notation-input{flex:none!important;min-height:0!important;max-height:none!important;margin:0!important}
.lnj-cipher-editor .cipher-editor.cipher-tabbed .own-text-block textarea{min-height:0!important;resize:none!important;overflow:hidden!important;max-height:none!important;margin:0!important}
.lnj-cipher-editor .cipher-editor.cipher-tabbed .own-text-block>label{display:none!important}.lnj-cipher-editor .cipher-editor.cipher-tabbed .own-text-block:first-child>label{display:block!important;margin:0!important;padding:3px 0!important;font-size:12px!important}
.lnj-cipher-editor .cipher-editor.cipher-tabbed .own-part-card{display:flex!important;align-items:center;justify-content:flex-start;gap:8px;min-height:28px!important;height:auto!important;width:fit-content;max-width:100%;padding:2px 4px!important;margin:2px 0!important;border:0!important;border-radius:3px;background:transparent!important}
.lnj-cipher-editor .cipher-editor.cipher-tabbed .own-part-card>span,.lnj-cipher-editor .cipher-editor.cipher-tabbed .own-part-card p{display:none!important}.cipher-tabbed .own-part-card strong{font:600 13px/1.4 var(--mono,monospace)!important;color:var(--studio-blue);overflow-wrap:anywhere}.cipher-tabbed .own-part-card strong::before{content:'{{'}.cipher-tabbed .own-part-card strong::after{content:'}}'}
.lnj-cipher-editor .cipher-editor.cipher-tabbed .own-part-card button{height:26px!important;min-height:26px!important;font-size:11px!important;padding:0 6px!important;border:0!important;background:var(--studio-zebra-b)!important;margin:0!important}.cipher-tabbed .own-part-actions{display:flex;gap:4px}
.cipher-mode-tabs{display:inline-flex;gap:3px;align-self:end;padding:2px;background:var(--studio-zebra-b,var(--panel-2));border-radius:5px}
.lnj-cipher-editor .cipher-editor .cipher-mode-tabs button{border:0!important;background:transparent!important;color:var(--ink)!important;padding:0 10px!important;font:600 13px/1.2 var(--body,Arial)!important;border-radius:4px!important;box-shadow:none!important;white-space:nowrap}
.lnj-cipher-editor .cipher-editor .cipher-mode-tabs button[aria-selected=true]{background:var(--studio-zebra-a,var(--bg))!important;box-shadow:inset 0 -2px var(--studio-selected,var(--accent))!important}
.cipher-tab-preview{grid-row:2;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:10px;background:var(--bg);border-radius:5px}.cipher-tab-heading h3{font:700 20px/1.3 var(--body,Arial);margin:0 0 3px}.cipher-tab-heading p{font-size:14px;margin:0 0 12px}.cipher-tab-sheet>.song-sheet{border:0!important;margin:0!important;padding:4px!important;min-height:0}.cipher-tab-feedback,.cipher-tab-empty{font-size:14px;line-height:1.4;padding:5px;margin:0;color:var(--muted)}.cipher-tab-feedback:empty{display:none}.cipher-tab-feedback.is-error{color:var(--accent)}
.cipher-save-toast{position:fixed;right:18px;bottom:18px;z-index:1600;display:flex;gap:12px;align-items:start;box-sizing:border-box;width:min(440px,calc(100vw - 32px));padding:14px 16px;border-radius:7px;background:var(--ink,#14221a);color:var(--bg,#f1f2ec);font:14px/1.5 var(--body,Arial);box-shadow:0 5px 20px #0003}.cipher-save-toast button{flex:none;background:transparent;color:inherit;border:0;padding:0 3px;font:22px/1 Arial;cursor:pointer}.cipher-save-toast span{overflow-wrap:anywhere}
.cipher-editor.cipher-tabbed [hidden]{display:none!important}
@media(max-width:900px){.lnj-cipher-editor .cipher-editor.cipher-tabbed .own-part-card button{min-height:32px!important;height:32px!important}.cipher-mode-tabs{flex-basis:auto}.cipher-tab-preview{padding:6px}.cipher-tab-heading h3{font-size:18px}}

.lnj-cipher-editor .cipher-editor.cipher-tabbed .own-text-block .notation-input :is(textarea,pre){font-size:16px!important;line-height:1.65!important;padding:6px 8px!important}

.lnj-cipher-editor .cipher-editor.cipher-tabbed .own-part-card{flex-wrap:nowrap!important}.cipher-tabbed .own-part-card>div:not(.own-part-actions){min-width:0}.cipher-tabbed .own-part-actions{width:auto!important;margin-left:0!important;flex:none;flex-wrap:nowrap!important}.lnj-cipher-editor .cipher-editor.cipher-tabbed .own-part-actions button{min-width:28px!important;font-size:16px!important}

.lnj-cipher-editor .song-tools-toggle[hidden]{display:none!important}
