#repertoireLock{width:42px;min-width:42px;height:42px;padding:10px;display:grid;place-items:center;border:1px solid var(--soft-line);background:transparent;border-radius:10px}
#repertoireLock svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
#songEditor .unified-toolbar .compact-symbol-toggle,#studyLiveSymbols.compact-symbol-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;width:auto;min-width:0;height:40px;min-height:40px;padding:0 4px;border:0;background:transparent;border-radius:7px;margin:0;color:var(--forest);font-size:11px}
.symbol-toggle-label{font-size:11px;font-weight:500;white-space:nowrap}
.symbol-toggle-track{display:block;width:26px;height:16px;padding:2px;border:1px solid var(--line);border-radius:20px;background:var(--mint);flex-shrink:0}
.symbol-toggle-track>span{display:block;width:10px;height:10px;border-radius:50%;background:var(--sage)}
.compact-symbol-toggle[aria-pressed=true] .symbol-toggle-track{background:#d9f76e;border-color:#a7c546}
.compact-symbol-toggle[aria-pressed=true] .symbol-toggle-track>span{transform:translateX(10px);background:#15191f}
.compact-symbol-toggle:hover .symbol-toggle-track{border-color:var(--forest)}
.repertoire-head-actions{gap:8px}#findSongs,#addSong{min-height:42px;white-space:nowrap}button[data-tab=lyrics]{display:none!important}
#findSongDialog{width:min(780px,calc(100% - 48px));max-width:none;padding:0;max-height:calc(100dvh - 48px);border:1px solid var(--soft-line);border-radius:18px;background:var(--white);overflow:auto;color:var(--forest)}
#findSongDialog::backdrop{background:#11171c70;backdrop-filter:blur(3px)}
.find-head{display:flex;justify-content:space-between;gap:20px;padding:24px 28px 18px;border-bottom:1px solid var(--soft-line);background:var(--white)}
.find-head h2{font-size:26px;margin:6px 0 7px}.find-head p:not(.eyebrow){font-size:12px;color:var(--sage);margin:0;line-height:1.6}.find-head .eyebrow{font-size:9px;letter-spacing:.13em}
.find-close{width:40px;height:40px;min-width:40px;border:1px solid var(--soft-line);border-radius:50%;font-size:24px;background:transparent;color:var(--forest)}
.find-body{padding:20px 28px 24px}.find-foot{display:flex;justify-content:space-between;gap:12px;padding:14px 28px;font-size:10px;color:var(--sage);border-top:1px solid var(--soft-line);background:var(--white)}.find-foot span:first-child{display:flex;align-items:center;gap:6px;white-space:nowrap}.find-foot i{width:5px;height:5px;background:#829e30;border-radius:50%}
#findSongDialog #lyricsView{display:block!important;padding:0;max-width:none;overflow:visible}
#findSongDialog #lyricsView>.eyebrow,#findSongDialog #lyricsView>h1,#findSongDialog #lyricsView>.hint,#findSongDialog .cue-legend,#findSongDialog .editor-tools,#findSongDialog #searchCuePreview{display:none!important}
#findSongDialog #lyricsForm{display:grid;grid-template-columns:minmax(0,1fr) auto;margin:0;max-height:none;overflow:visible;gap:8px}
#findSongDialog #lyricsQuery{font-size:14px;padding:13px 42px 13px 14px;border:1px solid var(--soft-line);border-radius:10px;background:var(--mint)}
#findSongDialog #lyricsForm>.primary{border-radius:10px;padding:12px 18px}
#findSongDialog #lyricsSuggestions{max-height:290px;overflow:auto}
#findWelcome{padding:38px 10px 42px;text-align:center}.find-search-mark{display:grid;place-items:center;width:48px;height:48px;background:var(--selected);color:var(--forest);border-radius:50%;margin:0 auto 18px}.find-search-mark svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}
#findWelcome h3{font-size:23px;margin:0 0 12px}#findWelcome p{font-size:13px;color:var(--sage);line-height:1.8;margin:0 0 28px}#findWelcome small{font-size:9px;letter-spacing:.13em;color:var(--sage)}.find-examples{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:12px}.find-examples button{background:transparent;border:1px solid var(--soft-line);border-radius:24px;font-size:12px;min-height:40px;padding:8px 13px}.find-examples button:hover{background:var(--selected)}
#findSongDialog #lyricsStatus{font-size:11px;line-height:1.6;border:0;background:var(--mint);padding:10px 12px;margin:12px 0}
#findSongDialog #matchPanel{padding:0;border:0;background:transparent;margin:18px 0 0;max-height:none;position:static}
#findSongDialog #matchList{grid-template-columns:1fr;gap:6px;max-height:350px;overflow:auto;padding:2px}
#findSongDialog .match-card{padding:13px 15px;background:var(--white);border:1px solid var(--soft-line);border-radius:10px;min-height:65px}
#findSongDialog .match-card:hover,#findSongDialog .match-card.active{background:var(--selected);border-color:#91a866}#findSongDialog .match-card strong{font-size:14px}#findSongDialog .match-card span{font-size:12px;margin-top:5px;color:var(--sage)}
#findSongDialog #lyricsResult{margin:12px 0 0;padding:0;border:0;background:transparent;min-width:0}
#findSongDialog #resultTitle{font-size:26px;margin:6px 0 15px;overflow-wrap:anywhere}#findSongDialog #resultSinger{font-size:10px;line-height:1.6;letter-spacing:.04em}#findSongDialog #changeRecording{display:inline-flex;padding:7px 0;border:0;font-size:11px;min-height:35px;margin-bottom:12px;background:transparent;color:var(--sage)}
#findSongDialog #resultLyrics{min-height:180px;height:240px;max-height:330px;font-family:'Pondo Text',sans-serif;font-size:15px;line-height:1.85;padding:18px;border:1px solid var(--soft-line);background:var(--mint);border-radius:10px;resize:vertical}
#findSongDialog .search-result-actions{display:flex;gap:8px;align-items:center;margin-top:16px}#findSongDialog .search-result-actions button{font-size:12px;min-height:42px}#findSongDialog .search-mp3-action{margin:0 0 12px}#findSongDialog #resultMp3Help{font-size:10px}
#findSongDialog[data-selected=true] #findWelcome{display:none!important}
#findSongDialog[data-selected=false] #lyricsResult{display:none!important}
html:not([data-search-option="2"]) #findSongDialog[data-selected=true] #matchPanel{display:none!important}
#compareEmpty{padding:55px 28px;text-align:center;border:1px dashed var(--soft-line);border-radius:12px;align-self:start;margin-top:18px;color:var(--sage)}#compareEmpty span{font-size:9px;letter-spacing:.12em}#compareEmpty h3{font-size:20px;color:var(--forest);margin:12px 0}#compareEmpty p{font-size:12px;line-height:1.7}
html[data-search-option="2"] #findSongDialog{width:min(1080px,calc(100% - 48px))}
html[data-search-option="2"] #findSongDialog[data-matches=true] #lyricsView{display:grid!important;grid-template-columns:minmax(220px,.85fr) minmax(0,1.15fr);column-gap:26px;align-items:start}
html[data-search-option="2"] #findSongDialog #lyricsForm,html[data-search-option="2"] #findSongDialog #lyricsStatus{grid-column:1/-1}
html[data-search-option="2"] #findSongDialog[data-matches=true] #matchPanel{display:block!important;grid-column:1;grid-row:3}
html[data-search-option="2"] #findSongDialog #lyricsResult,html[data-search-option="2"] #compareEmpty{grid-column:2;grid-row:3}
html[data-search-option="2"] #findSongDialog #matchList{max-height:470px}
html[data-search-option="3"] #findSongDialog{width:min(510px,100%);height:100dvh;max-height:100dvh;margin:0 0 0 auto;border-radius:18px 0 0 18px;border-right:0;display:none}
html[data-search-option="3"] #findSongDialog[open]{display:flex;flex-direction:column}
html[data-search-option="3"] .find-body{flex:1;overflow:auto}html[data-search-option="3"] #findSongDialog #matchList{max-height:none}html[data-search-option="3"] .find-head{padding-top:30px}html[data-search-option="3"] #findWelcome{padding-top:60px}
@media(max-width:699px){#findSongDialog,html[data-search-option="2"] #findSongDialog{width:calc(100% - 20px);max-height:calc(100dvh - 20px);border-radius:14px}.find-head{padding:19px 18px 15px}.find-head h2{font-size:24px}.find-head p:not(.eyebrow){font-size:11px;max-width:230px}.find-body{padding:16px 18px 20px}.find-foot{padding:12px 18px;font-size:9px;flex-wrap:wrap;gap:5px}#findWelcome{padding:35px 0}#findWelcome h3{font-size:21px}.find-examples{gap:6px}.find-examples button{font-size:11px;padding:8px 10px}#findSongDialog #resultTitle{font-size:24px}#findSongDialog #resultLyrics{height:210px}#findSongDialog #lyricsQuery{font-size:13px}#findSongDialog #lyricsForm>.primary{font-size:12px;padding:12px}html[data-search-option="2"] #findSongDialog[data-matches=true] #lyricsView{display:block!important}html[data-search-option="2"] #findSongDialog[data-selected=true] #matchPanel{display:none!important}#compareEmpty{display:none!important}html[data-search-option="3"] #findSongDialog{width:calc(100% - 14px);border-radius:14px 0 0 14px}.repertoire-head-actions{gap:6px}#findSongs,#addSong{font-size:12px;padding:10px}.repertoire-head-actions #repertoireLock{width:40px;min-width:40px}}

#findSongDialog #relatedPanel{grid-column:1/-1}
#recentSongSearches{margin:0 0 28px;padding-bottom:22px;border-bottom:1px solid var(--soft-line);text-align:left}.recent-search-head{display:flex;justify-content:space-between;align-items:center}.recent-search-head strong{font-size:11px;font-weight:600;color:var(--sage)}.recent-search-head button{font-size:11px;border:0;background:transparent;padding:8px;color:var(--sage)}#recentSongSearches .find-examples{justify-content:flex-start}#recentSongSearches button{overflow-wrap:anywhere;max-width:100%}

#findSongDialog #lyricsView:has(#lyricsQuery[aria-expanded="true"]){min-height:350px}

.live-heading-actions{flex-wrap:wrap}
.live-switch-group{display:flex;align-items:center;gap:8px;flex:none}
.live-switch-copy{font-size:12px;font-weight:600;line-height:1.3;max-width:76px}
.live-switch-copy small{display:block;font-size:11px;font-weight:400;color:var(--sage);margin-top:3px}
.live-heading-actions .live-switch{position:relative;display:block;flex:0 0 84px;width:84px;min-width:84px;height:50px;min-height:50px;max-width:84px;padding:0;border:0;border-radius:999px;background:#606A75;transition:background-color 360ms;overflow:visible}
.live-heading-actions .live-switch[aria-checked=true]{background:#D9F76E}
.live-switch .live-switch-knob{position:absolute;top:3px;left:3px;width:44px;height:44px;border-radius:999px;background:#fff;box-shadow:0 3px 7px #0003,0 1px 2px #0002;transform:translateX(0);transition:transform 600ms linear(0,.3 10%,.67 22%,.9 38%,1.02 65%,1 100%),width 150ms}
.live-switch[aria-checked=true] .live-switch-knob{transform:translateX(34px)}
.live-switch:active .live-switch-knob{width:54px}
.live-switch[aria-checked=true]:active .live-switch-knob{transform:translateX(24px)}
.live-heading-actions .live-switch:focus-visible{outline:3px solid var(--forest);outline-offset:4px}
@media(prefers-reduced-motion:reduce){.live-heading-actions .live-switch,.live-switch .live-switch-knob{transition:none}}
@media(max-width:699px){.live-view .live-heading-actions{flex-basis:100%;justify-content:flex-start}.live-switch-copy{font-size:11px;max-width:65px}.live-switch-group{gap:6px}}
.live-switch-copy{flex:0 0 76px}@media(max-width:699px){.live-switch-copy{flex-basis:65px}.live-heading-actions{column-gap:12px!important;row-gap:10px!important}}

.live-switch-group{flex-direction:column;gap:3px;min-width:64px;justify-content:center}
.live-switch-copy{flex:none;max-width:none;font-size:10px;line-height:1.2;text-align:center;white-space:nowrap}
.live-switch-copy small{display:inline;margin:0 0 0 4px;font-size:10px}
.live-heading-actions .live-switch{flex:0 0 26px;width:44px;min-width:44px;max-width:44px;height:26px;min-height:26px}
.live-switch .live-switch-knob{width:20px;height:20px}
.live-switch[aria-checked=true] .live-switch-knob{transform:translateX(18px)}
.live-switch:active .live-switch-knob{width:26px}
.live-switch[aria-checked=true]:active .live-switch-knob{transform:translateX(12px)}
.live-switch::after{content:"";position:absolute;inset:-9px 0}
@media(max-width:699px){.live-switch-copy{flex-basis:auto;font-size:10px}}

.live-switch .live-switch-status{position:absolute;right:2px;top:0;width:18px;height:26px;display:grid;place-items:center;font-size:8px;font-weight:700;line-height:1;color:#fff;pointer-events:none}
.live-switch[aria-checked=true] .live-switch-status{right:auto;left:2px;color:#15191F}
.live-switch:active .live-switch-status{visibility:hidden}


#relatedSongsDialog{width:min(540px,calc(100vw - 28px));max-height:75dvh;padding:18px;border:1px solid var(--soft-line);border-radius:16px;background:var(--white);color:var(--forest);overflow:auto}
#relatedSongsDialog::backdrop{background:#10182055}
#relatedSongsDialog .dialog-head{position:sticky;top:-18px;background:var(--white);z-index:2;padding:8px 0;margin-bottom:10px;align-items:start}
#relatedPopupTitle{font-size:20px}#relatedPopupStatus{font-size:12px;color:var(--sage);margin:5px 0}
#relatedSongsDialog .dialog-head>button{width:36px;min-height:36px;flex-shrink:0;border:1px solid var(--soft-line);border-radius:9px;background:transparent;color:var(--forest)}
#relatedSongsDialog #relatedPanel>summary,#relatedSongsDialog #relatedPanel>.section-head{display:none}
#relatedSongsDialog .related-grid{display:grid;grid-template-columns:1fr;gap:6px}
#relatedSongsDialog .related-section h3{font-size:13px;margin:16px 0 8px}

#openLiveSuggestions,#focusLive,#editLiveSong{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:auto!important;min-width:0;height:36px;min-height:36px!important;padding:7px 10px!important;font-size:12px!important;line-height:20px;font-weight:600;gap:6px;border-radius:9px;margin:0}
.live-view .live-heading-actions{gap:8px!important}
.live-view .live-song-heading{column-gap:8px}
@media(pointer:coarse){#openLiveSuggestions,#focusLive,#editLiveSong{height:44px;min-height:44px!important}}

/* Stack editor toggle captions beneath their compact tracks. */
#songEditor .unified-toolbar .compact-symbol-toggle{flex-direction:column-reverse;gap:4px;min-width:48px;min-height:44px;height:44px;padding:3px 4px}

.editor-toolbar-toggles{display:flex;align-items:center;gap:4px;flex:0 0 auto}

.editor-toolbar-toggles{position:relative}
.editor-lock-hint{position:absolute;top:calc(100% + 8px);right:0;z-index:5;width:210px;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:var(--white);color:var(--forest);box-shadow:0 6px 20px #0002;font-size:12px;line-height:1.4;pointer-events:none}
.editor-lock-hint::before{content:'';position:absolute;right:20px;top:-5px;width:8px;height:8px;background:var(--white);border-top:1px solid var(--line);border-left:1px solid var(--line);transform:rotate(45deg)}
#songEditor .unified-toolbar .lock-attention{outline:2px solid var(--forest);outline-offset:3px;background:var(--selected)}
@media(max-width:560px){.editor-lock-hint{left:0;right:auto}.editor-lock-hint::before{left:78px;right:auto}}

#findSongDialog #lyricsStatus{margin:12px 0;padding:10px 12px;border-radius:8px;font-size:12px;line-height:1.5}
#findSongDialog #changeRecording{margin:0 0 12px;padding:6px 0!important;min-height:36px!important}
#findSongDialog #resultSinger{margin:0 0 5px}#findSongDialog #resultTitle{margin:0 0 16px}
#findSongDialog #resultLyrics{display:block;padding:14px 16px;border-radius:10px;line-height:1.7}
#findSongDialog .search-result-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0;align-items:center}
#findSongDialog .search-result-actions button{width:auto;min-height:40px!important;height:40px;padding:8px 12px!important;line-height:22px;font-size:12px;font-weight:600;border-radius:9px;margin:0}
@media(pointer:coarse){#findSongDialog .search-result-actions button{height:44px;min-height:44px!important}}
