/* Opt-in chord-sheet surfaces: keep parsing, sharing, storage and PDF unchanged. */
.cipher-editor,.cipher-reader{--cipher-control:36px;--cipher-body:var(--body,Arial,sans-serif);box-sizing:border-box;min-width:0;color:var(--ink);height:var(--cipher-height,650px);display:grid!important;grid-template-rows:auto minmax(0,1fr) auto;gap:8px;padding:8px!important;margin:8px 0!important;border:1px solid var(--line);background:var(--panel)}
.lnj-cipher-reader .footer,.lnj-cipher-editor:not(.admin-with-navigation) .footer{display:none}.lnj-cipher-reader .detail-hero,.lnj-cipher-editor .detail-hero{padding-block:4px 6px}.lnj-cipher-reader .detail-hero h1,.lnj-cipher-editor .detail-hero h1{font-size:24px!important}.lnj-cipher-reader .detail-body,.lnj-cipher-editor .detail-body{display:block;padding-top:4px;padding-bottom:0}.lnj-cipher-reader .detail-sidebar{display:none}.lnj-cipher-reader .detail-main{width:100%}.lnj-cipher-reader .own-music>.own-nav,.lnj-cipher-reader .own-music>.own-privacy{display:none}.lnj-cipher-editor .own-music{max-width:none}
.cipher-toolbar{grid-row:1;display:flex;flex-wrap:wrap;align-items:end;gap:7px;min-width:0}.cipher-editor .cipher-toolbar>label{display:grid;gap:3px;font:500 14px/1.3 var(--cipher-body);margin:0;flex:1 1 150px;max-width:300px;min-width:0}.cipher-toolbar .own-nav,.cipher-toolbar .song-actions{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin:0!important}.cipher-editor-status{grid-row:3;font:14px/1.35 var(--cipher-body)!important;margin:0!important;padding:3px 0!important}.cipher-editor :is(button:not(.chord-piano-key),a.button,input:not([type=hidden]):not([type=range]),select),.cipher-reader :is(button:not([data-song-chord]),a.button,input:not([type=hidden]),select){box-sizing:border-box;height:var(--cipher-control)!important;min-height:var(--cipher-control)!important;padding:0 9px!important;margin:0!important;border-radius:3px;font:500 14px/1.2 var(--cipher-body)!important;max-width:100%;width:auto}.cipher-toolbar>label input{width:100%!important}.cipher-editor .cipher-toolbar :is(button.button,button.primary){background:var(--accent);color:var(--bg);border-color:var(--accent);gap:6px}.cipher-toolbar .cipher-popover{font:14px/1.3 var(--cipher-body);margin:0!important;padding:0!important;border:0!important;display:block!important;position:relative}.cipher-popover>summary{list-style:none;display:flex;align-items:center;box-sizing:border-box;min-height:var(--cipher-control,36px);padding:0 9px;border:1px solid var(--line);border-radius:3px;cursor:pointer;font:500 14px/1.3 var(--cipher-body,Arial,sans-serif)}.cipher-popover>summary::-webkit-details-marker{display:none}.cipher-popover[open]>summary{border-color:var(--accent)}.cipher-popover:not([open])>.cipher-popover-body{display:none}.cipher-popover-body{position:fixed;z-index:1500;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;background:var(--bg);color:var(--ink);padding:12px;border:1px solid var(--accent);border-radius:4px;box-shadow:0 15px 40px #0005;font:15px/1.5 var(--cipher-body,Arial,sans-serif)}.cipher-popover-body>.cipher-popup-close{display:block;margin:0 0 8px auto!important;width:36px;min-height:36px;background:var(--panel);color:var(--ink);border:1px solid var(--line);cursor:pointer}.cipher-popover-body :is(p,label,li){font-size:15px!important;line-height:1.5}.cipher-popover-body p{margin:8px 0!important;padding:0!important}.cipher-popover-body .song-fields,.cipher-popover-body .own-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cipher-popover-body label{display:grid;gap:4px;margin:8px 0}.cipher-popover-body :is(input,select){width:100%!important}.cipher-popover-body .song-public-nav,.cipher-popover-body .song-reading-actions{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0}.cipher-popover-body .song-service-link{padding:8px 0;margin:0}.cipher-popover-body .song-symbol-guide ul{display:grid;gap:6px}.cipher-popover-body .song-access-badge{padding:5px 0}.cipher-popover-body .song-favorite-form{margin:0}.cipher-editor .own-editor-layout,.cipher-editor .song-editing-layout{grid-row:2;min-height:0;height:100%;margin:0;align-items:stretch;grid-template-columns:minmax(0,1fr) 94px 330px;gap:9px}.cipher-mobile-panel{display:contents}.cipher-drawer-close{display:none}.cipher-editor .own-blocks{min-height:0!important;overflow:auto;padding-right:4px}.cipher-editor .song-editing-text{min-height:0;min-width:0}.cipher-editor .song-editing-text>label{font:14px/1.4 var(--cipher-body);display:block}.cipher-editor .song-editing-text textarea{box-sizing:border-box;min-height:0!important;resize:none;width:100%;font:16px/1.65 var(--mono,monospace);padding:10px}.cipher-editor .own-blocks textarea{font-size:16px!important;line-height:1.65;min-height:100px}.cipher-editor .own-blocks>.own-text-block:only-child textarea{min-height:0}.cipher-editor .own-tools,.cipher-editor .song-editor-tools,.cipher-editor .editor-reuse-column{position:static;top:auto;min-height:0!important;margin:0;max-height:100%;overflow:auto;overscroll-behavior:contain}.cipher-editor .editor-reuse-column{padding:3px}.cipher-editor .own-tools,.cipher-editor .song-editor-tools{padding:7px}.cipher-editor .chord-builder-inline fieldset{gap:3px;padding:4px}.cipher-editor .chord-builder-inline button:not(.chord-piano-key){padding-inline:5px!important;min-width:28px}.cipher-editor .chord-builder-inline legend,.cipher-editor .chord-builder-inline p,.cipher-editor .chord-builder-inline [data-builder-status]{font-size:14px!important;line-height:1.4}.cipher-editor .chord-builder-inline .chord-builder-result{margin:6px 0}.cipher-editor .chord-builder-inline .chord-builder-actions{flex-wrap:wrap;justify-content:start;gap:4px}.cipher-editor .chord-reuse summary{font-size:14px}.cipher-editor .chord-reuse-buttons{gap:5px}.cipher-editor .chord-reuse-buttons button{width:100%;padding:0 4px!important;overflow-wrap:anywhere}.cipher-editor .editor-parts{max-height:none}.cipher-preview{margin:10px 0;border:1px solid var(--line);padding:8px}.cipher-preview>summary,.cipher-context>summary{cursor:pointer;font:600 15px/1.5 var(--cipher-body,Arial,sans-serif);padding:5px}.cipher-preview>.song-panel{margin:0;border:0;padding:8px}.cipher-context{border:1px solid var(--line);margin:8px 0;padding:4px}.cipher-context>.song-panel{margin:0;border:0}.cipher-reader{grid-template-rows:auto minmax(0,1fr)}.cipher-reader>.cipher-toolbar{grid-row:1}.cipher-reader>.cipher-reading-sheet{grid-row:2;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;margin:0!important;box-sizing:border-box}.cipher-reader .song-public-filters{display:flex;align-items:end;flex-wrap:wrap;gap:6px;margin:0;padding:0;border:0}.cipher-reader .song-public-filters label,.cipher-reader .song-pdf-form label{display:grid;gap:3px;margin:0;font-size:14px;line-height:1.3}.cipher-reader .song-public-filters select[name=steps]{width:180px}.cipher-reader .song-public-filters select[name=spelling]{width:60px}.cipher-reader .song-pdf-form{display:flex;align-items:end;flex-wrap:wrap;gap:6px;margin:0!important;padding:0!important;border:0;background:none}.cipher-reader .song-pdf-form select{width:180px}.cipher-reader .song-pdf-form button{gap:6px}.cipher-reader .cipher-reading-key{font-size:14px;line-height:1.4;margin:0 5px 7px}.cipher-reader .cipher-toolbar>header{flex-basis:100%;border:0;padding:0;margin:0}.cipher-reader .cipher-toolbar>header h2{font:700 23px/1.25 var(--cipher-body);margin:0}.cipher-reader .cipher-toolbar>header p{display:inline;font-size:14px;margin:0 10px 0 0;line-height:1.4}.cipher-reader .cipher-toolbar>header a{font-size:14px}.cipher-preview-warning{padding:8px;margin:5px 0;font-size:14px}.cipher-reader .song-chord-panel :is(button,select){height:36px!important;min-height:36px!important;font-size:14px!important}.cipher-reader [hidden]{display:none!important}.cipher-editor :is(button,summary,input,select,textarea):focus-visible,.cipher-reader :is(button,summary,input,select):focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(min-width:901px) and (max-width:1200px){.cipher-editor .own-editor-layout,.cipher-editor .song-editing-layout{grid-template-columns:minmax(0,1fr) 80px 290px}.cipher-editor .chord-builder-inline [data-builder-controls]{grid-template-columns:1fr}}
@media(max-width:900px){.cipher-editor,.cipher-reader{--cipher-control:44px;gap:6px;padding:6px!important}.cipher-toolbar{gap:5px}.cipher-editor .cipher-toolbar>label{flex:1 1 42%;max-width:none;font-size:13px}.cipher-editor input,.cipher-editor select,.cipher-reader select{font-size:16px!important}.cipher-editor .cipher-toolbar :is(button,a.button){font-size:13px!important;padding-inline:7px!important}.cipher-popover>summary{min-height:44px;font-size:13px;padding-inline:7px}.cipher-popover-body .song-fields,.cipher-popover-body .own-fields{grid-template-columns:1fr}.cipher-popover-body>.cipher-popup-close{width:44px;min-height:44px}.cipher-editor .own-editor-layout,.cipher-editor .song-editing-layout{display:block}.cipher-editor .own-blocks{min-height:0!important}.cipher-editor .song-editing-text textarea{font-size:16px}.cipher-editor-status{font-size:14px!important}.cipher-reader .song-public-filters select[name=steps]{width:140px}.cipher-reader .song-public-filters select[name=spelling]{width:52px}.cipher-reader .song-pdf-form select{width:145px}.cipher-reader .song-public-filters button,.cipher-reader .song-pdf-form button{padding-inline:7px!important;font-size:13px!important}.cipher-reader .cipher-reading-key{margin:0;align-self:center}.cipher-reader .cipher-toolbar>header h2{font-size:20px}.cipher-reader .cipher-toolbar>header p{font-size:13px}.cipher-reader .song-chord-panel :is(button,select){height:44px!important;min-height:44px!important}.lnj-cipher-editor .cipher-mobile-panel{display:none}.lnj-cipher-editor.song-tools-open .cipher-mobile-panel{display:grid;grid-template-columns:74px minmax(0,1fr);grid-template-rows:44px minmax(0,1fr);gap:5px;position:fixed;inset:10px;z-index:1195;background:var(--bg);border:1px solid var(--line);padding:7px;box-sizing:border-box}.lnj-cipher-editor.song-tools-open .cipher-mobile-panel>.cipher-drawer-close{display:block;grid-column:1/-1;justify-self:end;width:44px;min-height:44px;min-width:44px;border:1px solid var(--line);background:var(--panel);color:var(--ink);padding:0!important;font-size:23px!important}.lnj-cipher-editor.song-tools-open .cipher-mobile-panel :is(.own-tools,.song-editor-tools,.editor-reuse-column){display:block!important;position:static!important;inset:auto!important;width:auto!important;height:100%!important;max-height:100%!important;min-height:0!important;padding:5px!important;margin:0!important;grid-row:2;align-self:stretch;overflow:auto;box-sizing:border-box}.lnj-cipher-editor.song-tools-open .cipher-mobile-panel .editor-reuse-column{grid-column:1}.lnj-cipher-editor.song-tools-open .cipher-mobile-panel :is(.own-tools,.song-editor-tools){grid-column:2}.lnj-cipher-editor.song-tools-open .song-tools-toggle{display:none}.lnj-cipher-editor .song-tools-toggle{width:44px;height:44px;min-height:44px}.lnj-cipher-editor.song-tools-open .chord-builder-inline [data-builder-controls]{grid-template-columns:minmax(0,1fr)}.lnj-cipher-editor.song-tools-open .chord-builder-inline button:not(.chord-piano-key){height:44px!important;min-height:44px!important;min-width:32px;font-size:13px!important}.lnj-cipher-editor.song-tools-open .chord-builder-inline select{height:44px!important;min-height:44px!important}.lnj-cipher-editor.song-tools-open .editor-reuse-column button{height:44px!important;min-height:44px!important}.cipher-editor .own-part-actions{display:flex;flex-wrap:wrap}}

.lnj-cipher-reader .detail-body.wrap,.lnj-cipher-editor .detail-body.wrap{padding-bottom:0!important}.cipher-reader{margin-bottom:0!important;max-width:none;width:100%}.cipher-preview:not([open]){border:0;padding:0;margin:0;height:0}.cipher-preview:not([open])>summary{display:none}.cipher-reader .song-public-filters{display:grid;grid-template-columns:minmax(110px,180px) 60px auto;align-items:end}.cipher-reader .song-public-filters select{width:100%!important}.cipher-reader .song-public-filters button,.cipher-reader .song-pdf-form button{width:auto!important}.cipher-reader .cipher-toolbar>header{min-height:0!important}.cipher-editor .chord-builder-inline .chord-builder-default-hint{font-size:13px!important}
@media(max-width:900px){.cipher-reader .song-public-filters{grid-template-columns:minmax(100px,1fr) 52px auto;width:100%}.cipher-reader .song-pdf-form{display:grid;grid-template-columns:minmax(100px,145px) auto;width:auto;max-width:100%}.cipher-reader .song-pdf-form select{width:100%!important}.cipher-reader .cipher-toolbar>header{padding:0!important;margin:0!important}.cipher-reader .cipher-toolbar>header a{font-size:13px;min-height:0;padding:3px}}

.cipher-editor{margin-bottom:0!important}.cipher-reader .song-public-filters label,.cipher-reader .song-pdf-form label{min-width:0!important}.lnj-cipher-reader .own-music{max-width:none}

.cipher-toolbar .own-symbols>summary,.cipher-toolbar .song-symbol-guide>summary{justify-content:center;min-width:36px;font-weight:700}.lnj-cipher-editor.admin-with-navigation .song-admin>h1{font-size:22px;margin:5px 0 7px}.lnj-cipher-editor .cipher-context{margin:5px 0}.cipher-popover-body>.song-actions{margin:10px 0;display:flex;gap:10px;flex-wrap:wrap}.cipher-reader .song-public-filters :is(label,select){min-width:0!important}.cipher-reader .own-notice{padding:5px 8px!important;display:block!important;margin:4px 0!important}
@media(max-width:900px){.cipher-toolbar .own-symbols>summary,.cipher-toolbar .song-symbol-guide>summary{min-width:44px}.cipher-reader .song-public-filters{grid-template-columns:minmax(80px,1fr) 62px auto}.cipher-reader .song-public-filters button{min-width:0}.cipher-editor .cipher-toolbar .own-nav{flex-basis:100%}.lnj-cipher-editor.admin-with-navigation>main{margin-top:12px}}

/* Chord symbols are musical notation, not toolbar buttons. */
.lnj-cipher-reader .cipher-reading-sheet button[data-song-chord]{height:auto!important;min-height:0!important;padding:1px 3px!important;font:inherit!important;line-height:1.2!important;border-radius:0}

.cipher-editor [hidden]{display:none!important}

@media(max-width:900px){.lnj-cipher-editor .cipher-editor :is(input:not([type=hidden]),select),.lnj-cipher-reader .cipher-reader select{font-size:16px!important}}




.cipher-reader-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.cipher-reader .song-favorite-form{padding:0!important;margin:0!important;border:0!important;background:none!important}
