#as-map{overflow-x:auto;margin-top:12px;padding:3px}
.as-piano{position:relative;display:flex;min-width:390px;height:145px}
.as-piano button,.as-position{cursor:pointer;border:1px solid #64748b}
.as-white{flex:1;display:flex;align-items:flex-end;justify-content:center;padding-bottom:8px;background:#fff;color:#111827}
.as-black{position:absolute;transform:translateX(-50%);z-index:1;width:4.4%;height:60%;background:#172033}
.as-fret{border-collapse:collapse;min-width:640px;width:100%;text-align:center}
.as-position{width:100%;min-height:36px;background:transparent;color:inherit}
.as-piano .as-active,.as-position.as-active{background:#1d4ed8;color:white}
.as-position.as-root.as-active{background:#ea580c}
#as-shapes{margin-top:12px}
.as-chords{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}
.as-chordbtn{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 8px;border:1px solid var(--border,#cbd5e1);border-radius:10px;background:var(--surface,#fff);color:inherit;cursor:pointer;font-size:.85rem}
.as-chordbtn:hover{border-color:#1d4ed8}
.as-chord{width:120px;height:150px}
.as-line{stroke:currentColor;stroke-width:1;opacity:.6}
.as-nut{fill:currentColor}
.as-dot{fill:#1d4ed8}
.as-open{fill:none;stroke:currentColor;stroke-width:1.5}
.as-mark,.as-string,.as-fretno{fill:currentColor;font-size:12px;text-anchor:middle}
.as-fretno{text-anchor:start}
.kk{margin-top:28px}
.kk-wrap{display:flex;flex-wrap:wrap;gap:20px;align-items:flex-start}
#kk-circle{width:100%;max-width:340px;height:auto}
.kk-seg{cursor:pointer;outline:none}
.kk-seg path{fill:#dbeafe;stroke:#fff;stroke-width:2}
.kk-minor path{fill:#ede9fe}
.kk-seg text{fill:#111827;font-size:15px;font-weight:600;text-anchor:middle;pointer-events:none}
.kk-minor text{font-size:12px;font-weight:500}
.kk-seg:hover path,.kk-seg:focus-visible path{fill:#93c5fd}
.kk-seg.kk-on path{fill:#1d4ed8}
.kk-seg.kk-on text{fill:#fff}
.kk-sign{fill:currentColor;font-size:10px;text-anchor:middle;opacity:.75}
.kk-info{flex:1;min-width:240px}
.kk-chords{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 12px}
.kk-chords .btn{display:flex;flex-direction:column;align-items:center;line-height:1.15;min-width:54px}
.kk-chords small{font-size:.7rem;opacity:.7}
