/* piano-creator.css — layered on song-creator.css, which supplies the header,
   meta bar, toolbar, help strip and modal styling. */

.pc-editor {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: var(--bg);
  position: relative;
}
#pc-canvas { display: block; }

/* Hand buttons carry their own colour so the active hand is obvious. */
.sc-snap-btn.hand-r.active {
  background: #16202c;
  border-color: #5d8cc4;
  color: #7ba7dc;
}
.sc-snap-btn.hand-l.active {
  background: #251f12;
  border-color: #c19a4c;
  color: #d3ae5f;
}

#pc-repeat-n {
  width: 46px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  font-family: var(--mono);
  font-size: 12px;
  padding: 4px 6px;
  border-radius: var(--r);
  text-align: center;
}

.sc-help-strip b {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--dim);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 4px;
}

/* The status text changes constantly. Keeping the strip on one line stops it
   reflowing and nudging the whole canvas down mid-edit. */
.sc-help-strip {
  flex-wrap: nowrap;
  overflow: hidden;
  white-space: nowrap;
}
.pc-status {
  margin-left: auto;
  padding-left: 16px;
  font-family: var(--mono);
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#pc-voice {
  max-width: 110px;
  font-size: 12px;
  padding: 5px 24px 5px 9px;
}
