.chord-diagram-trigger{cursor:pointer;border:0;padding:0;margin:0;font:inherit;color:inherit;letter-spacing:0;white-space:inherit}
.chord-diagram-trigger:hover,.chord-diagram-trigger:focus-visible{background:#e8f1eb;outline:2px solid #27754d;outline-offset:2px;border-radius:2px}
.chord-popover{position:fixed;z-index:10000;width:156px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;box-sizing:border-box;padding:6px;background:#f7faf8;color:#173d2c;border:1px solid #e0eae4;border-radius:8px;box-shadow:0 12px 32px #183e2926;font:14px/1.4 Arial,sans-serif;letter-spacing:0}
.chord-popover[hidden],.chord-popover [hidden]{display:none!important}
.chord-popover header,.chord-popover footer{display:flex;align-items:center;justify-content:space-between;gap:8px}
.chord-popover header{display:grid;grid-template-columns:30px minmax(0,1fr) 30px;gap:0}
.chord-popover header strong{grid-column:2;text-align:center;font-size:16px;overflow-wrap:anywhere;min-width:0}
.chord-popover header button{grid-column:3;background:#edf3ef}
.chord-popover button{display:grid;place-items:center;flex:none;width:30px;height:30px;min-height:30px;padding:0;border:0;border-radius:4px;background:transparent;color:#185833;font:23px/1 Arial,sans-serif;box-shadow:none;cursor:pointer}
.chord-popover button:hover,.chord-popover button:focus-visible{background:#e7eee9}
.chord-popover button:disabled{opacity:.35;cursor:default}
.chord-popover-diagram{box-sizing:border-box;width:112px;max-width:100%;margin:3px auto 4px;padding:2px 3px;background:#fcfefd;border-radius:8px;box-shadow:0 5px 15px #20452e0d}
.chord-popover-diagram:empty{display:none}
.chord-popover-diagram svg{display:block;width:100%;height:auto}
.chord-popover footer{border-top:1px solid #e0eae4;padding-top:5px}
.chord-popover footer button{background:#eef5f0;border:1px solid #e2ebe5;border-radius:8px;box-shadow:0 3px 7px #173d2c0d}
.chord-popover-count{font-size:12px;color:#53675a}
.chord-popover-message{margin:8px 0;font-size:13px}
.chord-popover-message:empty{display:none}
.chord-popover-types{display:block;margin:3px 0 2px;font-size:11px;color:#53675a}
.chord-popover-types select{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:32px;height:32px;margin:2px 0 0;padding:0 4px;border:1px solid #d7e4dc;border-radius:8px;background:#fcfefd;color:#173d2c;font:12px Arial,sans-serif;letter-spacing:0;box-shadow:0 3px 9px #173d2c08}
.chord-popover-types [data-fingering-current]{display:table;text-align:center;margin:5px auto 0;padding:1px 10px;border-radius:20px;background:#e7f0e9;color:#185833;font-size:11px}
.chord-popover button.chord-popover-play{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;height:32px;margin-top:4px;border-radius:8px;background:linear-gradient(#2c8866,#176344);color:#fff;font:13px/1 Arial,sans-serif;box-shadow:0 4px 10px #18583320}
.chord-popover button.chord-popover-play:hover{background:#185e42}
.chord-instruments{display:grid;grid-template-columns:1fr 1fr;border:1px solid #d7e4dc;border-radius:4px;overflow:hidden;margin:4px 0 7px}
.chord-popover .chord-instruments button{width:100%;height:30px;min-height:30px;border-radius:0;font:12px Arial,sans-serif}
.chord-popover .chord-instruments button[aria-pressed=true]{background:#185e42;color:#fff}
.chord-popover.is-piano{width:224px}
.chord-popover.is-piano .chord-popover-diagram{width:100%;padding:4px 0;background:none;box-shadow:none}
.chord-piano-label{font-size:11px;color:#53675a}
.chord-piano-tools p{font-size:14px;font-weight:600;text-align:center;margin:5px 0 8px;overflow-wrap:anywhere}
.chord-piano-keyboard{position:relative;width:100%;height:76px;isolation:isolate}
.piano-key{position:absolute;top:0;box-sizing:border-box;border:1px solid #79887e;border-radius:0 0 2px 2px}
.piano-key.white{height:100%;background:#fff;z-index:0}
.piano-key.black{height:60%;background:#202922;z-index:1}
.piano-key.white.active{background:#b4d9bd}
.piano-key.black.active{background:#298250;border-color:#123d27}
.piano-key.active:after{content:'';position:absolute;width:5px;height:5px;border-radius:50%;background:#145534;bottom:7px;left:calc(50% - 2.5px)}
.piano-key.black.active:after{background:#fff}
@media(pointer:coarse){.chord-popover button{width:44px;height:44px;min-height:44px}.chord-popover header{grid-template-columns:44px minmax(0,1fr) 44px}}
@media print{.chord-popover{display:none!important}.chord-diagram-trigger{outline:none!important;background:none!important}}
