/* The link is a track source, not a second player or a full-screen panel. */
#stage-dialog .youtube-link-form{margin:0 0 12px;padding:0 0 10px;border-bottom:1px solid #c9b69e}
#stage-dialog .youtube-link-form>label{display:block;margin:0 0 5px;font:12px/18px var(--music-pixel-font)}
#stage-dialog .youtube-link-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center}
#stage-dialog #youtube-link-input{width:100%;min-width:0;min-height:34px;margin:0;font:12px/18px var(--music-pixel-font)}
#stage-dialog .youtube-link-row button{margin:0;white-space:nowrap;padding:5px 8px}
#stage-dialog #youtube-link-status,#stage-dialog #youtube-link-help{display:block;margin:5px 0 0;white-space:normal;font:10px/15px var(--music-small-pixel-font);color:#785b4e}

#stage-dialog .youtube-link-form{padding:9px 10px 10px;background:#efe2cb;border:1px solid #b99b73}
#stage-dialog .youtube-link-choice{display:grid;gap:2px;margin:6px 0 0;min-width:0}
#stage-dialog .youtube-link-choice[hidden]{display:none!important}
#stage-dialog .youtube-link-choice small,#stage-dialog .youtube-link-choice span{font:10px/15px var(--music-small-pixel-font);color:#785b4e}
#stage-dialog .youtube-link-choice b{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:12px/18px var(--music-pixel-font);color:#594331}
/* One outer scroll area: never compute a zero-height body on short screens. */
#stage-dialog.stage-console[open]{display:block;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}
#stage-dialog.stage-console .wizard-body{max-height:none;min-height:0;overflow:visible}
#stage-dialog.stage-console .wizard-footer{position:static}
@media(pointer:coarse){
 #stage-dialog #youtube-link-input{font-size:16px;line-height:22px}
 #stage-dialog .youtube-link-row button{min-height:44px}
}
