.song-search-open{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;font:inherit}
.song-search-open svg,.song-search-head svg{width:22px;height:22px;flex:none}
.song-search-dialog{box-sizing:border-box;width:min(740px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:20px;border:1px solid var(--edge);border-radius:16px;background:var(--ground);color:var(--text);font:inherit;overflow:auto}
.song-search-dialog::backdrop{background:rgba(0,0,0,.65)}
.song-search-dialog [hidden]{display:none!important}
.song-search-head{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;z-index:1;background:var(--ground);padding:8px 0}
.song-search-head h2{font-size:22px;margin:0}
.song-search-head button{display:grid;place-items:center;min-width:48px;min-height:48px;flex:none}
.song-search-muted{color:var(--muted);font-size:14px;line-height:1.5}
.song-search-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.song-search-fields label{display:grid;gap:8px;min-width:0}
.song-search-fields input,.song-search-fields select{box-sizing:border-box;min-height:48px;width:100%;min-width:0;font:inherit}
.song-search-source{grid-column:1/-1}
.song-search-fields>button{grid-column:1/-1;min-height:48px}
.song-search-status{min-height:24px;line-height:1.5}
.song-search-status[aria-busy=true]{display:flex;gap:12px;align-items:center}
.song-search-status[aria-busy=true]::before{content:'';width:18px;height:18px;flex:none;border:2px solid var(--edge);border-top-color:var(--accent);border-radius:50%;animation:song-search-spin .8s linear infinite}
.song-search-results{display:grid;gap:8px}
.song-search-result{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-height:64px;text-align:left;font:inherit;overflow-wrap:anywhere}
.song-search-result span{color:var(--muted);font-size:14px}
.song-search-preview{display:grid;gap:12px;margin-top:16px;min-width:0}
.song-search-preview h3,.song-search-preview p{margin:0}
.song-search-preview pre{box-sizing:border-box;max-height:40dvh;overflow:auto;white-space:pre;tab-size:4;padding:16px;background:var(--control);border:1px solid var(--edge);border-radius:8px;font:16px/1.6 monospace;margin:0;max-width:100%}
.song-search-preview>a{display:inline-flex;align-items:center;min-height:48px}
.song-search-consent{display:flex;align-items:center;gap:12px;min-height:48px}
.song-search-consent input{width:24px;height:24px;flex:none;accent-color:var(--accent)}
.song-search-actions{display:flex;gap:12px;flex-wrap:wrap}
.song-search-actions button{flex:1 1 220px;min-height:48px}
.chart-import-source{font-size:14px;line-height:1.5;color:var(--muted)}
@keyframes song-search-spin{to{transform:rotate(360deg)}}
@media(max-width:600px){.song-search-fields{grid-template-columns:minmax(0,1fr)}.song-search-dialog{padding:16px;margin:auto 16px 16px}.song-search-actions button{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.song-search-status[aria-busy=true]::before{animation:none;border-style:dashed}}
