/* Console controls scoped to the two chord-sheet editors. */
.cipher-editor{--studio-ink:var(--ink,#e9efe9);--studio-muted:#b6c5bd;--studio-card:#202c28;--studio-card-alt:#253032;--studio-card-blue:#253039;--studio-card-violet:#2c2b34;--studio-card-rose:#302c30;--studio-line:#526158;--studio-key:#35423d;--studio-key-top:#404e48;--studio-selected:#d3edab;--studio-selected-ink:#203322;--studio-blue:#abd6e5;--studio-violet:#d4bde9;--studio-button:32px}
html[data-theme=light] .cipher-editor{--studio-muted:#4c6357;--studio-card:#e7eee7;--studio-card-alt:#e7edec;--studio-card-blue:#e6edf2;--studio-card-violet:#eee9f1;--studio-card-rose:#f0e9eb;--studio-line:#aabbb0;--studio-key:#edf2ee;--studio-key-top:#fafcf9;--studio-selected:#365a3d;--studio-selected-ink:#fff;--studio-blue:#285971;--studio-violet:#6a447b}
.cipher-editor .cipher-studio-armory{display:flex!important;flex-direction:column;gap:8px;padding:0 3px 3px!important;border:0!important;background:none!important;scrollbar-width:thin;scrollbar-color:var(--studio-line) transparent}
.cipher-studio-card{box-sizing:border-box;min-width:0;flex:0 0 auto;background:var(--studio-card);color:var(--studio-ink);border:1px solid var(--studio-line);border-radius:9px;box-shadow:0 2px 4px #0002;overflow:visible;margin:0!important;padding:0!important;position:relative}
.cipher-studio-chords{order:1}.cipher-studio-meter{order:2;background:var(--studio-card-blue)}.cipher-studio-structure{order:3;background:var(--studio-card-alt)}.cipher-studio-parts{order:4;background:var(--studio-card-rose)}.cipher-studio-notes{order:5;background:var(--studio-card-violet)}
.cipher-studio-card>summary{display:flex;align-items:center;gap:7px;min-height:39px;padding:7px 9px;list-style:none;cursor:pointer;box-sizing:border-box;font:600 13px/1.3 var(--cipher-body,Arial,sans-serif)!important;letter-spacing:.015em;color:var(--studio-ink)}.cipher-studio-card>summary::-webkit-details-marker{display:none}.cipher-studio-card>summary::after{content:'⌄';font:16px sans-serif;color:var(--studio-muted);margin-left:auto;transition:transform .15s}.cipher-studio-card[open]>summary::after{transform:rotate(180deg)}.cipher-studio-card[open]>summary{border-bottom:1px solid var(--studio-line)}.cipher-studio-icon{display:inline-block;width:17px;height:17px;flex:0 0 17px;vertical-align:middle}.cipher-studio-meter>summary>.cipher-studio-icon{color:var(--studio-blue)}.cipher-studio-notes>summary>.cipher-studio-icon{color:var(--studio-violet)}
.cipher-studio-card-body{padding:8px}.cipher-studio-meter> :not(summary),.cipher-studio-notes> :not(summary){margin:8px 9px!important}.cipher-studio-meter>.notation-slot-grid,.cipher-studio-notes>.notation-icon-field{margin-block:10px!important}
.cipher-editor .cipher-studio-notation{display:contents;border:0;padding:0;margin:0}.cipher-editor .cipher-studio-card .chord-builder-inline{padding:0!important;border:0!important;border-radius:0;background:transparent!important;max-height:none;width:100%}.cipher-studio-card .chord-builder-inline>.chord-builder-header{display:none}.cipher-studio-card .chord-builder-inline [data-builder-controls]{gap:7px}.cipher-editor .cipher-studio-card .chord-builder-inline fieldset{padding:5px 6px 7px;border:1px solid var(--studio-line);border-radius:6px;background:#ffffff03;gap:4px}.cipher-editor .cipher-studio-card .chord-builder-inline legend{font-size:12px!important;font-weight:600;letter-spacing:.01em;color:var(--studio-muted);padding-inline:3px}.cipher-studio-card .chord-builder-tabs{gap:4px;margin:0 0 8px}.cipher-studio-card .chord-builder-tabs [data-builder-tab]{flex:1}
.lnj-cipher-editor .cipher-editor .cipher-studio-card :is(button:not(.chord-piano-key),a.text-link),.lnj-cipher-editor .cipher-editor .cipher-studio-reuse button{display:inline-flex;align-items:center;justify-content:center;gap:5px;box-sizing:border-box;height:var(--studio-button)!important;min-height:var(--studio-button)!important;padding:4px 7px!important;font:500 13px/1.2 var(--cipher-body,Arial,sans-serif)!important;border:1px solid var(--studio-line);border-radius:5px;color:var(--studio-ink);background:linear-gradient(var(--studio-key-top),var(--studio-key));box-shadow:inset 0 1px #ffffff14,0 2px 0 #0002;text-decoration:none;cursor:pointer;transition:transform .12s,border-color .12s}
.lnj-cipher-editor .cipher-editor .cipher-studio-card button:hover:not(:disabled),.cipher-studio-reuse button:hover{border-color:var(--studio-muted);filter:brightness(1.08)}.cipher-studio-card button:active:not(:disabled){transform:translateY(1px);box-shadow:inset 0 1px 3px #0003!important}.cipher-studio-card button:disabled{opacity:.38;cursor:not-allowed;box-shadow:none!important}
.lnj-cipher-editor .cipher-editor .cipher-studio-card .chord-builder-choice[aria-pressed=true]{background:var(--studio-selected)!important;color:var(--studio-selected-ink)!important;border-color:var(--studio-selected)!important;box-shadow:inset 0 1px #ffffff22,0 0 0 1px #0001}
.cipher-studio-card .chord-builder-result{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 9px;padding:9px!important;margin:8px 0!important;border-left:3px solid var(--studio-selected);border-radius:4px;background:#0000000c}.cipher-studio-card .chord-builder-result>[data-builder-symbol]{grid-row:1/3;align-self:center;font:700 24px/1.2 var(--cipher-body)!important;margin:0}.cipher-editor .cipher-studio-card .chord-builder-result p{font-size:12px!important;line-height:1.4;margin:0!important;overflow-wrap:anywhere}.cipher-studio-card [data-builder-notice]{grid-column:1/-1}.cipher-studio-card [data-builder-notice]:empty{display:none}.cipher-studio-card .chord-builder-actions{gap:5px!important;margin:0}.cipher-studio-card [data-builder-compact]{display:none!important}
.cipher-studio-card .chord-builder-actions [data-builder-insert],.cipher-studio-card .chord-builder-actions [data-builder-to-bar]{flex:1 1 calc(50% - 4px);min-width:0!important}.cipher-studio-card [data-builder-insert]{order:1}.cipher-studio-card [data-builder-to-bar]{order:2}.cipher-studio-card [data-builder-play]{order:3}.cipher-studio-card [data-builder-stop]{order:4}.cipher-studio-card [data-builder-reset]{order:5}.cipher-studio-icon-only>span{display:none}.cipher-studio-control .cipher-studio-icon{width:15px;height:15px;flex-basis:15px}.cipher-studio-icon-only{width:var(--studio-button)!important;min-width:var(--studio-button)!important}
.lnj-cipher-editor .cipher-editor .cipher-studio-card [data-builder-insert]{background:var(--studio-selected);color:var(--studio-selected-ink);border-color:var(--studio-selected)}.lnj-cipher-editor .cipher-editor .cipher-studio-card [data-builder-to-bar]{color:var(--studio-blue);border-color:var(--studio-blue)}
.cipher-studio-card [data-builder-status]{min-height:0!important;margin:6px 0 0!important;font-size:12px!important;line-height:1.45!important;color:var(--studio-muted)}.cipher-studio-card [data-builder-status]:empty{display:none}.cipher-studio-card .chord-builder-advanced>summary,.cipher-studio-card .chord-builder-more>summary{font:500 12px/1.4 var(--cipher-body);padding-block:5px;color:var(--studio-muted);cursor:pointer}
.cipher-studio-hint{position:relative;flex:none}.cipher-studio-hint>summary{display:grid;place-items:center;list-style:none;cursor:pointer;height:var(--studio-button);width:26px;color:var(--studio-muted)}.cipher-studio-hint>summary::-webkit-details-marker{display:none}.cipher-studio-hint p{position:absolute;right:0;top:30px;z-index:10;width:225px;max-width:65vw;padding:10px!important;margin:0!important;background:var(--studio-card);border:1px solid var(--studio-line);border-radius:6px;box-shadow:0 5px 15px #0003;font-size:12px!important}.cipher-studio-hint:has(p[hidden]){display:none}
.cipher-editor .cipher-studio-card label{font:500 12px/1.4 var(--cipher-body)!important;margin:0!important;display:grid;gap:4px}.cipher-editor .cipher-studio-card :is(input:not([type=hidden]):not([type=range]),select){height:32px!important;min-height:32px!important;box-sizing:border-box;width:100%!important;border:1px solid var(--studio-line);border-radius:5px;background:var(--bg);color:var(--studio-ink);padding:4px 7px!important;margin:0!important;font-size:13px!important}.cipher-studio-card .song-insert-tool{padding:0!important;border:0;background:none;display:grid;gap:7px}.cipher-studio-structure [data-own-insert-section]{margin-top:7px!important}.cipher-studio-card .song-insert-tool label{margin-bottom:0!important}.cipher-studio-card [data-notation-add-bar],.cipher-studio-card [data-notation-add-reference]{width:calc(100% - 18px)!important}.cipher-editor .cipher-studio-meter-badge{margin-left:auto!important;max-width:110px;min-width:0;display:block!important}.cipher-editor .cipher-studio-meter-badge select{width:100%!important;min-width:75px;height:27px!important;min-height:27px!important;font:600 11px var(--mono,monospace)!important;background:#0000000a;border-color:var(--studio-line)}.cipher-studio-meter>summary::after{margin-left:0}
.cipher-editor .cipher-studio-card .notation-icon-field{font-size:12px}.cipher-editor .cipher-studio-card .notation-icon-picker{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.lnj-cipher-editor .cipher-editor .cipher-studio-card [data-notation-icon-choice]{width:100%;font:21px 'Segoe UI Symbol','DejaVu Sans',sans-serif!important;color:var(--studio-violet)}.lnj-cipher-editor .cipher-editor .cipher-studio-card [data-notation-icon-choice=pause]{font-size:16px!important}.cipher-studio-card .notation-icon-picker [aria-pressed=true]{outline:2px solid var(--studio-violet);outline-offset:-2px;background:#9874bd22!important}
.cipher-studio-card output{font-size:12px!important;line-height:1.4;color:var(--studio-muted)}.cipher-studio-card .notation-slot-grid label>span{font:600 11px var(--mono,monospace);color:var(--studio-blue)}.cipher-studio-parts :is(.editor-parts,.song-fragment-list){margin:0;padding:0;background:none;border:0;max-height:none}.cipher-studio-parts :is(.editor-parts,.song-fragment-list)>h3{display:none}.cipher-studio-parts .song-tool-hint{font-size:12px!important;line-height:1.5!important;margin:0}.cipher-studio-card .editor-add-part{width:100%!important}.cipher-studio-parts .song-fragment-list>div{padding-block:6px;border-bottom:1px solid var(--studio-line)}
.cipher-editor .cipher-studio-reuse{padding:0!important;background:var(--studio-card);border:1px solid var(--studio-line);border-radius:8px}.cipher-studio-reuse .chord-reuse{border:0;margin:0;padding:5px}.cipher-studio-reuse summary{display:flex;align-items:center;gap:4px;padding:4px 0;font:600 12px/1.3 var(--cipher-body)!important;list-style:none}.cipher-studio-reuse summary .cipher-studio-icon{width:13px;height:13px;flex-basis:13px}.cipher-studio-reuse .chord-reuse-buttons{padding-top:5px;max-height:none}.cipher-studio-reuse [data-chord-reuse-status]{font:12px/1.45 var(--cipher-body)!important;color:var(--studio-muted);margin:6px 0}.cipher-studio-mobile-title{display:none}
@media(max-width:900px){.cipher-editor{--studio-button:38px}.lnj-cipher-editor.song-tools-open .cipher-editor .cipher-mobile-panel .cipher-studio-armory{display:flex!important;padding:0 1px 0 0!important;gap:7px}.cipher-studio-card>summary{min-height:42px}.cipher-studio-mobile-title{display:flex;align-items:center;gap:7px;grid-row:1;grid-column:1/-1;align-self:center;font:600 15px var(--cipher-body);padding:0 50px 0 7px}.cipher-editor .cipher-mobile-panel>.cipher-drawer-close{grid-row:1}.cipher-editor .cipher-studio-card :is(input:not([type=hidden]),select){font-size:16px!important;height:38px!important;min-height:38px!important}.cipher-editor .cipher-studio-meter-badge select{font-size:12px!important;height:30px!important;min-height:30px!important}.cipher-studio-card-body{padding:7px}.cipher-editor .cipher-studio-card .chord-builder-inline [data-builder-controls]{grid-template-columns:minmax(0,1fr)}.cipher-studio-card .chord-builder-result>[data-builder-symbol]{font-size:22px!important}.cipher-studio-hint p{width:190px}}
@media(prefers-reduced-motion:reduce){.cipher-studio-card button,.cipher-studio-card>summary::after{transition:none}}

.cipher-editor .cipher-studio-card .cipher-studio-meter-badge{margin-left:auto!important}.cipher-editor .cipher-toolbar .cipher-studio-control{display:inline-flex;align-items:center;gap:6px;border-radius:5px;box-shadow:inset 0 1px #ffffff14,0 2px #0001}
@media(max-width:900px){.lnj-cipher-editor.song-tools-open .cipher-editor .cipher-mobile-panel{grid-template-columns:minmax(0,1fr);grid-template-rows:38px auto minmax(0,1fr)}.lnj-cipher-editor.song-tools-open .cipher-editor .cipher-mobile-panel>.cipher-drawer-close{grid-row:1;width:38px;min-width:38px;height:38px;min-height:38px}.lnj-cipher-editor.song-tools-open .cipher-editor .cipher-mobile-panel .cipher-studio-reuse{grid-column:1;grid-row:2;height:auto!important;max-height:90px!important;padding:4px 7px!important;overflow:hidden}.lnj-cipher-editor.song-tools-open .cipher-editor .cipher-mobile-panel .cipher-studio-armory{grid-column:1;grid-row:3}.cipher-studio-reuse .chord-reuse{display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px;align-items:center;padding:0}.cipher-studio-reuse .chord-reuse>summary{grid-column:1;grid-row:1}.cipher-studio-reuse .chord-reuse-buttons{grid-column:2;grid-row:1;display:flex;flex-wrap:nowrap;overflow:auto;max-height:48px;padding-top:0}.lnj-cipher-editor.song-tools-open .cipher-editor .cipher-studio-reuse .chord-reuse-buttons button{width:auto!important;min-width:38px;flex:0 0 auto}.cipher-studio-reuse [data-chord-reuse-status]{grid-column:2;grid-row:1;margin:0!important}.cipher-studio-mobile-title{padding-left:0}}

.cipher-editor .cipher-studio-control>span{font:inherit!important;line-height:inherit!important;letter-spacing:inherit!important}.cipher-editor .cipher-studio-meter-badge .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.cipher-editor .own-blocks>.own-text-block:only-child{height:100%;min-height:0;display:flex;flex-direction:column}.cipher-editor .own-blocks>.own-text-block:only-child>label{flex:0 0 auto}.cipher-editor .own-blocks>.own-text-block:only-child>.notation-input{flex:1;min-height:0}.cipher-editor .own-blocks>.own-text-block:only-child>.notation-input>textarea{height:100%!important;min-height:0!important}.cipher-editor .cipher-toolbar button[value=preview].cipher-studio-control{background:linear-gradient(var(--studio-key-top),var(--studio-key));color:var(--studio-ink);border:1px solid var(--studio-line);text-decoration:none}.cipher-editor .cipher-toolbar button[value=preview].cipher-studio-control>span{text-decoration:none!important}
@media(min-width:901px){.cipher-editor .cipher-studio-card .chord-builder-inline [data-builder-controls]{grid-template-columns:minmax(0,1fr) 80px}.lnj-cipher-editor .cipher-editor .cipher-studio-card [data-builder-group=root] button{min-width:24px!important;padding-inline:4px!important}}
@media(max-width:900px){.cipher-studio-reuse .chord-reuse-buttons{flex-direction:row!important}.lnj-cipher-editor.song-tools-open .cipher-editor .cipher-studio-reuse .chord-reuse-buttons button{min-width:38px!important}}

.cipher-editor .own-blocks:has(>.own-text-block:only-child){display:flex!important;flex-direction:column}.cipher-editor .own-blocks>.own-text-block:only-child{flex:1;min-height:0;height:100%!important}.cipher-editor .own-blocks>.own-text-block:only-child>.notation-input{min-height:0!important;height:auto;flex:1 1 0%}
@media(min-width:901px){.cipher-studio-card [data-builder-group=acc] legend{font-size:0!important}.cipher-studio-card [data-builder-group=acc] legend::after{content:'♯ / ♭';font:600 12px var(--cipher-body);color:var(--studio-muted)}.lnj-cipher-editor .cipher-editor .cipher-studio-card [data-builder-group=acc] button{min-width:24px!important;padding-inline:4px!important}}

.lnj-cipher-editor .cipher-editor .cipher-studio-card button[data-builder-insert]{background:var(--studio-selected)!important;color:var(--studio-selected-ink)!important;border-color:var(--studio-selected)!important}.lnj-cipher-editor .cipher-editor .cipher-studio-card button[data-builder-to-bar]{color:var(--studio-blue)!important;border-color:var(--studio-blue)!important}

@media(min-width:901px){.cipher-editor .cipher-studio-card .chord-builder-inline [data-builder-group=acc] legend{font-size:0!important;line-height:1!important}}

/* Flat, compact tool controls: no bevels or simulated depth. */
.cipher-editor .cipher-studio-card :is(button,summary),.cipher-editor .cipher-studio-card{box-shadow:none!important;background-image:none!important}
.cipher-editor .chord-builder-result{margin:0 0 9px!important;padding:9px 10px!important;border:1px solid var(--studio-line);border-radius:6px;background:color-mix(in srgb,var(--studio-selected) 7%,transparent)!important;min-height:58px}
.cipher-editor .chord-builder-result [data-builder-symbol]{font:700 30px/1.1 var(--cipher-body,Arial)!important;color:var(--studio-selected)}
.cipher-editor .chord-builder-result :is([data-builder-notes],[data-builder-formula]){font-size:12px!important;line-height:1.5;margin:3px 0!important;color:var(--studio-muted)}
.cipher-editor .is-identifying .chord-builder-result>:not([data-builder-matches]){display:none!important}
.cipher-editor .chord-builder-result [data-builder-matches]:empty{display:none}
.cipher-editor .chord-builder-result [data-builder-matches]{display:flex;flex-wrap:wrap;gap:5px;margin:0}
.cipher-editor .chord-builder-result [data-builder-matches] button{font-size:18px!important;padding-inline:10px!important}
.cipher-editor .is-identifying .chord-builder-result:has([data-builder-matches]:empty)::after{content:'…';font-size:24px;color:var(--studio-muted)}
.cipher-editor [data-builder-controls]{display:block!important}.cipher-builder-roots{display:flex;flex-wrap:wrap;gap:5px;align-items:end;margin:5px 0 9px}
.cipher-editor .cipher-builder-roots [data-builder-group=root]{display:flex!important;flex:1 0 100%;flex-wrap:nowrap!important;gap:3px!important}
.cipher-editor .cipher-builder-roots [data-builder-group=root] button{flex:1 1 0!important;min-width:0!important;padding:0 4px!important}
.cipher-editor .cipher-builder-roots fieldset legend{display:none!important}.cipher-editor .cipher-builder-roots [data-builder-group=acc]{margin-left:auto!important}
.cipher-builder-rail{display:flex;gap:4px;overflow-x:auto;scrollbar-width:thin;touch-action:pan-x;overscroll-behavior-x:contain;padding:0 0 6px;cursor:grab;user-select:none}
.cipher-editor .cipher-builder-rail button{flex:0 0 auto!important;white-space:nowrap;height:30px!important;min-height:30px!important;padding:0 9px!important;font-size:12px!important;background:transparent!important}
.cipher-editor .cipher-builder-rail button[aria-selected=true]{background:var(--studio-selected)!important;color:var(--studio-selected-ink)!important}
.cipher-builder-rail button.has-selection::after{content:'·';margin-left:4px;color:var(--studio-blue)}
.cipher-builder-options:has(>.cipher-builder-option-panel:not([hidden])){padding:7px;border:1px solid var(--studio-line);border-radius:5px;background:color-mix(in srgb,var(--studio-blue) 5%,transparent)}
.cipher-builder-option-panel{display:flex;flex-wrap:wrap;gap:7px}.cipher-editor .cipher-builder-option-panel fieldset{flex:1 0 100%;margin:0!important;padding:0!important;display:flex!important;flex-wrap:wrap!important;gap:4px!important}
.cipher-editor .cipher-builder-option-panel legend{font-size:11px!important;margin-bottom:4px!important;color:var(--studio-muted)}
.cipher-editor .cipher-builder-option-panel [data-builder-group=type] legend,.cipher-editor .cipher-builder-option-panel [data-builder-group=extension] legend,.cipher-editor .cipher-builder-option-panel [data-builder-group=inversion] legend{display:none!important}
.cipher-editor [hidden]{display:none!important}

.cipher-editor .song-editing-text{display:flex!important;flex-direction:column;min-height:0;overflow:hidden}
.cipher-editor .song-editing-text>.own-blocks{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:8px}
.cipher-editor .song-editing-text .own-text-block{flex:1 0 120px;display:flex;flex-direction:column;min-height:100px}
.cipher-editor .song-editing-text .own-text-block>label{font-size:12px;padding:3px 0}
.cipher-editor .song-editing-text .notation-input{flex:1;min-height:100px}
.cipher-editor .song-editing-text textarea{height:100%!important;max-height:none!important;min-height:100px;resize:vertical}
.cipher-editor .own-part-card{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid var(--studio-line);border-left:3px solid var(--studio-blue);border-radius:5px;background:var(--studio-card-blue);font-size:13px;flex:none}
.cipher-editor .own-part-card>span{font-size:26px;color:var(--studio-blue)}.cipher-editor .own-part-card button{margin-left:auto!important;background:transparent!important;box-shadow:none!important}

.cipher-editor [data-chord-builder]:not(.is-identifying) .chord-builder-result [data-builder-matches]{display:none!important}

.cipher-editor .song-editing-text .own-text-block.is-empty:not(:only-child){flex:0 0 78px;min-height:78px}
.cipher-editor .song-editing-text .own-text-block.is-empty:not(:only-child) .notation-input,.cipher-editor .song-editing-text .own-text-block.is-empty:not(:only-child) textarea{min-height:54px!important}

.cipher-editor button{box-shadow:none!important;background-image:none!important}

/* Two alternating card surfaces; controls keep one consistent style. */
.cipher-editor{--studio-zebra-a:#202c27;--studio-zebra-b:#29352e}
html[data-theme=light] .cipher-editor{--studio-zebra-a:#e8eee7;--studio-zebra-b:#dfe7df}
.cipher-editor .cipher-studio-card{border:0!important;border-radius:8px;box-shadow:none!important;background:var(--studio-zebra-a)!important}
.cipher-editor .cipher-studio-meter,.cipher-editor .cipher-studio-parts{background:var(--studio-zebra-b)!important}
.cipher-editor .cipher-studio-card>summary{border:0!important;padding:9px 10px}
.cipher-editor .cipher-studio-card fieldset,.cipher-editor .cipher-builder-options{border:0!important;box-shadow:none!important;outline:0;background:transparent!important;padding:0!important}
.cipher-editor .cipher-builder-option-panel{padding:6px 0 2px!important;border:0!important;background:none!important}
.cipher-editor .chord-builder-result{border:0!important;background:var(--studio-zebra-b)!important}
.cipher-editor .cipher-studio-card .chord-builder-actions{background:transparent!important;border:0!important;box-shadow:none!important}
.cipher-editor .cipher-builder-roots{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:5px}
.cipher-editor .cipher-builder-roots [data-builder-group=root]{flex:1 1 0!important;min-width:0!important;gap:2px!important}
.cipher-editor .cipher-builder-roots [data-builder-group=acc]{flex:0 0 auto!important;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:2px!important;margin:0!important}
.cipher-editor .cipher-alter-caption,.cipher-editor .chord-builder-bass-acc>span{font:500 10px/1.2 var(--cipher-body,Arial)!important;white-space:nowrap;margin-right:2px}
.cipher-editor .cipher-studio-card .chord-builder-inline [data-builder-group=root] button,.cipher-editor .cipher-studio-card .chord-builder-inline [data-builder-group=bass] button,.cipher-editor .cipher-studio-card .chord-builder-inline [data-builder-group=acc] button{min-width:20px!important;padding:0 3px!important;font-size:12px!important}
.cipher-editor .cipher-builder-option-panel fieldset.chord-builder-bass{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center;gap:5px!important}
.cipher-editor .chord-builder-bass-notes{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:2px!important;min-width:0}
.cipher-editor .chord-builder-bass-acc{display:flex!important;flex-wrap:nowrap!important;align-items:center;gap:2px!important;border:0!important;margin:0!important;padding:0!important}
.cipher-editor .cipher-rail-shell{display:grid;grid-template-columns:minmax(0,1fr);gap:2px;align-items:center;min-width:0;margin:5px 0}
.cipher-editor .cipher-rail-shell.has-overflow{grid-template-columns:20px minmax(0,1fr) 20px}
.cipher-editor .cipher-builder-rail{scrollbar-width:none!important;padding:0!important;min-width:0;border:0}
.cipher-editor .cipher-builder-rail::-webkit-scrollbar{display:none!important}
.cipher-editor .cipher-rail-shell>button{width:20px!important;min-width:20px!important;height:30px!important;min-height:30px!important;padding:0!important;border:0!important;border-radius:4px;background:transparent!important;color:var(--studio-ink)!important;font:24px/1 Arial!important;display:grid;place-items:center}
.cipher-editor .cipher-rail-shell>button:disabled{opacity:.25}.cipher-editor .cipher-rail-shell>button:hover:not(:disabled){background:var(--studio-zebra-b)!important}
.cipher-editor .cipher-builder-rail>button{border:0!important;border-radius:3px!important;background:transparent!important}
.cipher-editor .cipher-builder-rail>button[aria-selected=true]{background:var(--studio-zebra-b)!important;color:var(--studio-ink)!important;box-shadow:inset 0 -2px var(--studio-selected)!important}
@media(max-width:900px){.lnj-cipher-editor.song-tools-open .cipher-editor .cipher-studio-card .chord-builder-inline :is([data-builder-group=root],[data-builder-group=acc],[data-builder-group=bass]) button{min-width:20px!important;font-size:12px!important;padding:0 2px!important}.cipher-editor .cipher-builder-roots{gap:3px}.cipher-editor .cipher-alter-caption,.cipher-editor .chord-builder-bass-acc>span{font-size:9px!important}}

.lnj-cipher-editor .cipher-editor .cipher-studio-card{width:100%!important;align-self:stretch!important;display:block!important;box-sizing:border-box}
.lnj-cipher-editor .cipher-editor .cipher-studio-card .cipher-rail-shell>button{font:24px/1 Arial!important;min-width:20px!important;width:20px!important;height:30px!important;min-height:30px!important;padding:0!important}

.lnj-cipher-editor .cipher-editor .cipher-studio-card>summary{width:100%!important;box-sizing:border-box;overflow:visible;isolation:isolate}.lnj-cipher-editor .cipher-editor .cipher-studio-card>summary>span{position:static!important;transform:none!important;text-indent:0!important;clip-path:none!important;overflow:visible!important}
