/* Compact repertoire entry point; a roomy review workspace only when needed. */
.repertoire-head-actions{flex-wrap:wrap;justify-content:flex-end}
.add-song-entry{position:relative;flex-shrink:0}
#addSong{display:flex;align-items:center;gap:7px;min-height:44px;font-size:13px;padding:8px 12px;white-space:nowrap}
.add-song-menu{position:absolute;right:0;top:calc(100% + 4px);width:172px;padding:3px;border:1px solid var(--soft-line);border-radius:9px;background:var(--white);color:var(--forest);z-index:60;box-sizing:border-box}
.add-song-menu button{display:flex;align-items:center;gap:9px;width:100%;min-height:44px;max-width:100%;padding:8px 10px;border:0;border-radius:5px;background:var(--white);color:var(--forest);text-align:left;font-size:13px;font-weight:600;white-space:nowrap}
.add-song-menu button+button{border-top:1px solid var(--soft-line);border-top-left-radius:0;border-top-right-radius:0}
.add-song-menu button:hover,.add-song-menu button:focus-visible{background:var(--lime)}
.add-song-menu button>span{width:17px;flex-shrink:0;text-align:center;font-size:18px;font-weight:400}
dialog.song-list-import{width:960px;max-width:calc(100vw - 24px);padding:20px;box-sizing:border-box}
.song-list-import .hint{font-size:12px;line-height:1.6;margin:12px 0}
.song-list-import .dialog-head{align-items:start;gap:16px}
.song-list-import .dialog-head h2{font-size:25px}
.song-list-import .compact-action{min-height:44px;max-width:100%;font-size:12px;padding:8px 12px;white-space:normal}
.import-source-actions,.import-review-heading,.import-row-top,.import-row-status{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.import-review-heading{margin:18px 0 10px}.import-review-heading h3{margin:0 auto 0 0}
#songListImportStatus{margin:12px 0;overflow-wrap:anywhere}
#songListSource{border:1px solid var(--soft-line);border-radius:10px;padding:12px;margin-top:12px;background:var(--mint)}
#songListSource summary{cursor:pointer;min-height:28px;font-weight:600;font-size:13px}
#songListSource label{display:block;font-size:12px;margin:10px 0 6px}
#songListRawText{box-sizing:border-box;width:100%;max-width:100%;min-height:130px;font-size:14px;line-height:1.6;background:var(--white);color:var(--forest);resize:vertical}
#songListSource small{display:block;margin-top:8px;line-height:1.5;color:var(--sage);font-size:11px}
.song-list-review{display:grid;gap:12px;min-width:0}
.import-song-row{border:1px solid var(--soft-line);background:var(--white);border-radius:12px;padding:12px;min-width:0}
.import-song-row[data-duplicate=true]{border-color:var(--danger)}
.import-row-top{justify-content:space-between;margin-bottom:10px}
.import-include{display:flex;align-items:center;gap:8px;min-height:44px;font-size:13px;margin:0}
.import-include input{width:20px;height:20px;min-height:0;margin:0;accent-color:var(--forest)}
.import-song-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.import-song-fields label,.import-match-actions label{display:flex;flex-direction:column;gap:6px;font-size:11px;min-width:0;font-weight:600}
.import-song-fields input,.import-match-actions select{box-sizing:border-box;width:100%;max-width:100%;min-height:44px;font-size:14px;color:var(--forest);background:var(--white);border:1px solid var(--line);border-radius:8px;padding:8px}
.import-match-actions{display:flex;align-items:end;gap:8px;margin:12px 0 8px}.import-match-actions label{flex:1;min-width:0}
.import-row-status{font-size:12px;color:var(--sage);line-height:1.5}.import-row-status span{flex:1;min-width:160px;overflow-wrap:anywhere}
.import-footer{position:sticky;bottom:-20px;display:flex;align-items:center;gap:10px;padding:12px 0 6px;margin-top:16px;background:var(--white);border-top:1px solid var(--soft-line);z-index:2}
.import-footer>div{flex:1;min-width:0}.import-footer strong{font-size:13px}.import-footer small{display:block;font-size:11px;line-height:1.45;color:var(--sage);margin-top:5px}
@media(max-width:600px){dialog.song-list-import{padding:14px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.import-song-fields{grid-template-columns:minmax(0,1fr)}.import-footer{bottom:-14px;flex-wrap:wrap}.import-footer>div{flex-basis:100%}.import-footer button{flex:1}.import-match-actions{flex-wrap:wrap}.import-match-actions label{flex-basis:100%}.song-list-import .dialog-head h2{font-size:22px}}
/* Approved Guided Import: summaries first, details and lyrics only when opened. */
dialog.song-list-import{max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;padding:18px}
.import-steps{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}
.import-steps button{min-height:44px;padding:7px 12px;font-size:12px;line-height:1.4;background:var(--white);color:var(--forest);border:1px solid var(--soft-line);border-radius:8px}
.import-steps button[aria-current=step]{background:var(--highlight);color:#15191f;font-weight:600}
.import-source-actions label{font-size:11px;min-width:0;display:grid;gap:4px}
.import-source-actions select{min-height:44px;max-width:100%;font-size:13px}
#songListReviewHelp{display:block;font-size:11px;line-height:1.5;color:var(--sage);margin-top:4px}
.import-review-heading>div{margin-right:auto;min-width:140px}
.song-list-review{gap:0}
.import-song-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;column-gap:8px;row-gap:4px;border:0;border-bottom:1px solid var(--soft-line);border-radius:0;padding:8px 0;background:var(--white)}
.import-song-row[data-duplicate=true]{border-color:var(--soft-line)}
.import-song-summary{min-width:0;line-height:1.4}
.import-song-summary strong{display:block;font-size:14px;overflow-wrap:anywhere}
.import-song-summary small{display:block;font-size:12px;color:var(--sage);margin-top:3px;overflow-wrap:anywhere}
.import-row-actions{display:flex;align-items:center;gap:4px;flex-wrap:wrap;min-width:0}
.import-row-actions button{min-width:44px;min-height:44px;padding:5px 7px;font-size:12px;line-height:1.35;border:1px solid var(--soft-line);border-radius:7px;background:var(--white);color:var(--forest)}
.import-row-actions [data-swap],.import-row-actions [data-remove]{font-size:20px;padding:4px;min-width:44px}
.import-row-actions [data-lyrics]{min-width:84px;background:var(--mint)}
.import-row-actions [data-lyric-status]{display:block;font-size:10px;font-weight:400;color:var(--sage)}
.import-song-row>.import-row-status{grid-column:2/-1;line-height:1.45;font-size:11px}
.import-song-row[data-duplicate=true] .import-row-status{color:var(--danger)}
.import-editor,.import-lyric-panel{grid-column:2/-1;min-width:0;background:var(--mint);border:1px solid var(--soft-line);border-radius:9px;padding:12px;margin:5px 0}
.import-editor input,.import-editor select{font-size:14px;max-width:100%;width:100%;min-width:0;min-height:44px}
.import-editor .import-song-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.import-editor .import-match-actions{margin:9px 0}
.import-editor p{font-size:11px;line-height:1.5;overflow-wrap:anywhere;color:var(--sage)}
.import-lyric-panel pre{margin:8px 0;padding:12px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto;font:15px/1.65 var(--font-body);color:var(--forest);background:var(--white);border:1px solid var(--soft-line);border-radius:7px}
.import-lyric-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.import-lyric-head>div{min-width:0;flex:1}
.import-lyric-head strong,.import-lyric-head small{display:block;overflow-wrap:anywhere}
.import-lyric-head small{margin-top:4px}
.import-lyric-head [data-close-lyrics]{flex-shrink:0;min-width:44px}
.import-lyric-tools{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.import-lyric-panel textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;min-height:160px;max-height:360px;font-size:16px;line-height:1.6;resize:vertical}
.import-lyric-panel p,.import-lyric-panel small{font-size:11px;line-height:1.5;overflow-wrap:anywhere;color:var(--sage)}
.import-lyric-panel button,.import-editor button{min-height:44px;max-width:100%;font-size:12px;padding:7px 10px;white-space:normal}
.import-footer{bottom:-18px;padding:12px 0 3px}
@media(max-width:700px){
 .import-song-row{grid-template-columns:44px minmax(0,1fr);align-items:start}
 .import-song-summary{min-height:44px;display:flex;flex-direction:column;justify-content:center}
 .import-row-actions{grid-column:2/-1;gap:4px}
 .import-row-actions button{padding:5px;min-width:44px}
 .import-include{justify-content:center}
 .import-include strong{display:none}
 .import-editor,.import-lyric-panel{grid-column:1/-1;padding:10px}
 .import-editor .import-song-fields{grid-template-columns:minmax(0,1fr)}
 .import-editor input,.import-editor select{font-size:16px}
 .import-row-status span{min-width:0}
 .import-review-heading{gap:5px}
 .import-steps button{flex:1;padding:7px 6px;font-size:11px}
}
