.chord-workspace{--chord-tint:#f4f7fc;overflow:visible}.chord-tabs{border-bottom:1px solid var(--line);gap:.25rem;margin:0 0 1.5rem;display:flex}.chord-tabs button{color:var(--muted);background:0 0;border:0;border-bottom:3px solid #0000;padding:.8rem 1rem;font-weight:700}.chord-tabs button[aria-selected=true]{border-bottom-color:var(--blue);color:var(--blue)}.chord-explorer{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:start;gap:1.75rem;display:grid}.chord-controls,.chord-answer{min-width:0}.chord-controls{background:var(--chord-tint);border:1px solid var(--line);border-radius:10px;padding:1.1rem}.chord-controls .field{margin-bottom:1rem}.chord-controls .field:last-child{margin-bottom:0}.chord-controls .field-hint{margin-top:.4rem}.chord-controls textarea{resize:vertical;min-height:96px}.chord-actions{flex-wrap:wrap;align-items:center;gap:.5rem;margin:.8rem 0;display:flex}.chord-source-switch .radio-choices{width:100%;display:flex}.chord-source-switch .radio-choices label{text-align:center;flex:1;min-width:0;padding:.55rem .45rem}.chord-source-switch .radio-choices label span{white-space:normal;padding:0}.chord-check{align-items:center;gap:.55rem;display:flex}.chord-current-heading{margin:1rem 0 .35rem;font-weight:700}.chord-current-notes{flex-wrap:wrap;gap:.4rem;min-height:2rem;display:flex}.chord-current-notes span{border:1px solid var(--line);background:#fff;border-radius:5px;padding:.2rem .45rem}.chord-answer{border:1px solid var(--line);overflow-anchor:none;border-radius:10px;padding:1.4rem}.chord-answer-header{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}.chord-answer-header>div{min-width:0}.chord-answer-header h3{overflow-wrap:anywhere;margin:.1rem 0 .5rem;font-size:clamp(2rem,4vw,3rem)}.chord-answer-header p{margin-bottom:.4rem}.chord-position{color:var(--muted);margin:.7rem 0 1.2rem}.chord-answer h4{margin:1rem 0 .6rem}.chord-tones{flex-wrap:wrap;gap:.5rem;display:flex}.chord-tone{text-align:center;background:var(--chord-tint);border:1px solid var(--line);border-radius:7px;flex:0 auto;min-width:62px;padding:.55rem .7rem}.chord-tone strong{color:var(--blue);font-family:var(--font-mono);font-size:1.1rem;display:block}.chord-tone small{font-family:var(--font-mono);color:var(--muted);display:block}.chord-description{margin-top:1.1rem}.chord-description p{margin-bottom:.65rem}.chord-result-snapshot{color:var(--muted);border:1px solid var(--line);border-radius:6px;margin:.5rem 0;padding:.15rem .6rem;display:inline-block}.chord-candidate-section{border-top:1px solid var(--line);margin-top:1.25rem;padding-top:.8rem}.chord-candidate-section h4,.chord-candidate-section summary{margin:0 0 .6rem;font-size:.95rem;font-weight:700}.chord-candidate-list{grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:.45rem;display:grid}.chord-candidate{border:1px solid var(--line);background:var(--paper);text-align:left;min-width:0;color:var(--ink);border-radius:6px;flex-direction:column;align-items:flex-start;gap:.15rem;padding:.6rem .7rem;display:flex}.chord-candidate strong{font:700 1rem var(--font-mono);overflow-wrap:anywhere}.chord-candidate small{color:var(--muted);overflow-wrap:anywhere}.chord-candidate[aria-pressed=true]{border-color:var(--blue);background:#edf3ff}.chord-piano-inline{border-top:1px solid var(--line);margin-top:1rem;padding-top:.65rem}.chord-piano-heading{justify-content:space-between;align-items:center;gap:1rem;display:flex}.chord-piano-heading h3{margin:0;font-size:.88rem}.chord-piano-tools{color:var(--muted);align-items:center;gap:.4rem;font-size:.75rem;display:flex}.chord-piano-tools .button{padding:.35rem .5rem;font-size:.78rem}.chord-piano-scroll{margin:0 -6px;padding:6px;overflow-x:auto}.chord-piano{min-width:540px;height:108px;position:relative}.chord-piano-key{border:1px solid #7f8b9e;border-radius:0 0 4px 4px;padding:0;transition:background-color .12s;position:absolute;bottom:0}.chord-piano-key.white{left:calc(var(--key-index)*100%/15);z-index:1;background:#fff;width:6.66667%;height:108px}.chord-piano-key.black{left:calc((var(--key-index) - .333333)*100%/15);z-index:2;background:#222b38;border-color:#182332;width:4.44445%;height:68px;top:0}.chord-piano-key[data-selected=true].white{box-shadow:inset 0 -6px var(--blue);background:#cfe0ff}.chord-piano-key[data-selected=true].black{background:#5276ba}.chord-piano-key[data-bass=true]{outline:2px solid var(--blue);outline-offset:-3px}.chord-piano-key span{text-align:center;width:100%;font-family:var(--font-mono);color:var(--muted);pointer-events:none;font-size:.8rem;position:absolute;bottom:.4rem;left:0}.chord-piano-key.black span{color:#fff;font-size:.7rem}.chord-piano-key[data-sounding=true]{box-shadow:inset 0 0 0 2px #799cff}.chord-workspace .chord-piano-key:disabled{opacity:1;cursor:default}.chord-piano-key:not(:disabled){cursor:pointer}.chord-voicing{border-top:1px solid var(--line);margin-top:1rem}.chord-voicing-notes{color:var(--muted);flex-wrap:wrap;gap:.7rem;margin-top:.65rem;display:flex}.chord-voicing-notes span{white-space:nowrap}.chord-voicing .field-hint{margin:.6rem 0 0}.chord-player{z-index:15;bottom:max(.75rem, env(safe-area-inset-bottom));overflow-anchor:none;background:#fff;border:1px solid #bccde7;border-radius:12px;flex-wrap:wrap;align-items:center;gap:.75rem 1rem;margin-top:1.5rem;padding:.8rem 1rem;display:flex;position:sticky;box-shadow:0 5px 24px #17273d1a}.chord-player-info{flex:280px;align-items:center;gap:.8rem;min-width:0;min-height:54px;display:flex}.chord-player-icon{width:44px;height:44px;color:var(--muted);background:#f0f4fa;border-radius:10px;flex:none;place-items:center;display:grid}.chord-player-icon svg{width:28px;height:28px}.chord-player[data-state=playing] .chord-player-icon{color:var(--blue);background:#e7efff}.chord-player[data-state=error] .chord-player-icon{color:var(--red)}.chord-player-text{min-width:0}.chord-player-caption,.chord-player-volume,.chord-player-actions{flex-wrap:wrap;align-items:center;gap:.5rem .8rem;display:flex}.chord-player-caption h3{margin:0;font-size:.85rem}#chord-player-symbol{color:var(--blue);overflow-wrap:anywhere;font-size:.85rem}.chord-player-volume{color:var(--muted);gap:.3rem;font-size:.78rem}.chord-player-volume svg{width:16px;height:16px}.chord-player svg{fill:none;stroke:currentColor;stroke-width:1.7px;stroke-linecap:round;stroke-linejoin:round}.chord-stop svg{fill:currentColor;stroke:none;width:18px;height:18px}.chord-audio-status{color:var(--muted);margin:.3rem 0 0;font-size:.82rem;line-height:1.55}.chord-player[data-state=playing] .chord-audio-status{color:var(--blue)}.chord-player .form-error{margin:.3rem 0 0}.chord-workspace :is(input,select,textarea,button,summary){scroll-margin-block:110px calc(var(--chord-player-height,140px) + 1.5rem)}.chord-workspace .chord-player :is(input,button,summary){scroll-margin:0}.chord-playback-settings{border:0;min-width:0;margin:0}.chord-playback-summary{border:1px solid var(--line);min-height:44px;color:var(--blue);background:#f8faff;border-radius:7px;justify-content:center;align-items:center;gap:.5rem;padding:.65rem .8rem;font-size:.82rem;font-weight:700;display:inline-flex}.chord-playback-summary:hover{background:#f0f5ff}.chord-playback-settings[data-disclosure]>.chord-playback-summary:before{display:none}.chord-playback-summary svg,.chord-playback-panel-heading svg{flex:none;width:20px;height:20px}.chord-playback-content{width:min(360px,100%);max-height:calc(100dvh - var(--chord-player-height,140px) - 100px);background:#fff;border:1px solid #bdcde8;border-radius:10px;position:absolute;bottom:calc(100% + .6rem);right:0;overflow-y:auto;box-shadow:0 8px 30px #17273d24}.chord-playback-panel-heading{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:.6rem;padding:.45rem .6rem .45rem 1rem;display:flex}.chord-playback-panel-heading h3{margin:0;font-size:.9rem}.chord-playback-panel-heading .button{width:44px;height:44px;padding:0}.chord-volume-field{padding:1rem}.chord-volume-field label{justify-content:space-between;align-items:center;gap:.5rem;display:flex}.chord-volume-field input{width:100%}@media (width<=760px){.chord-explorer{grid-template-columns:minmax(0,1fr);gap:1rem}.chord-controls,.chord-answer{padding:1rem}}@media (width<=640px){.chord-player{gap:.6rem;padding:.7rem .8rem}.chord-player-info{flex-basis:100%}.chord-player-actions{grid-template-columns:minmax(0,1fr) 44px 44px;gap:.4rem;width:100%;display:grid}.chord-player-actions>.button{min-width:0;padding:.6rem .45rem}.chord-stop-label,.chord-settings-label{display:none}.chord-playback-summary{width:44px;height:44px;padding:10px}}@media (width<=390px){.chord-tabs button{padding:.7rem .5rem}.chord-candidate-list{grid-template-columns:1fr}.chord-answer-header h3{font-size:2rem}}@media (prefers-reduced-motion:reduce){.chord-piano-key{transition:none}}
