/* The chord and scale marker editor (chords.js), in the look of the studio's other menus. */

.chord-edit {
  padding-bottom: 8px;
}
.chord-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
}
.chord-key {
  width: 52px;
  flex: none;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.chord-row .select,
.chord-row .text-input {
  flex: 1;
  min-width: 0;
}
.chord-row .chord-root {
  flex: none;
  width: 70px;
}
.text-input.chord-sym {
  font: 700 15px var(--serif);
  color: var(--champagne);
}
.text-input.chord-sym.bad {
  border-color: var(--danger);
}
/* The scale's notes, the chord's own in gold. */
.chord-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 8px 2px 66px;
}
.chord-note {
  min-width: 22px;
  padding: 2px 4px;
  border-radius: 5px;
  text-align: center;
  font: 600 13px/1.2 var(--serif);
  color: var(--muted);
  background: rgba(255, 240, 210, 0.04);
  border: 1px solid var(--line);
}
.chord-note.tone {
  color: #251a06;
  background: var(--metal);
  border-color: transparent;
}
.chord-acts {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px 0;
  margin-top: 6px;
  border-top: 1px solid var(--line);
}
.chord-spacer {
  flex: 1;
}

/* The circle of fifths: home at the bottom, its diatonic chords lit, the marker's chord in gold. */
.cof {
  padding: 2px 0 0;
}
.cof-head {
  padding-bottom: 2px;
}
.cof-wheel {
  display: block;
  margin: 2px auto 0;
}
.cof-seg {
  fill: rgba(255, 240, 210, 0.035);
  stroke: rgba(212, 175, 55, 0.22);
  stroke-width: 1;
  cursor: pointer;
  transition: fill 0.12s;
}
.cof-seg.r1 {
  fill: rgba(255, 240, 210, 0.02);
}
.cof-seg.r2 {
  fill: rgba(0, 0, 0, 0.2);
}
.cof-seg.diatonic {
  fill: rgba(212, 175, 55, 0.14);
}
.cof-seg.home {
  fill: rgba(212, 175, 55, 0.3);
  stroke: var(--gold);
}
.cof-seg:hover {
  fill: rgba(245, 226, 166, 0.28);
}
.cof-seg.current {
  fill: #d9b760;
  stroke: var(--gold-hi);
  stroke-width: 1.5;
}
.cof-label {
  font: 600 13px var(--serif);
  fill: var(--champagne);
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}
.cof-label.r1 {
  font-size: 11px;
  fill: var(--muted);
}
.cof-label.r2 {
  font-size: 8.5px;
  fill: var(--dim);
}
.cof-label.current {
  fill: #251a06;
}
.chord-edit {
  width: 300px;
}

/* Hear it: the chord on the piano. */
.btn.chord-play {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px 0 7px;
}
.btn.chord-play .glyph {
  width: 13px;
  height: 13px;
}
.btn.chord-play.loading {
  opacity: 0.55;
  cursor: progress;
}
.btn.chord-play.loading .glyph {
  animation: chord-wait 1.1s ease-in-out infinite;
}
@keyframes chord-wait {
  50% {
    opacity: 0.3;
  }
}
