/* ==========================================================================
   TOOL PAGE — shared layout for guitar / bass / keyboard / other-tools pages.
   Each page sets --tool-rgb / --tool-light-rgb before this cascades.
   ========================================================================== */

.tool-header {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px 16px;
    text-align: center;
}
.tool-header-titlerow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}
.tool-header-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    background: rgba(var(--tool-rgb), 0.16);
    border: 1px solid rgba(var(--tool-rgb), 0.32);
    flex-shrink: 0;
}
.tool-header h1 {
    font-family: var(--font-display);
    font-size: clamp(26px, 4vw, 34px);
    margin: 0;
}
.tool-header p {
    color: var(--text2);
    font-size: 14.5px;
    max-width: 640px;
    margin: 0 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ── Tool Tab Bar ("guitar selection nav" on guitar.html, same shared
   component reused across all instrument pages) ─────────────────────── */
.tool-tabs {
    max-width: 900px;
    margin: 22px auto 0;
    padding: 0 24px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.tool-tab {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text2);
    cursor: pointer;
    transition: all 0.15s var(--ease);
}
.tool-tab:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.tool-tab[aria-selected="true"] {
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.03) 100%),
        rgba(var(--tool-rgb), 0.16);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-bottom: 2px solid rgba(var(--tool-rgb), 0.9);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 3px 10px rgba(var(--tool-rgb), 0.22);
    transform: translateY(-0.5px);
}

.tool-panel { max-width: 1200px; margin: 24px auto 80px; padding: 0 24px; }
.tool-panel[hidden] { display: none; }

.controls-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}
.control-field { display: flex; flex-direction: column; gap: 6px; }
.control-field label {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text3);
}
.control-field select,
.control-field input[type="range"],
.control-field input[type="number"] {
    background: var(--bg2);
    border: 1px solid var(--border2);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font-family: var(--font-body);
    font-size: 13.5px;
    min-width: 150px;
}
.control-field select:focus-visible { border-color: var(--purple-l); }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.chip {
    font-size: 12.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(var(--tool-rgb), 0.14);
    border: 1px solid rgba(var(--tool-rgb), 0.3);
    color: var(--text);
}
.chip--root { background: var(--gold); color: #0a0714; border-color: var(--gold); }

.reset-btn {
    background: var(--glass-md);
    border: 1px solid rgba(var(--tool-light-rgb), .22);
    color: var(--text2);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all .15s var(--ease);
}
.reset-btn:hover { color: var(--text); border-color: rgba(var(--tool-light-rgb), 0.32); background: rgba(var(--tool-rgb), 0.16); }

.chord-display {
    text-align: center;
    background: rgba(var(--tool-rgb), 0.08);
    border: 1px solid rgba(var(--tool-rgb), 0.25);
    border-radius: 10px;
    padding: 9px 12px;
    margin: 14px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 64px;
}
.chord-display-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--text3);
}
.chord-display-name.has-chord { color: rgb(var(--tool-light-rgb)); }
.chord-display-notes {
    color: var(--text2);
    min-height: 0;
    line-height: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chord-display-notes:not(:empty) { margin-top: 4px; }

.tool-note { font-size: 13px; color: var(--text2); margin: 10px 2px 0; line-height: 1.5; }

/* ── Root-pill row + scale-select — exact copy of the bass page's
   controls (.ps-row / .root-pill / .scale-select), moved here so any
   tool page can use the identical markup/style, not just bass. ── */
.ps-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ps-micro-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--text3);
    flex-shrink: 0;
}
.root-pill-row { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.root-pill {
    background: rgba(255, 255, 255, .045);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 20px;
    color: var(--text2);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    line-height: 1.6;
    cursor: pointer;
    min-width: 42px;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    transition: background .12s var(--ease), border-color .12s var(--ease), color .12s var(--ease), box-shadow .12s var(--ease);
}
.root-pill:hover {
    background: rgba(var(--tool-rgb), .16);
    border-color: rgba(var(--tool-light-rgb), 0.40);
    color: #fff;
}
.root-pill.active {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.01) 55%, transparent 100%),
        radial-gradient(130% 160% at 50% 105%, rgba(var(--tool-rgb), 0.75) 0%, rgba(var(--tool-rgb), 0.38) 55%, rgba(var(--tool-rgb), 0.18) 100%);
    backdrop-filter: blur(14px) saturate(200%);
    -webkit-backdrop-filter: blur(14px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 2px solid rgba(var(--tool-light-rgb), 1);
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -4px 8px -3px rgba(var(--tool-rgb), 0.4),
        0 2px 8px rgba(var(--tool-rgb), 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.root-pill:active { transform: scale(0.93); transition-duration: 0.08s; }

.ps-block { display: flex; flex-direction: column; gap: 8px; }
.ps-type-row { display: none; }
.ps-type-row.ps-visible { display: flex; }
.ps-pills { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.type-pill-btn {
    background: rgba(255, 255, 255, .045);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 20px;
    color: var(--text2);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    line-height: 1.6;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    transition: background .12s var(--ease), border-color .12s var(--ease), color .12s var(--ease), box-shadow .12s var(--ease);
}
.type-pill-btn:hover {
    background: rgba(var(--tool-rgb), .16);
    border-color: rgba(var(--tool-light-rgb), 0.40);
    color: #fff;
}
.type-pill-btn.active {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.01) 55%, transparent 100%),
        radial-gradient(130% 160% at 50% 105%, rgba(var(--tool-rgb), 0.75) 0%, rgba(var(--tool-rgb), 0.38) 55%, rgba(var(--tool-rgb), 0.18) 100%);
    backdrop-filter: blur(14px) saturate(200%);
    -webkit-backdrop-filter: blur(14px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 2px solid rgba(var(--tool-light-rgb), 1);
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -4px 8px -3px rgba(var(--tool-rgb), 0.4),
        0 2px 8px rgba(var(--tool-rgb), 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.pill-sep { width: 1px; height: 16px; background: var(--border2); flex-shrink: 0; margin: 0 3px; }
.type-pill-btn:active { transform: scale(0.93); transition-duration: 0.08s; }


/* ── Sharp/flat spelling — single shared source of truth for every tool
   page (Guitar, Bass, Keyboard, Chord Builder). Any button using class
   ".note-toggle-btn" (plus the legacy per-page aliases below, kept for
   markup that still uses them) and any accidental pill using class
   ".sf-acc-pill" gets the identical blue(sharp)/amber(flat) treatment
   everywhere, driven by window.NoteDisplay's shared localStorage state. ── */
.sf-sep {
    display: inline-block;
    width: 1.5px;
    height: 22px;
    background: var(--border2);
    border-radius: 2px;
    align-self: center;
    flex-shrink: 0;
    margin: 0 2px;
}
.sf-acc-pill[data-hidden="1"] { display: none !important; }
.sf-acc-pill[data-mode="sharp"]:hover {
    background: rgba(0, 150, 255, .14);
    border-color: rgba(125, 223, 255, .40);
    color: #fff;
}
.sf-acc-pill[data-mode="flat"]:hover {
    background: rgba(255, 209, 102, .14);
    border-color: rgba(255, 209, 102, .40);
    color: #fff;
}
.sf-acc-pill.active[data-mode="sharp"],
.sf-acc-pill[aria-pressed="true"][data-mode="sharp"] {
    background: linear-gradient(150deg, rgba(255, 255, 255, .28), rgba(0, 150, 255, .70));
    border-color: rgba(125, 223, 255, .55);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .40), 0 2px 6px rgba(0, 150, 255, .2);
    text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
}
.sf-acc-pill.active[data-mode="flat"],
.sf-acc-pill[aria-pressed="true"][data-mode="flat"] {
    background: linear-gradient(150deg, rgba(255, 255, 255, .30), rgba(255, 209, 102, .75));
    border-color: rgba(255, 209, 102, .55);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 6px rgba(255, 209, 102, .2);
    text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
}

/* Sharp/flat toggle glyph centering — line-height-based centering
   doesn't reliably center the ♯ glyph (font metrics vary), so every
   instance of this toggle across the site uses flex centering instead. */
.chordlib-note-toggle,
.caged-note-toggle,
.scale-note-toggle,
.capo-note-toggle,
.sf-toggle,
#bass-note-display-toggle,
#keyboard-note-display-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Guitar's sharp/flat toggle holds a single glyph, not a text label —
   the generic .reset-btn padding (sized for labels like "Clear
   Fretboard") leaves it needlessly wide. */
.chordlib-note-toggle,
.caged-note-toggle,
.scale-note-toggle,
.capo-note-toggle {
    padding: 6px 10px;
}

/* The sharp/flat toggle button itself — every page's toggle (however
   it's classed: .chordlib-note-toggle, .caged-note-toggle,
   .scale-note-toggle, .capo-note-toggle) shares this same look. */
.chordlib-note-toggle[data-mode="sharp"],
.caged-note-toggle[data-mode="sharp"],
.scale-note-toggle[data-mode="sharp"],
.capo-note-toggle[data-mode="sharp"],
.sf-toggle[data-mode="sharp"],
#bass-note-display-toggle[data-mode="sharp"],
#keyboard-note-display-toggle[data-mode="sharp"] {
    background: linear-gradient(150deg, rgba(255, 255, 255, .28), rgba(0, 150, 255, .60));
    border-color: rgba(125, 223, 255, .55);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .40), 0 3px 12px rgba(0, 150, 255, .38);
    text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
}
.chordlib-note-toggle[data-mode="flat"],
.caged-note-toggle[data-mode="flat"],
.scale-note-toggle[data-mode="flat"],
.capo-note-toggle[data-mode="flat"],
.sf-toggle[data-mode="flat"],
#bass-note-display-toggle[data-mode="flat"],
#keyboard-note-display-toggle[data-mode="flat"] {
    background: linear-gradient(150deg, rgba(255, 255, 255, .30), rgba(255, 209, 102, .75));
    border-color: rgba(255, 209, 102, .55);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 3px 12px rgba(255, 209, 102, .45);
    text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
}
.sf-toggle:hover {
    background: rgba(255, 209, 102, .14);
    border-color: rgba(255, 209, 102, .40);
    color: #fff;
}

.scale-select {
    background-color: rgba(6, 4, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    color: var(--text);
    font-family: var(--font-body, inherit);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 30px 8px 12px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236ee6d7' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    cursor: pointer;
    min-width: 90px;
    transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.scale-select:hover { border-color: rgba(var(--tool-light-rgb), .40); }
.tool-controls-card .scale-select { width: 100%; margin-top: 10px; }
.tool-controls-card .tool-controls-desc {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border2);
    margin-bottom: 14px;
}

:root {
    --tc-card-fs: 12px;
    --tc-card-pad: 16px 18px;
}
@media (min-width: 601px) and (max-width: 1099px) {
    :root { --tc-card-fs: 11.5px; --tc-card-pad: 14px 16px; }
}
@media (min-width: 1920px) {
    :root { --tc-card-fs: 13px; --tc-card-pad: 18px 20px; }
}
@media (min-width: 2560px) {
    :root { --tc-card-fs: 14px; --tc-card-pad: 20px 22px; }
}
@media (min-width: 3840px) {
    :root { --tc-card-fs: 15.5px; --tc-card-pad: 24px 26px; }
}

/* ── Generic controls card — exact copy of the bass page's panel-card
   style (.bass-controls-panel / .bass-panel-title / .bass-panel-desc),
   generalized to --tool-rgb so any tool page can reuse it verbatim. ── */
.tool-controls-card {
    background:
        linear-gradient(160deg, rgba(var(--tool-rgb), .13), rgba(var(--tool-rgb), .02)),
        linear-gradient(165deg, rgba(24, 21, 46, .58), rgba(10, 8, 22, .66));
    border: 1px solid rgba(var(--tool-light-rgb), .26);
    border-radius: var(--radius-lg);
    padding: var(--tc-card-pad);
    margin-bottom: 16px;
    box-shadow: 0 6px 0 rgba(0, 0, 0, .35), 0 0 20px rgba(var(--tool-rgb), .10);
}
.tool-controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.tool-controls-header .tool-controls-desc { margin-bottom: 0; }
.tool-controls-header .reset-btn { flex-shrink: 0; }
.tool-controls-header .scale-note-toggle,
.tool-controls-header .caged-note-toggle,
.tool-controls-header .chordlib-note-toggle,
.tool-controls-header .capo-note-toggle {
    padding: 4px 8px;
}
.tool-controls-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: calc(var(--tc-card-fs) + 3px);
    color: rgb(var(--tool-light-rgb));
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tool-controls-desc { color: var(--text2); font-size: var(--tc-card-fs); margin: 0 0 10px; }
.tool-controls-card .controls-row { margin-bottom: 0; }
.tool-controls-card .scale-card,
.tool-controls-card .chip-row { margin-bottom: 0; }

/* ── Scale Notes pill card — degree number over each note, root picked
   out in gold, matching the "Scale Viewer" card from the original app ──
   Revamped: neon-outline pills (transparent so the tone-on-tone glow
   pops instead of a filled tile) sitting on a gradient-tinted card. ── */
.scale-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(155deg, rgba(var(--tool-rgb), .20) 0%, rgba(var(--tool-rgb), .04) 55%, transparent 100%),
        #0b0818;
    border: 1px solid rgba(var(--tool-rgb), .35);
    border-radius: var(--radius-lg);
    padding: 16px 16px 18px;
    margin: 14px 0;
    box-shadow: 0 0 24px rgba(var(--tool-rgb), .10), inset 0 0 0 1px rgba(var(--tool-rgb), .06);
}
.scale-card-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    color: rgb(var(--tool-light-rgb));
    text-transform: uppercase;
    letter-spacing: 1.1px;
    margin-bottom: 12px;
    text-shadow: 0 0 10px rgba(var(--tool-rgb), .6);
}
.scale-card-label::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 6px 1px rgba(255, 209, 102, .7);
}
.scale-pill-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
}
.scale-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.scale-pill-degree {
    font-size: 9px;
    font-weight: 700;
    color: rgba(var(--tool-light-rgb), .65);
    letter-spacing: .4px;
    transition: color .15s ease;
}
.scale-pill--root .scale-pill-degree {
    color: var(--gold);
    text-shadow: 0 0 8px rgba(255, 209, 102, .5);
}
.scale-pill-note {
    display: block;
    padding: 8px 4px 7px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    background: transparent;
    color: rgb(var(--tool-light-rgb));
    border: 1.5px solid rgba(var(--tool-rgb), .55);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 0 8px rgba(var(--tool-rgb), .35), inset 0 0 8px rgba(var(--tool-rgb), .12);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.scale-pill:hover .scale-pill-note {
    transform: translateY(-2px);
    border-color: rgba(var(--tool-light-rgb), .8);
    box-shadow: 0 0 12px rgba(var(--tool-rgb), .5), inset 0 0 10px rgba(var(--tool-rgb), .18);
}
.scale-pill--root .scale-pill-note {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 12px rgba(255, 209, 102, .55), inset 0 0 8px rgba(255, 209, 102, .2);
}
.scale-pill--root:hover .scale-pill-note {
    transform: translateY(-2px);
    box-shadow: 0 0 16px rgba(255, 209, 102, .7), inset 0 0 10px rgba(255, 209, 102, .28);
}


/* Arpeggio playback toggle — shared pill chip used next to the Play
   button on Guitar (Chord Library + Capo Explorer) and Keyboard, so its
   on/off state reads clearly and looks consistent across tools. */
.chordlib-single-note-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--glass);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 6px 14px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--text2);
    cursor: pointer;
    transition: all 0.15s var(--ease);
}
.chordlib-single-note-pill-icon { font-size: 13px; line-height: 1; }
.chordlib-single-note-pill:hover {
    background: rgba(124, 111, 224, .16);
    border-color: rgba(194, 182, 255, .40);
    color: #fff;
}
.chordlib-single-note-pill:active { transform: scale(0.95); transition-duration: 0.08s; }
.chordlib-single-note-pill[aria-pressed="true"] {
    background: linear-gradient(160deg, rgba(216, 198, 255, .40) 0%, rgba(124, 111, 224, .80) 45%, rgba(74, 42, 158, .92) 100%);
    border-color: rgba(194, 182, 255, .55);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .40), 0 3px 12px rgba(124, 111, 224, .45);
    text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
}


@media (max-width: 768px) {
    /* Mobile-only 5% font-size reduction (auto-generated). Desktop keeps
       the original sizes; this block only fires under 768px. */
    /* The ♯ glyph's own ink isn't perfectly centered within its font
       line-box; invisible at desktop's wider padding, but noticeable on
       mobile's narrower pill, so nudge it slightly. Covers every
       instance of the toggle across the site. */
    .chordlib-note-toggle,
    .caged-note-toggle,
    .scale-note-toggle,
    .capo-note-toggle,
    #bass-note-display-toggle,
    #keyboard-note-display-toggle {
        transform: translate(1px, -1px);
    }
    .tool-header-icon { font-size: 19px; }
    .tool-header h1 { font-size: clamp(24.5px, 4vw, 32.5px); }
    .tool-header p { font-size: 14px; }
    .tool-tab { font-size: 12.5px; }
    .control-field label { font-size: 11px; }
    .control-field select,
.control-field input[type="range"],
.control-field input[type="number"] { font-size: 13px; }
    .chip { font-size: 12px; }
    .reset-btn { font-size: 11.5px; }
    .chord-display-name { font-size: 21px; }
    .tool-note { font-size: 12.5px; }
    .ps-micro-label { font-size: 10.5px; }
    .root-pill { font-size: 11.5px; }
    .type-pill-btn { font-size: 11.5px; }
    .scale-select { font-size: 12.5px; }
    .scale-card-label { font-size: 9.5px; }
    .scale-pill-degree { font-size: 8.5px; }
    .scale-pill-note { font-size: 12.5px; }
    /* Arpeggio playback toggle — shared pill chip used next to the Play
   button on Guitar (Chord Library + Capo Explorer) and Keyboard, so its
   on/off state reads clearly and looks consistent across tools. */
.chordlib-single-note-pill { font-size: 12.5px; }
    .chordlib-single-note-pill-icon { font-size: 12.5px; }
}
