.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

@font-face {
    font-family: OpenSans;
    src: url('../OpenSans-Regular.ttf') format('truetype');
}
@font-face {
    font-family: OpenSans;
    src: url('../library/OpenSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
}
@font-face {
    font-family: Nunito;
    src: url('../library/Nunito-ExtraBold.ttf') format('truetype');
    font-weight: 800;
}

* { box-sizing: border-box; }
body { margin: 0; background: #111827; color: #f9fafb; font-family: OpenSans, sans-serif; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled, select:disabled { cursor: default; opacity: .6; }
button, select, input {
    border: 1px solid #6b7280;
    border-radius: 10px;
    padding: .7rem .9rem;
    background: #253044;
    color: #fff;
}
button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #a78bfa; outline-offset: 2px; }
input { width: 100%; }
h1 { margin: .4rem 0 1rem; font-size: 1.6rem; }
.brand { color: silver; font-size: 1.5rem; font-weight: 800; white-space: nowrap; }
.brand span { color: #8b5cf6; }
.login { max-width: 430px; margin: 9vh auto; padding: 2rem; }
.login .brand { text-align: center; font-size: 3rem; margin-bottom: .2rem; }
.login > p { text-align: center; }
.login form { display: grid; gap: .6rem; margin-top: 2rem; }
.login label { margin-top: .5rem; }
.primary { background: #7c3aed; border-color: #7c3aed; font-weight: bold; margin-top: 1rem; }
.topbar { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; background: #1f2937; }
.topbar select { flex: 1; min-width: 0; max-width: 350px; }
.topbar button { margin-left: auto; }
.content { max-width: 900px; margin: auto; padding: 1rem; }
.notice, .error { border-radius: 10px; padding: .9rem; }
.notice { background: #344055; }
.error { background: #7f1d1d; color: white; }
.tabs, .toolbar, .heading { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.heading { margin-bottom: 1rem; }
.heading h1, .heading p { margin: .2rem 0; }
.tabs .active { background: #7c3aed; border-color: #7c3aed; }
.refresh { margin-left: auto; }
.list-item {
    display: flex; flex-direction: column; align-items: flex-start; text-align: left;
    width: 100%; gap: .2rem; margin: .6rem 0; padding: 1rem;
    background: #1f2937; color: #fff; border: 1px solid #374151; border-radius: 12px;
}
.list-item span { color: #c3cad5; font-size: .9rem; }
.toolbar { margin: 1rem 0; }
.library-layout {
    display: flex; flex-direction: column; height: 100vh; height: 100dvh;
    background: #1a1512 url('../performance/background_countryside.svg') center center / cover no-repeat;
}
.library-header { flex: 0 0 auto; padding: calc(6px + env(safe-area-inset-top, 0px)) 8px 6px; background: #8080801a; }
.library-header .brand { font: 800 22px Nunito, sans-serif; }
.library-header select, .library-header button { padding: .5rem .65rem; font-size: 13px; }
.library-header .band-profile { display: flex; flex: 1 1 0; min-width: 0; flex-direction: column; align-items: flex-end; gap: 1px; margin-left: auto; padding: 2px 0; border: 0; background: transparent; text-align: right; }
.band-profile-name { display: flex; max-width: 100%; align-items: center; gap: 6px; font-size: 14px; font-weight: bold; overflow-wrap: anywhere; }
.band-profile-color { flex: 0 0 14px; width: 14px; height: 14px; border: 1px solid silver; border-radius: 50%; }
.band-profile small { max-width: 100%; overflow: hidden; color: #ffffffd9; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.library-header .drawer-trigger { flex: 0 0 44px; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; background: transparent; font-size: 26px; line-height: 1; }
.navigation-drawer {
    position: fixed; inset: 0 auto 0 0; width: min(280px, 90vw); max-width: none;
    height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0;
    border: 0; color: white; background: linear-gradient(#1a1a2a, #2a2a3a 50%, #111120);
}
.navigation-drawer::backdrop { background: #0008; }
.drawer-panel { display: flex; flex-direction: column; height: 100%; }
.drawer-body { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: calc(50px + env(safe-area-inset-top, 0px)) 0 8px; }
.drawer-branding { display: flex; align-items: center; justify-content: space-between; padding: 0 20px 16px; }
.drawer-branding .brand { font-size: 24px; }
.library-header .drawer-close { flex: none; margin: 0; padding: 0 5px; border: 0; background: transparent; font-size: 24px; }
.drawer-divider { height: 1px; background: #3d2060; margin: 0 0 8px; }
.drawer-section-label { margin: 8px 20px 4px; color: #8b5cf6; opacity: .8; font-size: 11px; font-weight: bold; letter-spacing: 1.5px; }
.library-header .drawer-item {
    display: flex; align-items: center; gap: 14px; width: 100%; min-height: 46px; margin: 0;
    padding: 12px 20px; border: 0; border-radius: 0; background: transparent; text-align: left; font-size: 16px;
}
.drawer-item:not(:disabled):hover, .drawer-item.drawer-current { background: #ffffff20; }
.drawer-item img { flex: 0 0 22px; width: 22px; height: 22px; }
.library-header .drawer-tool { min-height: 38px; gap: 12px; padding: 7px 20px; font-size: 14px; }
.drawer-tool img { flex-basis: 18px; width: 18px; height: 18px; }
.drawer-footer { flex: 0 0 auto; padding: 0 0 calc(16px + env(safe-area-inset-bottom, 0px)); }
.library-header .drawer-signout { color: #ff6b6b; }
.drawer-error { position: absolute; top: 55px; left: 8px; right: 8px; z-index: 1; }
.library-content { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
.library-loading { display: flex; flex: 1 1 0; align-items: center; justify-content: center; margin: 0; padding: 1rem; text-align: center; }
@media (prefers-reduced-motion: no-preference) {
    .view-enter, .song-enter-a { animation: view-enter 200ms ease-out; }
    .song-enter-b { animation: view-enter-alternate 200ms ease-out; }
}
@keyframes view-enter {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes view-enter-alternate {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}
.song-library { position: relative; flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
.song-search { display: flex; gap: 6px; margin: 10px; }
.song-search input { min-width: 0; background: #24232cc9; border: 0; border-radius: 8px; }
.song-search input::placeholder { color: #d1d5db; }
.library-refresh { flex: 0 0 44px; padding: 0; border: 0; background: transparent; font-size: 25px; }
.library-import {
    position: absolute; right: 50px; bottom: 50px; display: flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%;
    background: #f59e0b; color: white; font-size: 32px; line-height: 1; box-shadow: 0 4px 8px #0006;
}
.song-import-body { flex: 1; min-height: 0; overflow-y: auto; padding: 20px; }
.song-import-body h2 { margin-top: 0; font-size: 24px; }
.song-import-body label { display: block; margin: 12px 0 6px; font-weight: bold; }
.song-import-body textarea { display: block; width: 100%; padding: 10px; border: 1px solid #8b5cf6; border-radius: 8px; background: #ffffff20; color: white; font-family: monospace; resize: vertical; }
.song-import-body select { max-width: 100%; padding: 8px; }
.song-import-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 420px; margin: 12px 0 0 auto; }
.song-import-actions button { min-height: 44px; margin: 0; }
.song-import-duplicate { margin-top: 16px; padding: 12px; border: 1px solid #f59e0b; border-radius: 8px; background: #3a2b16; }
.folder-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; padding: 8px 12px 4px; border-bottom: 1px solid #20ffffff; }
.folder-breadcrumb button { border: 0; padding: 6px 3px; background: transparent; color: #e5e7eb; font-size: 14px; }
.folder-breadcrumb button[aria-current] { color: white; font-weight: 600; }
.folder-up img { display: block; width: 24px; height: 24px; }
.song-list { flex: 1 1 0; min-height: 0; overflow-y: auto; margin: 0 10px; }
.song-library-list { padding-bottom: 110px; }
.song-list-row {
    display: flex; align-items: center; gap: 8px; width: 100%; min-height: 60px;
    margin: 1px 0; padding: 8px; border: 0; border-radius: 8px; background: transparent;
    text-align: left;
}
.song-list-row:hover { background: #ffffff30; }
.folder-row img { flex: 0 0 24px; width: 24px; height: 24px; }
.folder-row span, .song-row-text strong { font-size: 17px; font-weight: 600; }
.song-row-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.song-row-text small { font-size: 13px; color: #ffffff80; }
.song-list-empty { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; }
.song-list-empty img { width: 64px; height: 64px; }
.song-list-empty strong { font-size: 20px; }
.library-navigation { display: flex; flex: 0 0 auto; gap: 4px; padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px)); background: #8080801a; }
.library-navigation button { display: flex; flex: 1; align-items: center; justify-content: center; gap: 8px; min-width: 0; padding: 8px 12px; border: 0; background: transparent; font-size: 14px; }
.library-navigation button.active { background: #ffffff30; font-weight: bold; }
.library-navigation img { width: 20px; height: 20px; }
.library-nav-songs { color: #f59e0b; }
.library-nav-setlists { color: #10b981; }
.library-nav-events { color: #60a5fa; }
.event-browser-host:not([hidden]) { display: flex; flex: 1 1 0; min-height: 0; flex-direction: column; }
.event-controls { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px 10px; }
.event-controls select, .event-controls button, .event-date-filter { min-width: 0; padding: 7px; border: 1px solid #ffffff40; border-radius: 6px; background: #24232c; color: white; }
.event-date-filter { display: flex; align-items: center; gap: 6px; }
.event-date-filter input { width: auto; padding: 0; border: 0; background: transparent; color: white; }
.event-row .song-row-text { flex: 1; }
.event-badge { flex: 0 0 auto; padding: 5px 8px; border-radius: 5px; font-size: 11px; font-weight: bold; color: white; }
.event-status { background: #ffffff33; }
.event-calendar { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 10px; }
.event-calendar-header { display: flex; align-items: center; justify-content: space-between; }
.event-calendar-header button { border: 0; background: transparent; font-size: 26px; }
.event-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.event-calendar-grid > strong { padding: 8px 0; font-size: 12px; }
.event-calendar-day { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 60px; padding: 6px 1px; border: 0; background: #ffffff12; }
.event-calendar-day.outside { opacity: .45; }
.event-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
.event-dots span, .event-legend i { width: 8px; height: 8px; border-radius: 50%; }
.event-legend { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 0; font-size: 12px; }
.event-legend span { display: flex; align-items: center; gap: 5px; }
.event-detail-body { flex: 1; min-height: 0; width: 100%; max-width: 480px; margin: 0 auto; overflow-y: auto; padding: 16px 24px; }
.event-badges { display: flex; justify-content: center; gap: 10px; margin-bottom: 16px; }
.event-badges .event-badge { padding: 8px 12px; font-size: 14px; }
.event-card { margin-bottom: 16px; padding: 12px 16px; border-radius: 16px; background: #0003; }
.event-card > div:not(.event-text) { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.event-card span { color: #aaa; font-size: 13px; }
.event-card strong { font-size: 15px; font-weight: normal; text-align: right; white-space: pre-wrap; overflow-wrap: anywhere; }
.event-card h2 { margin: 0 0 8px; font-size: 16px; }
.event-card.event-text, .event-card .event-text { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.event-card .event-text strong, .event-card.event-text strong { text-align: left; }
.event-card.event-setlist { display: flex; align-items: center; justify-content: space-between; }
.band-selector { display: flex; flex: 1 1 0; min-height: 0; flex-direction: column; }
.band-selector-body { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
.band-selector-body > p:first-child { margin: 0 0 24px; font-size: 16px; }
.band-card { display: flex; align-items: center; gap: 8px; min-width: 0; margin-bottom: 10px; padding: 16px; border-radius: 12px; background: #ffffff1a; }
.band-selector-body .band-choice { display: flex; flex: 1 1 0; align-items: center; gap: 12px; min-width: 0; min-height: 60px; padding: 0; border: 0; background: transparent; text-align: left; }
.band-color { flex: 0 0 6px; width: 6px; height: 60px; border: 1px solid #6b7280; border-radius: 3px; }
.band-details { display: flex; flex: 1 1 0; min-width: 0; flex-direction: column; gap: 4px; }
.band-details strong { overflow-wrap: anywhere; font-size: 18px; }
.band-details small { overflow: hidden; color: #ffffffb3; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.band-default-label { color: #8b5cf6; font-size: 12px; font-weight: bold; }
.band-selector-body .band-make-default { flex: 0 0 auto; padding: 6px; border: 0; background: transparent; color: #c4b5fd; font-size: 12px; }
.band-selector-note { color: #d1d5db; font-size: 12px; }
.setlist-library-list { padding-top: 10px; }
.setlist-list-row { min-height: 55px; margin: 3px 0; }
.setlist-list-row strong { font-size: 17px; font-weight: 600; }
.setlist-list-row span { flex-shrink: 0; font-size: 14px; color: #ffffffb3; }
.setlist-overview { display: flex; flex: 1 1 0; min-height: 0; flex-direction: column; }
.setlist-overview-header { display: flex; align-items: center; gap: .45rem; min-height: 50px; padding: env(safe-area-inset-top, 0) .5rem 0; background: #111827; }
.setlist-overview-header h1 { flex: 1; min-width: 0; margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 16px; }
.setlist-overview-header button { padding: .2rem .55rem; border: 0; background: transparent; font-size: 25px; line-height: 1; }
.setlist-overview-header .setlist-start { font-size: 14px; }
.setlist-overview-body { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.setlist-summary { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 16px; margin-bottom: 8px; border-radius: 12px; background: #8080801a; font-size: 14px; color: #ffffffcc; text-align: center; }
.setlist-summary small { font-size: 13px; color: #ffffffb3; }
.setlist-notes { padding: 12px 16px; margin-bottom: 16px; border: 1px solid #ff808060; border-radius: 8px; background: #8050502a; white-space: pre-wrap; font-size: 14px; }
.setlist-entry { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 66px; padding: 12px 16px; margin: 8px 0; border: 1px solid transparent; border-radius: 8px; background: #ffffff33; text-align: left; }
button.setlist-entry:hover { background: #ffffff40; }
.setlist-position, .setlist-type { display: flex; flex: 0 0 40px; width: 40px; height: 40px; align-items: center; justify-content: center; font-weight: bold; }
.setlist-position { border-radius: 50%; background: #10b981; font-size: 18px; }
.setlist-type { border-radius: 8px; background: #80808050; font-size: 8px; text-align: center; overflow-wrap: anywhere; }
.setlist-entry-text { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 4px; }
.setlist-entry-text strong { font-size: 17px; font-weight: normal; overflow-wrap: anywhere; }
.setlist-entry-text small { font-size: 14px; color: #ffffffb3; white-space: pre-wrap; }
.setlist-arrow { color: #ffffff80; font-size: 32px; line-height: 1; }
.setlist-empty { text-align: center; }
.performance-root { width: 100%; }
.performance-screen {
    display: flex; flex-direction: column; height: 100vh; height: 100dvh;
    background: #1a1512 url('../performance/background_countryside.svg') center center / cover no-repeat;
    overflow: hidden;
}
.performance-header {
    display: flex; align-items: center; gap: .45rem; min-height: 50px;
    padding: env(safe-area-inset-top, 0) .5rem 0; background: #111827;
}
.performance-header h1 { flex: 1; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.performance-header button { border: 0; background: transparent; padding: .2rem .55rem; font-size: 25px; line-height: 1; }
.performance-toolbar { display: flex; justify-content: center; gap: 2px; padding: .5rem .25rem .75rem; background: #0d1520ee; }
.performance-tool { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 72px; min-height: 60px; padding: 6px; border: 0; background: transparent; font-size: 11px; }
.performance-tool img { width: 22px; height: 22px; }
.performance-tool span { max-width: 60px; text-align: center; line-height: 1.2; }
.performance-screen .selected { background: #63512bd4; }
.chord-panel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px; padding: 4px; border-bottom: 3px solid #dd1f2937; max-height: 34vh; }
.instrument-selector, .transpose-controls { display: flex; flex-direction: column; gap: 3px; align-items: center; }
.instrument-selector button { border: 0; padding: 3px 6px; background: transparent; font-size: 11px; }
.transpose-controls button, .speed-controls button { border: 0; border-radius: 5px; width: 30px; height: 28px; padding: 0; }
.transpose-controls button { background: #ffffff50; }
.speed-controls button { background: #ffffff33; }
.transpose-controls span { font-size: 12px; }
.diagrams { display: flex; flex-wrap: wrap; justify-content: center; align-items: start; gap: 2px; overflow-y: auto; max-height: calc(34vh - 12px); }
.chord-diagram { display: block; flex: 0 0 70px; width: 70px; height: 85px; padding: 0; border: 0; background: transparent; }
.chord-diagram:disabled { opacity: 1; }
.chord-diagram svg { width: 100%; height: 100%; overflow: visible; }
.chord-name, .fret-number { fill: #7dd3fc; font-family: OpenSans, sans-serif; font-size: 10px; }
.fret-line { stroke: #ffffffbf; stroke-width: 1; }
.fret-nut { stroke: white; stroke-width: 2.8; }
.fret-marker { fill: #ffffff8c; font-size: 10px; }
.fret-open { fill: none; stroke: #ffffffb3; stroke-width: 1; }
.bass-open { fill: none; stroke: #f59e0b; stroke-width: 2; }
.fret-dot { fill: #f59e0b; }
.fret-barre { stroke: #f59e0bd9; stroke-width: 6.6; stroke-linecap: round; }
.unknown-chord { fill: #ffffff80; font-size: 17px; }
.scroll-controls, .display-controls { display: flex; align-items: center; gap: 6px; padding: 6px 12px; }
.scroll-controls { justify-content: space-between; }
.scroll-controls > button { border: 0; background: #ffffff33; padding: 6px 10px; min-width: 130px; font-size: 13px; }
.speed-controls { display: flex; align-items: center; gap: 6px; }
.speed-controls span { font-size: 11px; opacity: .7; }
.speed-controls strong { min-width: 25px; text-align: center; font-size: 14px; }
.display-controls { flex-wrap: wrap; gap: 5px; padding-top: 3px; padding-bottom: 3px; font-size: 11px; }
.display-controls button { border: 0; border-radius: 5px; padding: 3px 7px; background: #ffffff33; font-size: 11px; }
.performance-error { margin: 4px 12px; font-size: 13px; }
.wake-lock-warning { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: #473b16; color: #fff; font-size: 13px; }
.wake-lock-warning span { flex: 1; }
.wake-lock-warning button { padding: 4px 8px; border: 1px solid #ffffff80; background: transparent; }
.song-frame { display: block; flex: 1 1 0; min-height: 0; width: 100%; border: 0; background: transparent; }
.song-frame-hidden { display: none; }
.non-song-item { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; padding: 1rem; text-align: center; }
.non-song-item strong { font-size: 1.5rem; }
.performance-footer { padding: .35rem .75rem calc(.35rem + env(safe-area-inset-bottom, 0px)); background: #111827e8; }
.setlist-label { text-align: center; font-size: .75rem; color: #c3cad5; }
.setlist-navigation { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.setlist-navigation > span { flex-shrink: 0; font-size: .75rem; }
.setlist-navigation button { display: flex; align-items: center; gap: .3rem; min-width: 0; max-width: 40%; padding: .3rem; border: 0; background: transparent; font-size: .8rem; }
.setlist-navigation button span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.setlist-next { justify-content: flex-end; text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 420px) {
    .topbar { gap: .4rem; padding: .6rem; }
    .topbar .brand { font-size: 1.15rem; }
    .topbar button, .topbar select { padding: .5rem; }
}