/* Chord Pad — 7 diatonic chord buttons + key/mode */

.node-chord-pad-face {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 6px;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 6px;
  overflow: hidden;
  border: 1px solid rgba(243, 241, 236, 0.12);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(177, 132, 255, 0.1), transparent 48%),
    #080a0c;
  box-sizing: border-box;
}

.node-chord-pad-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.node-chord-pad-field {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font: 700 0.62rem/1 "Cascadia Mono", Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.node-chord-pad-field select {
  min-width: 0;
  max-width: 5.5rem;
  height: 22px;
  padding: 0 4px;
  border: 1px solid rgba(243, 241, 236, 0.14);
  border-radius: 4px;
  background: rgba(5, 6, 7, 0.85);
  color: var(--text);
  font: 700 0.68rem/1 "Cascadia Mono", Consolas, monospace;
  cursor: var(--node-dot-cursor);
}

.node-chord-pad-field select:focus {
  outline: 0;
  border-color: rgba(177, 132, 255, 0.55);
}

.node-chord-pad-hint {
  margin-left: auto;
  color: var(--muted);
  font: 700 0.58rem/1 "Cascadia Mono", Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.node-chord-pad-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  min-height: 0;
  height: 100%;
}

.node-chord-pad-pad {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 4px 2px;
  border: 1px solid rgba(243, 241, 236, 0.14);
  border-radius: 5px;
  background: rgba(5, 6, 7, 0.72);
  color: var(--text);
  cursor: var(--node-dot-cursor);
  font-family: "Cascadia Mono", Consolas, monospace;
}

.node-chord-pad-pad:hover {
  border-color: rgba(177, 132, 255, 0.45);
}

.node-chord-pad-pad.active {
  border-color: rgba(177, 132, 255, 0.75);
  background:
    linear-gradient(180deg, rgba(177, 132, 255, 0.28), rgba(177, 132, 255, 0.08));
  box-shadow: 0 0 12px rgba(177, 132, 255, 0.22);
  color: #f3e9ff;
}

.node-chord-pad-roman {
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.node-chord-pad-name {
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.88;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

@media (max-width: 120px) {
  .node-chord-pad-name {
    display: none;
  }
}
