* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    color-scheme: light;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    display: grid;
    place-items: center;
    min-block-size: 100dvh;
}

body,
button,
input {
    font: inherit;
}

button {
    color: inherit;
}

img,
svg {
    display: block;
}

a {
    color: inherit;
}

.app-shell {
    inline-size: 100%;
    display: grid;
    place-items: center;
}

.app-frame {
    inline-size: 100%;
    max-inline-size: 480px;
    min-inline-size: 360px;
    block-size: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr;
    background: rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-inline: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: normal;
    line-break: strict;
}

.app-scroll-region {
    overflow-y: auto;
    padding-block: 12px;
    display: block;
    scrollbar-width: none;
    min-block-size: 0;
    position: relative;
}

.app-scroll-region::-webkit-scrollbar {
    display: none;
}

.icon {
    inline-size: 1.25rem;
    block-size: 1.25rem;
    fill: currentColor;
    flex: none;
    align-self: center;
}

.icon--sm {
    inline-size: 1.125rem;
    block-size: 1.125rem;
    transform: translateY(0.5px);
}

.icon--md {
    inline-size: 1.25rem;
    block-size: 1.25rem;
}

.icon--lg {
    inline-size: 1.5rem;
    block-size: 1.5rem;
}

.icon-circle-button,
.icon-square-button,
.play-fab,
.diagram-nav-button,
.root-wheel__accidental-button,
.picker-button,
.theme-swatch,
.staff-play-button {
    border: none;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s, background 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
}

.icon-circle-button:active,
.icon-square-button:active,
.play-fab:active,
.diagram-nav-button:active,
.root-wheel__accidental-button:active,
.picker-button:active,
.theme-swatch:active,
.staff-play-button:active {
    transform: scale(0.96);
}

.empty-state {
    inline-size: 100%;
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
}