body {
    font-family: system-ui;
    background: wheat;
    color: #222;
    display: grid;
    place-content: center;
    min-height: 100svh;
    padding: 20px;
}

.card {
    background: white;
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, .35);
    margin-bottom: 20px;
}

h1 {
    font-size: 28px;
    margin: 0 0 10px;
    font-weight: 700;
    letter-spacing: .2px;
}

h2 {
    font-size: 16px;
    margin: 0 0 10px;
    font-weight: 600;
    letter-spacing: .1px;
}

.row {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

svg {
    display: block;
}

#staff {
    width: 920px;
    height: 280px;
}

#fingerboard {
    width: 1000px;
    height: 800px;
}


.staff-line {
    stroke: #444;
    stroke-width: 2;
}

.note {
    cursor: pointer;
}

.note ellipse {
    fill: black;
    stroke: #222;
    stroke-width: 2;
}

.note .note-label {
    font-size: 18px;
    fill: #444;
    font-weight: 600;
    pointer-events: none;
}

.prefix-label {
    font-size: 32px;
    fill: #444;
    font-weight: 1000;
    pointer-events: none;
}


.selected ellipse {
    fill: orange;
    stroke: #0f1722;
}

.same-tone ellipse {
    fill: #FAD5A5 !important;
    stroke: #4a6fa5 !important;
    stroke-width: 2 !important;      
}

/* Bass clef using the Unicode glyph; sized & positioned nicely */
.clef {
    font-size: 88px;
    dominant-baseline: middle;
    fill: #444;
}

/* Cello fingerboard styles */
.fingerboard-container {
    width: 920px;
    height: 300px;
    margin-top: 10px;
}

.string {
    stroke: #666;
    stroke-width: 3;
}

.string.c-string {
    stroke-width: 4;
}

.string.g-string {
    stroke-width: 3.5;
}

.string.d-string {
    stroke-width: 3;
}

.string.a-string {
    stroke-width: 2.5;
}

.fret {
    stroke: #aaa;
    stroke-width: 1;
}

.finger-position {
    cursor: pointer;
    transition: all 0.2s ease;
}

.finger-position circle {
    fill: #f0f0f0;
    stroke: #888;
    stroke-width: 2;
}

.finger-position:hover circle {
    fill: #ffd4a3;
}

.finger-position.active circle {
    fill: orange !important;
    stroke: #0f1722 !important;
    stroke-width: 3 !important;
}

.finger-position.same-tone-finger circle {
    fill: #FAD5A5 !important;
    stroke: #4a6fa5 !important;
    stroke-width: 2 !important;
    stroke-dasharray: 3 !important;
}

.finger-position text {
    font-size: 18px;
    fill: #333;
    font-weight: 600;
    pointer-events: none;
    text-anchor: middle;
    dominant-baseline: middle;
}

.string-label {
    font-size: 20px;
    font-weight: 700;
    fill: #444;
}

.position-label {
    font-size: 14px;
    fill: #666;
    text-anchor: end;
}

.nut {
    stroke: #333;
    stroke-width: 4;
    stroke-linecap: round;
}

.position-bracket {
    stroke: #333;
    stroke-width: 2;
    fill: none;
}

.position-bracket-label {
    font-size: 16px;
    font-weight: 600;
    fill: #333;
    text-anchor: start;
    cursor: pointer;
}

.finger-position.position-highlighted circle {
    fill: #b4e7b4;
    stroke: #2d8b2d;
    stroke-width: 2;
}

.accidental-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.accidental-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.accidental-group label {
    font-size: 24px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.accidental-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.accidental-symbol {
    font-size: 16px;
    font-weight: bold;
}
