input, select, button {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #020617;
  color: #e5e7eb;
  font-size: 15px;
}

button {
  cursor: pointer;
}

button.primary {
  background: #22c55e;
  color: #052e16;
  font-weight: 600;
}

.status {
  margin-bottom: 10px;
  font-weight: 600;
}

.switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 10px;
}

.switch input {
  width: auto;
}

/* ===== 🎙 Gain Meter (Camera style) ===== */
.gain-meter {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-top: 10px;
  user-select: none;
}

.gain-label {
  font-size: 12px;
  letter-spacing: 1px;
  color: #9ca3af; /* เทาแบบกล้อง */
}

.gain-bar {
  width: 140px;
  height: 6px;

  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  overflow: hidden;
}

.gain-level {
  width: 0%;              /* 🔥 ตอนนี้นิ่ง */
  height: 100%;

  background: #22c55e;    /* เขียวอ่อน */
  transition: width 0.08s linear;
}
