

.voice-buttons {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.voice-profile {
  padding: 10px; 
  border: 1px solid #ccc; 
  background-color: lightyellow;
  border-radius: 12px;
  width: 320px;
  /* align-self and height auto usually fine, but can remove if layout glitches */
}

.voice-settings {
  width: 100%; 
  background: #fff; 
  border-radius: 12px; 
  padding: 30px 32px 22px 32px; 
  box-shadow: 0 8px 32px rgba(0,0,0,0.16); 
  position:relative; 
  max-width: 98vw;
  /* remove flex-grow for old iPad if layout breaks */
}

    .voice-settings-container {
      display: flex; 
      background-color: white;
      border-radius: 12px;
      padding: 10px;
      width: 70vw;
      min-width: 800px;
    }

.voice-button {
  font-size: 1rem;
  padding: 4px 2px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f8f8f8;
  cursor: pointer;
  text-align: center;
  margin: 2px;
  min-width: 90px;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

    .voice-button:hover {
      background-color: #eee;
    }

.voice-button.selected {
  background-color: #3498db;
  color: white;
  border-color: #2980b9;
}

    label {
      display: block;
      margin-top: 12px;
    }

    input[type="range"] {
      width: 100%;
    }

    textarea {
      width: 100%;
      height: 60px;
    }

    button.speak {
      margin: 6px auto;
      padding: 5px 10px;
      font-size: .9rem;
      display: block;
      min-width: 75%;
    }


    .voice-button .close-btn {
      margin-right: 6px;
      margin-left: 6px;
      position: absolute;
      color: #c00;
      cursor: pointer;
      font-weight: bold;
    }
