  * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            padding: 20px;
            font-family: Arial, sans-serif;
            background: #f5f5f5;
        }

        .container {
            max-width: 1000px;
            margin: 0 auto;
        }

		input {
			width: 100%;
			height: 100%;
			box-sizing: border-box;

			padding: 1px 4px 7px 4px;

			border: 1px solid transparent;
			border-bottom: 1px solid #aaa;

			background: transparent;

			font: inherit;
			text-align: left;

			outline: none;
		}

		input:hover {
			border-color: #ccc;
			background: #f5f5f5;
		}

		input:focus {
			border-color: #888;
			background: white;
		}					
		
		input.playing,
		input.playing:hover,
		input.playing:focus,
		.chord-input.playing,
		.chord-input.playing:hover,
		.chord-input.playing:focus {
			background: #d9f2d9;
			border-color: #4caf50;
			border-bottom-color: #2e7d32;
		}

        h1 {
            margin-top: 0;
        }

        .toolbar {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 15px;
        }

        button {
            padding: 8px 14px;
            border: 1px solid #aaa;
            border-radius: 5px;
            background: white;
            cursor: pointer;
            font-size: 14px;
        }

        button:hover:not(:disabled) {
            background: #eee;
        }

        button:disabled {
            opacity: 0.5;
            cursor: default;
        }
		
		.share-button {
			border: none;
			background: none;
			padding: 0;
			margin: 0;
			color: inherit;
			cursor: pointer;

			display: inline-flex;
			align-items: center;
			justify-content: center;
			vertical-align: middle;
			line-height: 1;
		}

		.share-button:hover {
			border: 1px solid #aaa;
		}

        .separator {
            width: 1px;
            background: #ccc;
            margin: 0 5px;
        }

        #status {
            padding: 8px 10px;
            margin-bottom: 15px;
            background: white;
            border: 1px solid #ddd;
            border-radius: 5px;
            min-height: 36px;
        }

        #songInfo {
            margin-bottom: 15px;
            font-size: 15px;
        }

        #rawXmlContainer {
            display: none;
        }

        #rawXml {
            width: 100%;
            min-height: 500px;
            resize: vertical;

            font-family: Consolas, "Courier New", monospace;
            font-size: 13px;
            line-height: 1.4;

            padding: 10px;

            border: 1px solid #aaa;
            border-radius: 5px;

            background: white;
        }

        .modified {
            border-color: #d08000 !important;
        }

        .hidden {
            display: none;
        }
		
.soundfont-status {
    margin: 10px 0;
    font-size: 14px;
}

.soundfont-progress-container {
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.soundfont-progress {
    height: 100%;
    width: 0%;
    background: #4caf50;
    transition: width 0.15s ease;
}
		
	#chordsContainer {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 8px;
		line-height: 1.8;
	}
	

	.chord-bar {
		display: flex;
		align-items: center;
		gap: 4px;
		flex-wrap: nowrap;
		flex-shrink: 0;
	}

	.chord-bar-label {
		flex-shrink: 0;

		font-size: 0.8em;
		color: #777;

		margin-left: 8px;
		margin-right: 2px;
	}

	.chord-container {
		position: relative;

		width: 60px;
		height: 28px;

		flex-shrink: 0;
	}

	.chord-input {
		width: 100%;
		height: 100%;
		box-sizing: border-box;

		padding: 1px 4px 7px 4px;

		border: 1px solid transparent;
		border-bottom: 1px solid #aaa;

		background: transparent;

		font: inherit;
		text-align: center;

		outline: none;
	}

	.chord-input:hover {
		border-color: #ccc;
		background: #f5f5f5;
	}

	.chord-input:focus {
		border-color: #888;
		background: white;
	}
	
	.chord-input.readonly {
		color: #555;
		background: #eee;
	}

	.chord-input.readonly:focus {
		color: #555;
		background: #eee;
		outline: none;
	}
	
	.chord-beat {
		position: absolute;
		left: 3px;
		bottom: 1px;

		font-size: 33%;
		line-height: 1;

		color: #888;

		pointer-events: none;
		user-select: none;

		z-index: 1;
	}
	
	
			input.playing,
		input.playing:hover,
		input.playing:focus,
		.chord-input.playing,
		.chord-input.playing:hover,
		.chord-input.playing:focus {
			background: #d9f2d9;
			border-color: #4caf50;
			border-bottom-color: #2e7d32;
		}

	.song-editor-chords {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
	}

	
.song-part {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.song-part input,
.song-part select {
    height: 24px;
    box-sizing: border-box;

    padding: 1px 4px;

    border: 1px solid transparent;
    border-bottom: 1px solid #aaa;

    background: transparent;

    font: inherit;
    color: inherit;

    outline: none;
}

.song-part input:hover,
.song-part select:hover {
    border-color: #ccc;
    background: #f5f5f5;
}

.song-part input:focus,
.song-part select:focus {
	text-align: "left";
    border-color: #888;
    background: white;
}

.song-part-name {
    width: 70px;
}

.song-part-range {
    color: #777;
    font-size: 0.85em;
    white-space: nowrap;
}

.song-part-rhythm {
    width: 180px;
}

.song-part-variation {
    width: 110px;
}

.rhythm-autocomplete {
    position: relative;
    display: inline-block;
}

.rhythm-suggestions {
    position: absolute;

    top: 100%;
    left: 0;

    width: 100%;

    max-height: 250px;

    overflow-y: auto;

    background: white;

    border: 1px solid #ccc;

    z-index: 1000;
}

.rhythm-suggestion {
    padding: 6px 8px;

    cursor: pointer;

    white-space: nowrap;
}

.rhythm-suggestion:hover {
    background: #eee;
}