/* Main Container */
.message:has(.synth-container) {
  background-color: transparent;
  padding:0rem;
}
.synth-container {
  background-color: #000000;
  padding: 2rem;
  border-radius: 20px;
  width: 600px;
  box-sizing: border-box;
  margin: 0 auto; /* Center it in the feed */
  transition: all 0.2s ease-in-out;
}

/* Add a visual indicator for the active/focused synth */
.synth-container:focus, .synth-container.active {
    outline: 2px solid var(--pico-primary);
    box-shadow: 0 0 20px -5px var(--pico-primary);
}

.synth-title {
    color: #e5e5e5;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 200;
    letter-spacing: 2px;
    display: none;
}

/* Top Controls Panel */
.top-panel {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width:100%;
}

.octave-button {
  --pico-form-element-spacing-horizontal: 0rem;
  font-size: .67rem;
  font-weight: 600;
}

.octave-button.active {
  background-color: var(--pico-contrast);
  color: var(--pico-card-background-color);
}

/* Keyboard Layout */
.keyboard {
  display: flex;
  gap: 0px;
  position: relative;
  height: 150px;
  overflow:hidden;
  border-radius: 1rem;
}

.key {
  position: relative;
  display: flex;
  justify-content: center;
  cursor: pointer;
}

.key .label {
  position: absolute;
  bottom: 18px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* White Keys */
.white {
  flex: 1;
  background-color: #e5e5e5;
}

.white .label {
  color: #666;
}

.white.active {
  background-color: #0099ff;
}

.white.active .label {
  color: #111;
}

/* Black Keys */
.black {
  position: absolute;
  width: 42px;
  height: 86px;
  background-color: #000000;
  top: 0;
  /* Precisely center the black key over the nth gap */
  left: calc((100% + 4px) / 7 * var(--n) - 2px);
  transform: translateX(-50%);
  z-index: 10;
  border-radius: 0 0 6px 6px;
}

.black .label {
  color: #888;
  font-size: 13px;
}

.black.active {
    background-color: #0099ff;
}

/* Style overrides for integration */
.message.assistant {
    
}
