.study-tabs{display:flex;gap:7px;margin:18px 0;padding-bottom:12px;border-bottom:1px solid var(--line);flex-wrap:wrap}.study-tabs button,.study-cue-toolbar button,.study-inspector button,.study-review button{min-height:40px;font:600 12px var(--font-body);border:1px solid var(--line);border-radius:8px;background:var(--white);color:var(--forest);padding:8px 12px}.study-tabs button[aria-pressed=true],.study-cue-toolbar button[aria-pressed=true],.study-inspector button[aria-pressed=true]{background:var(--lime);border-color:var(--forest)}#studySymbols{margin-left:auto}#songDialog{width:min(1050px,calc(100% - 28px))}#songEditor:not([data-cue-mode=lyrics]) .editor-tools,#songEditor:not([data-cue-mode=lyrics]) .cue-legend,#songEditor:not([data-cue-mode=lyrics]) #editCuePreview,#songEditor:not([data-cue-mode=lyrics]) #editChordPanel{display:none!important}#songDialog .form-grid[hidden],#editLyrics[hidden],#studyCuePane[hidden]{display:none!important}#editLyrics{min-height:320px}#studyStatus{margin:14px 0;font-size:11px;min-height:17px}.study-cue-toolbar{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:15px}.study-cue-toolbar>p{font-size:12px;line-height:1.5;color:var(--sage);margin:0}.study-cue-toolbar>div{display:flex;gap:6px}.study-cue-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:18px;align-items:start}.study-lyrics{padding:21px 16px;background:var(--mint);border:1px solid var(--line);border-radius:11px;min-width:0}.study-edit-line{display:flex;flex-wrap:wrap;align-items:start;gap:2px 4px;margin:0 0 8px}.study-word{display:flex;flex-direction:column;align-items:start;max-width:100%;border:0;border-radius:4px;background:none;color:var(--forest);font:600 25px/1.2 var(--font-body);letter-spacing:-.03em;padding:3px;min-height:44px}.study-word>span{overflow-wrap:anywhere}.study-word.selected{background:var(--lime);box-shadow:inset 0 -2px var(--forest)}.study-word small,.study-live-word small{display:block;color:#526b10;border-top:1px solid currentColor;font:400 11px/1.3 var(--font-body);margin-top:2px;padding-top:1px;letter-spacing:0;max-width:100%;overflow-wrap:anywhere}html[data-mode=dark] .study-word small,html[data-mode=dark] .study-live-word small{color:#d9f76e}.study-inspector{padding:18px;border:1px solid var(--line);border-radius:11px;background:var(--white);min-width:0}.study-inspector h3{font-size:20px;line-height:1.25;margin:8px 0 15px;overflow-wrap:anywhere}.study-inspector .eyebrow{font-size:9px}.study-inspector .hint{font-size:11px;line-height:1.7}.study-inspector-head{display:flex;justify-content:space-between;gap:12px}.study-inspector-head>button{align-self:start;border:0;padding:0;min-width:35px;font-size:20px}.study-picks{display:grid;grid-template-columns:1fr 1fr;gap:7px}.study-more{margin:15px 0}.study-more summary{font-size:11px;min-height:35px;cursor:pointer}.study-more label{display:grid;gap:6px;font-size:11px;color:var(--sage);margin:9px 0}.study-more input,.study-more select{width:100%;min-height:40px;background:var(--mint);border:1px solid var(--line);border-radius:7px;color:var(--forest);font:12px var(--font-body);padding:8px}.study-cue-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:15px}.study-inspector button.primary{background:#d9f76e;color:#15191f;border-color:#d9f76e}.study-review{border:1px solid var(--line);padding:16px;border-radius:10px;margin:10px 0}.study-review p{font-size:12px}.study-review button{margin-right:8px}#liveLyrics:has(.study-live-line){white-space:normal;line-height:1.2}.study-live-line{white-space:pre-wrap;margin-bottom:7px;overflow-wrap:anywhere}.study-live-word{display:inline-flex;vertical-align:top;flex-direction:column;max-width:100%;overflow-wrap:anywhere}.study-live-word small{font-size:clamp(11px,.24em,16px);line-height:1.3}#studyLiveSymbols[aria-pressed=true]{background:var(--lime)}@media(max-width:760px){.study-cue-layout{grid-template-columns:1fr}.study-cue-toolbar{flex-wrap:wrap;gap:8px}.study-cue-toolbar>div{margin-left:auto}.study-word{font-size:23px}.study-picks{grid-template-columns:repeat(4,minmax(0,1fr))}.study-inspector{padding:15px}.study-inspector button{padding:8px;font-size:11px}.study-tabs{gap:5px}.study-tabs button{font-size:11px;padding:8px}#songDialog{padding:16px}}@media(max-width:380px){.study-picks{grid-template-columns:1fr 1fr}}



body[data-active-tab=live] #liveLyrics .study-live-line{line-height:1.2}body[data-active-tab=live] #liveLyrics .study-live-word{line-height:1.2}

.study-word:disabled{opacity:1;cursor:default}.study-tabs button:focus-visible,.study-word:focus-visible,.study-inspector button:focus-visible{outline:2px solid var(--forest);outline-offset:3px}.study-annotation-count{font-size:11px;color:var(--sage)}

/* Word chords are overlays: font changes scale them without moving lyric words. */
.study-word[data-chord],.study-chord-word{position:relative}
.study-word[data-chord]::before,.study-chord-word::before{content:attr(data-chord);position:absolute;left:0;bottom:calc(100% - .388888889em);font:600 .529411765em/1 var(--font-body);letter-spacing:0;color:#4b6516;white-space:nowrap;pointer-events:none}
html[data-mode=dark] .study-word[data-chord]::before,html[data-mode=dark] .study-chord-word::before{color:#d9f76e}
.study-annotation-tabs{display:flex;gap:4px;width:fit-content;padding:3px;border-radius:9px;background:var(--mint);border:1px solid var(--soft-line);margin:0 0 10px}
.study-annotation-tabs button{min-height:36px;padding:6px 20px;border:0;border-radius:6px;background:transparent;color:var(--sage);font:600 12px var(--font-body)}
.study-annotation-tabs button[aria-pressed=true]{background:var(--white);color:var(--forest);box-shadow:0 1px 5px #0001}
#songEditor .study-chord-fields{display:grid;grid-template-columns:58px minmax(0,1fr) 78px;gap:6px;min-width:0}
#songEditor .study-chord-fields label{display:block;min-width:0;font:500 10px/1.3 var(--font-body);color:var(--sage)}
#songEditor .study-chord-fields select{display:block;width:100%;min-width:0;min-height:44px;margin-top:5px;padding:5px;border:1px solid var(--soft-line);border-radius:8px;background:var(--mint);color:var(--forest);font:400 16px var(--font-body)}
#songEditor .study-chord-custom{margin:4px 0 0}
#songEditor .study-chord-custom summary{display:flex;align-items:center;min-height:40px;color:var(--sage)}
#songEditor .study-chord-custom input{font-size:16px}

/* Keep both portable inline markers and saved word cues above the lyric baseline. */
#liveLyrics .legacy-cue-word,#liveLyrics .study-live-word{display:inline-block;vertical-align:baseline;max-width:100%}
#liveLyrics .legacy-cue-word>.live-cue,#liveLyrics .study-live-word>small{display:table;margin:0 0 3px;padding:1px 4px;font-size:clamp(11px,.3em,17px);line-height:1.3;vertical-align:baseline}
#liveLyrics .study-live-word>small{border-top:0;border-bottom:1px solid currentColor}
#liveLyrics .legacy-cue-word>span:last-child,#liveLyrics .study-live-word>span:last-child{display:block}
