.library-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    background: var(--theme-surface-1);
    border-radius: 20px;
    border: 1px solid var(--rgba-94-96-206-0_16);
    min-height: 0;
    box-shadow: 0 18px 35px var(--rgba-29-45-83-0_08);
    flex: 1 1 auto;
    box-sizing: border-box;
    height: 100%;
    max-height: calc(100vh - var(--library-panel-offset, 0px));
    overflow-y: auto;
    overflow-x: hidden;
}

.library-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.library-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--theme-text);
}

.library-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: var(--rgba-29-45-83-0_65);
}

.library-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 18px;
    background: var(--theme-surface-2);
    border-radius: 16px;
    border: 1px solid var(--rgba-94-96-206-0_12);
}

.library-filter-section {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.library-filter-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--rgba-29-45-83-0_7);
}

.library-root-buttons,
.library-group-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.library-root-btn,
.library-group-btn {
    border-radius: 999px;
    border: 1px solid var(--rgba-94-96-206-0_35);
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--rgba-255-255-255-0_9);
    color: var(--theme-text);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.library-root-btn:hover,
.library-group-btn:hover,
.library-root-btn:focus-visible,
.library-group-btn:focus-visible {
    outline: none;
    transform: translateY(-1px);
    background: var(--rgba-255-255-255-1);
    border-color: var(--rgba-94-96-206-0_65);
}

.library-root-btn.is-active,
.library-group-btn.is-active {
    background: var(--theme-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px var(--rgba-94-96-206-0_28);
}

.library-group-btn[disabled] {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
    background: var(--rgba-255-255-255-0_6);
    border-style: dashed;
}

.library-body {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
    min-height: 0;
    flex: 1 1 auto;
    height: auto;
    max-height: none;
    overflow: hidden;
}

.library-chord-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--theme-surface-2);
    border-radius: 16px;
    border: 1px solid var(--rgba-94-96-206-0_12);
    padding: 18px;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
    height: 100%;
}

.library-chord-panel__header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.library-chord-panel__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--theme-text);
}

.library-chord-panel__hint {
    margin: 0;
    font-size: 0.8rem;
    color: var(--rgba-29-45-83-0_6);
}

.library-chord-panel__empty {
    margin: 0;
    font-size: 0.9rem;
    color: var(--rgba-29-45-83-0_6);
}

.library-chord-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    overflow-y: auto;
    padding-right: 4px;
    flex: 1 1 auto;
    min-height: 0;
    align-items: flex-start;
    align-content: flex-start;
}

.library-chord-btn,
.library-chord-pill {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
    background: var(--theme-gradient);
    color: #fff;
    text-transform: none;
    letter-spacing: 0.01em;
    white-space: normal;
}

.library-chord-pill.is-documented:not(.is-selected) {
    background: var(--theme-gradient);
    border-color: transparent;
    color: #fff;
}

.library-chord-btn:hover,
.library-chord-btn:focus-visible,
.library-chord-pill:hover,
.library-chord-pill:focus-visible {
    outline: none;
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.library-chord-btn--unknown:not(.is-selected),
.library-chord-pill.is-missing {
    background: linear-gradient(135deg, #ff6b6b, #d84315);
    border-color: rgba(244, 67, 54, 0.9);
    color: #fff;
}

.library-chord-btn--unknown:not(.is-selected):hover,
.library-chord-btn--unknown:not(.is-selected):focus-visible,
.library-chord-pill.is-missing:hover,
.library-chord-pill.is-missing:focus-visible {
    background: linear-gradient(135deg, #ff8a80, #e64a19);
    border-color: rgba(244, 67, 54, 0.85);
    color: #fff;
}

.library-chord-btn.is-selected {
    background: #3cc56b;
    border-color: #2ca75a;
    color: #0a1f0a;
    box-shadow: 0 0 0 2px rgba(60, 197, 107, 0.35);
}

.library-chord-pill.is-selected {
    box-shadow: 0 0 0 2px rgba(60, 197, 107, 0.35);
}

.library-chord-btn.is-selected.is-unknown {
    background: #3cc56b;
    border-color: #2ca75a;
    color: #0a1f0a;
}

.library-chord-pill.is-selected.is-documented {
    background: #3cc56b;
    border-color: #2ca75a;
    color: #0a1f0a;
}

.library-chord-pill.is-selected.is-missing {
    background: #ff9800;
    border-color: #cc7a00;
    color: #1f1200;
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.35);
}

.library-detail {
    background: var(--theme-surface-2);
    border-radius: 16px;
    border: 1px solid var(--rgba-94-96-206-0_12);
    padding: 22px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1 1 auto;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--rgba-94-96-206-0_45) transparent;
}

.library-detail::-webkit-scrollbar {
    width: 8px;
}

.library-detail::-webkit-scrollbar-track {
    background: transparent;
}

.library-detail::-webkit-scrollbar-thumb {
    background: var(--rgba-94-96-206-0_45);
    border-radius: 999px;
}

.library-detail::-webkit-scrollbar-thumb:hover {
    background: var(--rgba-94-96-206-0_65);
}

.library-detail__placeholder {
    margin: 0;
    font-size: 1rem;
    color: var(--rgba-29-45-83-0_6);
}

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

.library-detail__titles {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.library-detail__title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--theme-text);
}

.library-detail__subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: var(--rgba-29-45-83-0_6);
}

.library-detail__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--theme-gradient);
    color: #fff;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.library-detail__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1 1 auto;
    min-height: 0;
}

.library-doc-intro {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.library-intro-paragraph {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--theme-text);
}

.library-detail .chord-card {
    border-radius: 12px;
    border: 1px solid var(--rgba-94-96-206-0_12);
    padding: 18px;
    background: var(--theme-surface-1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 10px 24px var(--rgba-29-45-83-0_08);
}

.library-detail .chord-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.library-detail .chord-card h4 {
    margin: 0;
    font-size: 1.2rem;
}

.library-detail .guide-no-result {
    font-size: 0.95rem;
    color: var(--rgba-29-45-83-0_65);
}

.library-detail .guide-chord-detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.library-detail .guide-chord-detail__header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
}

.library-detail .guide-chord-detail__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--theme-text);
}

.library-detail .guide-chord-detail__layout {
    display: grid;
    grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
    gap: 24px;
    align-items: flex-start;
}

.library-detail .guide-chord-detail__diagram,
.library-detail .guide-chord-detail__tab {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--rgba-94-96-206-0_12);
    background: var(--rgba-255-255-255-0_95);
    min-height: 220px;
}

.library-detail .guide-chord-detail__diagram {
    align-items: center;
}

.library-detail .guide-chord-detail__diagram-image {
    width: 100%;
    max-width: 240px;
    height: auto;
    object-fit: contain;
}

.library-detail .guide-chord-detail__diagram-placeholder,
.library-detail .guide-chord-detail__tab-empty,
.library-detail .guide-chord-detail__tips-empty {
    margin: 0;
    font-size: 0.9rem;
    color: var(--rgba-29-45-83-0_6);
    text-align: center;
}

.library-detail .guide-chord-detail__tab-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--theme-text);
}

.library-detail .guide-chord-detail__tab-text {
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.45;
    white-space: pre;
}

.library-variation-area {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--rgba-94-96-206-0_12);
    background: var(--theme-surface-1);
    box-shadow: 0 10px 24px var(--rgba-29-45-83-0_08);
}

.library-variation-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.library-variation-pill {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--rgba-94-96-206-0_35);
    background: var(--rgba-94-96-206-0_08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    color: transparent;
    font-size: 0;
}

.library-variation-pill::before {
    content: attr(data-variation-number);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--theme-text);
}

.library-variation-pill:hover,
.library-variation-pill:focus-visible {
    outline: none;
    transform: translateY(-1px);
    background: var(--rgba-94-96-206-0_12);
    border-color: var(--rgba-94-96-206-0_45);
}

.library-variation-pill.is-active {
    background: var(--theme-gradient);
    border-color: transparent;
    box-shadow: 0 8px 20px var(--rgba-94-96-206-0_28);
}

.library-variation-pill.is-active::before {
    color: #fff;
}

.library-variation-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.library-variation-label {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--theme-text);
    flex-shrink: 0;
}

.library-variation-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.library-variation-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.library-variation-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--theme-text);
}

.library-variation-audio {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
}

.library-detail-status-wrapper .library-variation-audio {
    justify-content: flex-end;
}

.library-detail-status-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.library-variation-audio audio {
    max-width: 100%;
}

.library-variation-audio-message {
    margin: 0;
    font-size: 0.9rem;
    color: var(--rgba-29-45-83-0_65);
}

.library-variation-content {
    display: grid;
    grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr);
    gap: 20px;
    align-items: start;
}

.library-variation-diagram-card,
.library-variation-tab-card {
    border-radius: 16px;
    border: 1px solid var(--rgba-94-96-206-0_12);
    background: var(--rgba-255-255-255-0_96);
    padding: 18px;
    box-shadow: 0 12px 28px var(--rgba-29-45-83-0_06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.library-variation-diagram-image {
    width: 100%;
    max-width: 240px;
    height: auto;
    object-fit: contain;
    margin: 0;
}

.library-variation-diagram-placeholder {
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
    color: var(--rgba-29-45-83-0_6);
}

.library-variation-tab-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--theme-text);
}

.library-variation-tab {
    border-radius: 12px;
    border: 1px solid var(--rgba-94-96-206-0_12);
    background: var(--theme-surface-1);
    padding: 14px;
    overflow-x: auto;
}

.library-variation-tab pre {
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.45;
}

.library-variation-tab p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--rgba-29-45-83-0_65);
}

.library-variation-tips-wrapper {
    border-radius: 16px;
    border: 1px solid var(--rgba-94-96-206-0_12);
    background: var(--theme-surface-1);
    padding: 18px;
    box-shadow: 0 12px 28px var(--rgba-29-45-83-0_06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.library-variation-tips-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--theme-text);
}

.library-variation-tips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.library-variation-tips li {
    font-size: 0.9rem;
    color: var(--theme-text);
    line-height: 1.45;
}

.library-variation-tips-empty {
    margin: 0;
    font-size: 0.9rem;
    color: var(--rgba-29-45-83-0_6);
}

.library-detail .guide-chord-detail__variations {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.library-detail .guide-chord-detail__nav-btn {
    border: 1px solid var(--rgba-94-96-206-0_35);
    background: var(--theme-surface-1);
    color: var(--theme-text);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    min-width: 44px;
}

.library-detail .guide-chord-detail__nav-btn:hover:not(:disabled),
.library-detail .guide-chord-detail__nav-btn:focus-visible:not(:disabled) {
    outline: none;
    transform: translateY(-1px);
    background: var(--rgba-255-255-255-0_98);
}

.library-detail .guide-chord-detail__nav-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.library-detail .guide-chord-detail__indicator {
    font-weight: 600;
    color: var(--theme-text);
    min-width: 70px;
    text-align: center;
}

.library-detail .guide-chord-detail__tips {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--rgba-94-96-206-0_12);
    background: #fff;
    box-shadow: 0 10px 26px var(--rgba-29-45-83-0_06);
}

.library-detail .guide-chord-detail__tips-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--theme-text);
}

.library-detail .guide-chord-detail__tips-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.library-detail .guide-chord-detail__tips-list li {
    position: relative;
    padding-left: 1.6em;
    font-size: 0.9rem;
    color: var(--theme-text);
    line-height: 1.4;
}

.library-detail .guide-chord-detail__tips-list li::before {
    content: "➡️";
    position: absolute;
    left: 0;
    top: 0;
}

@media (max-width: 1024px) {
    .library-body {
        grid-template-columns: 1fr;
    }

    .library-chord-panel {
        max-height: none;
    }

    .library-chord-list {
        max-height: none;
    }

    .library-variation-content {
        grid-template-columns: 1fr;
    }
}

.guitar-guide-library {
    display: none;
}

html.theme-sombre .library-panel {
    background: var(--modern-surface-1);
    border-color: var(--modern-border);
    box-shadow: 0 18px 35px var(--rgba-0-0-0-0_45);
}

html.theme-sombre .library-subtitle {
    color: var(--rgba-255-255-255-0_65);
}

html.theme-sombre .library-controls {
    background: var(--modern-surface-2);
    border-color: var(--modern-border-soft);
}

html.theme-sombre .library-filter-title {
    color: var(--rgba-255-255-255-0_65);
}

html.theme-sombre .library-root-btn,
html.theme-sombre .library-group-btn {
    background: var(--rgba-255-255-255-0_08);
    border-color: var(--rgba-255-255-255-0_18);
    color: var(--modern-text);
}

html.theme-sombre .library-root-btn:hover,
html.theme-sombre .library-group-btn:hover,
html.theme-sombre .library-root-btn:focus-visible,
html.theme-sombre .library-group-btn:focus-visible {
    background: var(--rgba-255-255-255-0_16);
    border-color: var(--rgba-255-255-255-0_35);
}

html.theme-sombre .library-group-btn[disabled] {
    background: var(--rgba-255-255-255-0_06);
    border-color: var(--rgba-255-255-255-0_1);
    color: var(--rgba-255-255-255-0_25);
}

html.theme-sombre .library-chord-panel,
html.theme-sombre .library-detail {
    background: var(--modern-surface-2);
    border-color: var(--modern-border);
}

html.theme-sombre .library-chord-panel__hint {
    color: var(--rgba-255-255-255-0_55);
}

html.theme-sombre .library-chord-panel__empty {
    color: var(--rgba-255-255-255-0_55);
}

html.theme-sombre .library-detail__placeholder {
    color: var(--rgba-255-255-255-0_55);
}

html.theme-sombre .library-detail .chord-card {
    background: var(--modern-surface-1);
    border-color: var(--modern-border-soft);
}

html.theme-sombre .library-detail .guide-no-result {
    color: var(--rgba-255-255-255-0_7);
}
html.theme-sombre .library-detail__subtitle {
    color: var(--modern-text-muted);
}

html.theme-sombre .library-detail__status {
    background: linear-gradient(135deg, var(--modern-accent), var(--modern-accent-strong));
    color: var(--modern-text-inverse);
}

html.theme-sombre .library-intro-paragraph {
    color: var(--modern-text);
}

html.theme-sombre .library-variation-area {
    background: var(--modern-surface-1);
    border-color: var(--modern-border-soft);
    box-shadow: 0 10px 24px var(--rgba-0-0-0-0_45);
}

html.theme-sombre .library-variation-label {
    color: var(--modern-text-muted);
}

html.theme-sombre .library-variation-pill {
    background: var(--rgba-255-255-255-0_06);
    border-color: var(--rgba-255-255-255-0_18);
}

html.theme-sombre .library-variation-pill::before {
    color: var(--modern-text);
}

html.theme-sombre .library-variation-pill.is-active {
    box-shadow: 0 8px 20px rgba(50, 84, 198, 0.45);
}

html.theme-sombre .library-variation-pill.is-active::before {
    color: #fff;
}

html.theme-sombre .library-variation-audio-message {
    color: var(--modern-text-muted);
}

html.theme-sombre .library-variation-content {
    background: transparent;
}

html.theme-sombre .library-variation-diagram-card,
html.theme-sombre .library-variation-tab-card {
    background: var(--modern-surface-2);
    border-color: var(--modern-border-soft);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

html.theme-sombre .library-variation-diagram-placeholder {
    color: var(--modern-text-muted);
}

html.theme-sombre .library-variation-tab {
    background: var(--modern-surface-1);
    border-color: var(--modern-border-soft);
}

html.theme-sombre .library-variation-tab p {
    color: var(--modern-text-muted);
}

html.theme-sombre .library-variation-tips-wrapper {
    background: var(--modern-surface-2);
    border-color: var(--modern-border-soft);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

html.theme-sombre .library-variation-tips li {
    color: var(--modern-text);
}

html.theme-sombre .library-variation-tips-empty {
    color: var(--modern-text-muted);
}


html.theme-sombre .library-detail .guide-chord-detail__diagram,
html.theme-sombre .library-detail .guide-chord-detail__tab,
html.theme-sombre .library-detail .guide-chord-detail__tips {
    background: var(--modern-surface-2);
    border-color: var(--modern-border-soft, var(--modern-border));
    color: var(--modern-text);
}

html.theme-sombre .library-detail .guide-chord-detail__diagram-placeholder,
html.theme-sombre .library-detail .guide-chord-detail__tab-empty,
html.theme-sombre .library-detail .guide-chord-detail__tips-empty {
    color: var(--modern-text-muted, var(--rgba-255-255-255-0_6));
}

html.theme-sombre .library-detail .guide-chord-detail__nav-btn {
    background: var(--modern-surface-2);
    border-color: var(--modern-border);
    color: var(--modern-text);
}

html.theme-sombre .library-chord-btn {
    background: linear-gradient(135deg, #5f6aff 0%, #3f95ff 100%);
    border-color: rgba(255, 255, 255, 0.08);
    color: #f5f8ff;
}

html.theme-sombre .library-chord-btn:hover,
html.theme-sombre .library-chord-btn:focus-visible {
    filter: brightness(1.08);
}

html.theme-sombre .library-chord-btn--unknown:not(.is-selected) {
    background: rgba(244, 67, 54, 0.38);
    border-color: rgba(255, 138, 128, 0.82);
    color: #ffd1c9;
}

html.theme-sombre .library-chord-btn--unknown:not(.is-selected):hover,
html.theme-sombre .library-chord-btn--unknown:not(.is-selected):focus-visible {
    background: rgba(244, 67, 54, 0.52);
    border-color: rgba(255, 171, 145, 0.9);
    color: #ffe7e3;
}

html.theme-sombre .library-chord-btn.is-selected {
    background: #37d27d;
    border-color: #1ea35b;
    color: #032010;
}

html.theme-sombre .library-chord-btn.is-selected.is-unknown {
    background: #37d27d;
    border-color: #1ea35b;
    color: #032010;
}

html.theme-sombre .library-chord-pill.is-selected {
    box-shadow: 0 0 0 2px rgba(55, 210, 125, 0.4);
}

html.theme-sombre .library-chord-pill.is-selected.is-documented {
    background: #37d27d;
    border-color: #1ea35b;
    color: #032010;
}

html.theme-sombre .library-chord-pill.is-selected.is-missing {
    background: #ffb74d;
    border-color: #ff9800;
    color: #241300;
    box-shadow: 0 0 0 2px rgba(255, 183, 77, 0.4);
}
