.chord-popup{border:1px solid var(--line);background:var(--card);width:min(460px,100vw - 24px);max-height:min(720px,100dvh - 24px);color:var(--ink);border-radius:16px;padding:0;overflow-y:auto;box-shadow:0 24px 80px #040c1e4d}.chord-popup::backdrop{background:#040c1e9e}.chord-popup-head{justify-content:space-between;align-items:start;gap:16px;display:flex}.chord-popup-head h2{font:800 36px/1.15 var(--font-display);margin:0}.chord-popup-kicker{color:var(--muted);font:700 12px var(--font-ui);letter-spacing:.12em;text-transform:uppercase;margin-bottom:5px;display:block}.chord-popup-close{border:1px solid var(--line);width:44px;height:44px;color:var(--ink);background:var(--card-alt);cursor:pointer;border-radius:8px;place-items:center;display:grid}.chord-popup-close svg{width:20px;height:20px}.chord-popup-tabs{background:var(--card-alt);border-radius:9px;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-top:22px;padding:4px;display:grid}.chord-popup-tabs button{min-height:44px;color:var(--ink);font:700 15px var(--font-ui);cursor:pointer;background:0 0;border:0;border-radius:6px}.chord-popup-tabs button[aria-pressed=true]{color:#fff;background:var(--brand)}.chord-popup-diagram{place-items:center;min-height:248px;padding:20px 0;display:grid}.chord-popup-diagram>p{max-width:28ch;color:var(--muted);text-align:center}.chord-popup .dg-large{border:0;gap:12px}.chord-popup .dg-large .dg-name{padding:0 12px;font-size:24px;line-height:34px}.chord-popup .dg-large svg{width:180px;height:190px;overflow:visible}.chord-popup .piano-diagram{justify-items:center;gap:14px;width:100%;margin:0;display:grid}.chord-popup .piano-diagram svg{width:100%;max-width:420px;height:auto}.chord-popup .piano-notes{font:700 17px var(--font-display)}.chord-popup-footer{border-top:1px solid var(--line);color:var(--muted);justify-content:space-between;align-items:center;gap:12px;padding-top:14px;font-size:14px;display:flex}.chord-popup-step{border:1px solid var(--line);color:var(--ink);white-space:nowrap;border-radius:8px;align-items:center;display:inline-flex;overflow:hidden}.chord-popup-step button{width:44px;height:44px;color:inherit;background:var(--card-alt);cursor:pointer;border:0;place-items:center;display:grid}.chord-popup-step button:disabled{opacity:.35;cursor:default}.chord-popup-step button svg{width:18px;height:18px}.chord-popup-step span{text-align:center;min-width:64px;font-weight:700}.piano-diagram{min-width:0;margin:0}.piano-diagram svg{width:100%;height:auto;display:block}.piano-diagram .dg-name{margin:0 auto 10px;display:table}.piano-unavailable{color:var(--muted);font-size:13px}@media (max-width:480px){.chord-popup{border-radius:16px 16px 0 0;width:100%;max-width:none;margin:auto auto 0}.chord-popup-footer{flex-wrap:wrap}.chord-popup-step{margin-left:auto}}.chord-popup{box-sizing:border-box;border-radius:8px;width:min(240px,100vw - 16px);max-height:calc(100dvh - 16px);margin:0;position:fixed;inset:auto;box-shadow:0 6px 24px #00000038}.chord-popup::backdrop{pointer-events:none;background:0 0}.chord-popup-inner{padding:10px}.chord-popup-head{align-items:center;gap:8px}.chord-popup-head h2{font-size:24px}.chord-popup-kicker{display:none}.chord-popup-close{border:0;width:44px;height:44px}.chord-popup-tabs{gap:0;margin-top:4px;padding:2px}.chord-popup-tabs button{font-size:12px}.chord-popup-diagram{min-height:0;padding:8px 0}.chord-popup .dg-large{gap:4px;padding:0}.chord-popup .dg-large .dg-name{display:none}.chord-popup .dg-large svg{width:104px;height:114px}.chord-popup .piano-diagram{gap:4px}.chord-popup .piano-notes{font-size:13px}.chord-popup-footer{flex-wrap:wrap;gap:4px;padding-top:6px;font-size:12px}.chord-popup-step{margin-left:auto}.chord-popup-step span{min-width:48px}.chord-handedness{min-height:44px;color:var(--ink);font:400 14px var(--font-ui);align-items:center;gap:8px;padding:8px 16px;display:flex}.chord-handedness input{width:20px;height:20px;accent-color:var(--brand)}.chord-remember-shape{border:1px solid var(--line);background:var(--card-alt);width:calc(100% - 32px);min-height:44px;color:var(--ink);font:600 14px var(--font-ui);cursor:pointer;border-radius:5px;margin:10px 16px;padding:8px 12px;display:block}.chord-preference-status{color:var(--muted);font:400 13px/1.5 var(--font-ui);margin:0;padding:0 16px 12px}
